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

SQL Server连接占线

使用ADO及ODBC连接SQL Server时,如果连接没有处理好,很容易出现下面的错误: [Microsoft][ODBC SQL Server Driver]Connection is busy with results for another hstmt. 连接占线导致另一个hstmt。 [Microsoft][ODBC SQL Server Driver]Connection is busy...

View Article


Image may be NSFW.
Clik here to view.

Difference between Identity & Sequence in SQL Server

In SQL Server, both the SEQUENCE object and IDENTITY property are used to generate a sequence of numeric values in an ascending order. However, there are several differences between the IDENTITY...

View Article


Image may be NSFW.
Clik here to view.

SSIS体系结构

打开 SQL Server DataTools 2015它比2012版增加了不少大数据相关的数据处理组件,SSIS是微软BI的ETL(抽取、转换、加载)工具,SSIS 是 购买安装SQLServer时附加的一个免费工具;它的性能不比第三方收费工具差,在SSIS发布的时候,它保持了一项世界速度记录:在一小时内加载2TB数据,这是十年前的记录。 体系结构(一)...

View Article

Image may be NSFW.
Clik here to view.

SQL Server database migrations with zero data loss and zero downtime

The growing importance and complexity of data migration, in an era of exploding data volumes and ever-changing business requirements, means that old approaches will no longer get the job done. We are...

View Article

Image may be NSFW.
Clik here to view.

How Trace Flag 2335 Affects Memory Grants

This trace flag is documented in KB #2413549, which says, “Using large amounts of memory can result in an inefficient plan in SQL Server.” The details are a little light, so let’s run a quick...

View Article


Image may be NSFW.
Clik here to view.

Shortcut: Viewing client statistics in SQL Server Management Studio

While SQL Server is quite fast at executing queries, when you are connecting from a client application like SQL Server Management Studio (SSMS), you might wonder how much time SQL Server spent...

View Article

Image may be NSFW.
Clik here to view.

Data Modeling: Understanding First Normal Form in SQL Server

By: K. Brian Kelley || Related Tips:More >Database Design Problem I’m working to improve my SQL Server database development skills, specifically in the area of data modeling. I’ve seen some...

View Article

Image may be NSFW.
Clik here to view.

Top things you need in a SQL Server performance monitoring tool (from...

The initial article, Top things you need in a SQL Server performance monitoring tool (from performance metrics to wait statistic and query performance monitoring) covers the most important “things”...

View Article


Image may be NSFW.
Clik here to view.

Mining Plans : Not just for the plan cache

When looking at query performance there are a lot of great sources of information within SQL Server, and one of my favorites is the query plan itself. In the last several releases, notably starting...

View Article


Dealing With CheckDB Error Message 824 Level 24

Msg 824, Level 24, State 2, Line 1 SQL Server detected a logical consistency-based I/O error: incorrect pageid (expected 1:2806320; actual 0:0). It occurred during a read of page (1:xxxxx) in database...

View Article

Image may be NSFW.
Clik here to view.

Using Triggers and Email Alerts in Microsoft SQL Server

Sometimes we underestimate the power of data. There are hundreds if not thousands of companies that would testify to the fact that without their data, they would not exist. People say time is...

View Article

Image may be NSFW.
Clik here to view.

SSIS 开发案例

这张照片确实很帅,我承认我不是因为这张照片而入行BI的,而是没有别的选择了才入行BI的。...

View Article

Image may be NSFW.
Clik here to view.

Optimizing Type 2 Slowly Changing Dimensions in Integration Services - Part 2

By: Koen Verbeeck || Related Tips:More > Integration Services Development Problem In thefirst part we introduced the reasoning behind type 2 slowly changing dimensions. We also discussed different...

View Article


Image may be NSFW.
Clik here to view.

How to restore a SQL Server database to another server after disabling TDE

By: Mohammed Moinudheen || Related Tips:More >Restore Problem We need to restore a database using a backup from a different SQL Server where TDE is enabled for that database. On disabling TDE and...

View Article

Image may be NSFW.
Clik here to view.

Determining space used for all tables in a SQL Server database

Problem One thing that is often handy is to know how much space each table is using within your database. It is helpful to know the number of rows, the data space used as well as the index space used....

View Article


Memory optimized Temporary table in SQL Server

Today, we will quickly see how do we create memory optimized temporary table in SQL Server and how to use it efficiently. I would recommend to read previous blogs before we continue further: In-Memory...

View Article

Image may be NSFW.
Clik here to view.

Helping Your Customers Build, Test, Document, and Monitor SQL Server Apps

In April, SentryOne acquired Pragmatic Works Software (PWS)―just the software division, not the consulting or training business. Now, three months after the acquisition, we can really dig into what it...

View Article


Server name in SQL Server

I'm new to SQL Server programming and I'm stuck with setting server name and database name at the time of setup. I have tried many websites but I'm not able to understand. I'm currently using Visual...

View Article

Image may be NSFW.
Clik here to view.

SQL Server Management Studio 17.x Important Features

By: Rajendra Gupta || Related Tips:More > SQL Server Management Studio Problem SQL Server Management Studio is now a standalone installation and is not part of the SQL Server setup. In my previous...

View Article

Image may be NSFW.
Clik here to view.

Creating Indexes with SQL Server Management Studio

By: Jayendra Viswanathan || Related Tips:More >Indexing Problem Indexes allow queries to run faster for data selection and are a key part of high performance for SQL Server. In this tip, will see...

View Article
Browsing all 3160 articles
Browse latest View live