Quantcast
Channel: CodeSection,代码区,SQL Server(mssql)数据库 技术分享 - CodeSec
Browsing all 3160 articles
Browse latest View live

Does SQL Server 2k5 preserve locking tricks on linked servers?

I've been nosing around--and I'm no DBA myself,--but became curious when trying to troubleshoot a particularly expensive (and infrequent) query that performs an outer join on a linked server (2k5 to...

View Article


Image may be NSFW.
Clik here to view.

SQL Authority News Free Performance Tuning Videos

SQL Server Performance Tuning and Optimization is how I earn my breadat home. Lots of people often ask if I will be happy to teach them my SQL Server Performance tuning tricks and my answer is very...

View Article


Image may be NSFW.
Clik here to view.

数据库大师成长日记:巧用SQL语句查看SQL Server的结构信息

常用SQLServer的朋友们,绝大部分情况下,我们写SQL脚本主要用来处理我们自己的数据,比如读取、插入数据等。但在有些情况下,我们可能要查看我们定义的一些元素,比如我们定义的表都有哪些、表结构如何、存储过程的源码等等。这时候,我们学习的常规的SQL脚本可能就无法处理了。...

View Article

Unable to connect to SQLServer due to SSLException

Since yesterday I'm unable to connect to the MicroSoft SQLServer (v11.1.3000.0) on my local development machine from JBoss EAP 6.2. SQLServer now wants to connect using SSL. I get the following...

View Article

Image may be NSFW.
Clik here to view.

How To: XEvents as Profiler

A common excuse for not delving into extended events seems to be the jump from Profiler to extended events. There appears to be an inherent fear with how to use extended events. In addition to that...

View Article


Image may be NSFW.
Clik here to view.

SQL Server Export/Import excel using R script - Part 4

In continuation to my previous posts on SQL Server Export/Import excel using R script - Part 1 , Part 2 &Part3 where we saw about exporting to Excel and importing to SQL Server table using "xlsx"...

View Article

Image may be NSFW.
Clik here to view.

SQL Server Export/Import excel using R script - Part 5

In continuation to my previous posts onSQL Server Export/Import excel using R script Part 1 , Part 2 ,Part 3 &Part 4 . In this post, let us see how to import multiple excel files in a folder...

View Article

Image may be NSFW.
Clik here to view.

SQL Server Find Distinct Result Sets Using EXCEPT Operator

In my earlier post on “ SQL SERVER Remove Duplicate Rows Using UNION Operator “, I showed a different method of removing duplicate rows from the result set using a UNION operator. Here is another...

View Article


Image may be NSFW.
Clik here to view.

Using T-SQL to find events that overlap (or dont) in SQL Server

By:Aaron Bertrand | Last Updated: 2018-12-26 || Related Tips:More > Dates Problem I often see people struggle with logic related to datetime range and interval queries. A common example is trying...

View Article


Image may be NSFW.
Clik here to view.

SQL Server报错The datediff function resulted in an overflow

zabbix的监控有一个报错: The datediff function resulted in an overflow. The number of dateparts separating two date/time instances is too large. Try to use datediff with a less precise datepart....

View Article

Image may be NSFW.
Clik here to view.

x64驱动基础教程 15

这节课我们来讲SSDT。我估计SSDT这个词对很多底层爱好者都有特殊的含义,绝对不仅仅是“系统服务描述表”这么简单,相信不少人都是从玩SSDT HOOK开始玩windows内核的,至少我就是如此。好了,扯淡的话就不说了,说多了估计有读者会拿砖头拍我。言归正传,本文只解决两个问题。第一,如何在内核里动态获得SSDT的基址;第二,如何在内核里动态获得SSDT函数的地址。...

View Article

SQL Server External Tools

When installing SQL Server and related components, there are several external tools that get installed as well. Here a few of the programs that show up under SQL Server (2016 or 2017) in the Start...

View Article

Image may be NSFW.
Clik here to view.

Upgrading From SQL Server Profiler

I just shared an article describing how to use Extended Events to perform your SQL Server Profiler duties . If not, you can read all about it here . In that article, I showed one common use-case for...

View Article


The 2018 Blog Posts You Commented On the Most

Of the blog posts we published in 2018, here are the ones that got you talking the most. These comment counts are as of December 17th (writing this post a little ahead of time.) 10. SQL Server Patches...

View Article

Image may be NSFW.
Clik here to view.

SQL Server Database Replication

SQL Server Database Replication Database replication is the technology to distribute data from the primary server to secondary servers. Replication works on Master-slave concept where Master database...

View Article


Image may be NSFW.
Clik here to view.

Giving thanks in 2018

Giving thanks in 2018 Randolph West Posted on 26 December 2018 Comments It’s the last post of 2018, and in years past I’ve recapped the year that has just been. This is a little different however. I...

View Article

Image may be NSFW.
Clik here to view.

Shortcut: Saving and sharing SQL Server deadlock graphs

In anearlier post, I described how query plans could be saved as .sqlplan file, shared, and loaded again in SQL Server Management Studio (SSMS). It's also possible to extract them out of SQL Server...

View Article


SDU Tools: List User Table and Index Sizes in SQL Server

I'm often wondering about how large different objects in my databases are. There are reports to provide that info, but I often want it in a programmatic form. One of our free SDU Tools for developers...

View Article

Image may be NSFW.
Clik here to view.

SSIS Script Task Read Write Variable

This post I wanted to post for quite a while but keep forgetting. In order to use Variable in SSIS Script Task there is no Intellisense. You have to remember the exact syntax for it. Very first you...

View Article

SQL server change single user mode or backup or recovery model of all...

Following is the DBA script which generally used for most cases the action needed for all the databases like migration, upgrade etc. Change the database recovery model and set to single_user mode....

View Article
Browsing all 3160 articles
Browse latest View live