SQL Server cursor usage/shutdown/release/optimization Summary _mssql

The cursor is evil! In relational databases, our thinking about queries is set-oriented. The cursor breaks this rule, and the cursor makes the way we think is done on a line-by-row basis. For developers of Class C, this is a more comfortable way to

SQL Server database compression and database log (LDF) compression method sharing _mssql

Access The operation is very simple, the specific steps are as follows: Open your MDB database, tools--> Database Utilities--> compression and Repair Database (c) ... SQL SERVER In general, the contraction of the SQL database does not greatly

How to manipulate SQL Server using the CMD command line window _mssql

The osql tool is a Microsoft Windows 32 command Prompt tool that you can use to run Transact-SQL statements and script files. The osql tool communicates with the server using the ODBC database application programming Interface (API).This article

SQL Server myth: a misunderstanding about lock escalation

Myth #23: The process of lock escalation is escalated from row locks to page locks, and then page locks are upgraded to table locks Error Actually not, in SQL Server 2005 and prior versions, lock escalation will rise directly to the table lock.

T-SQL Query Advanced: Understanding the concepts of indexes in SQL Server, principles, and other

Brief introduction In SQL Server, an index is an enhanced existence, which means that SQL Server can still implement functionality even without indexes. However, indexes can greatly improve query performance in most cases, especially in OLAP. To

SQL Server String Functions

This article is a transcript of the programmer's SQL code, which will explain the string functions of SQL Server. In fact, the database, like the Program language library, will integrate many APIs that can be used. These APIs, if you are familiar

SQL Server Live Error: Object variable or with block variable not set

People these days in doing student information management system, appear The most should be the problem, "Real time error ' 91 ': Object variable or with block variable not set." As shown on the right: In this case, we should first refer to MSDN,

New features about XML in SQL Server 2008

1 Introduction Microsoft has introduced XML-related features and Transact-SQL keyword FOR XML and OPENXML in Microsoft SQL Server 2000. This allows developers to write Transact-SQL code to obtain query results in the form of XML streams and to

Tip: How to create a global temporary table in SQL Server

The life cycle of the global temporary table persists until the creation session (not the creation level) terminates. For example, if you create a global temporary table in a stored procedure, the table is not destroyed when the scope of the stored

SQL Server 2005 Stored procedure write report Example

I heard that Ms SQL 2005 with the report function, so I tested a bit, but also relatively easy to use, so I recorded a stored procedure to write a report example. Since there is no voice in the test process, I am here to explain. The stored

Restore the entire SQL Server database or only the error filegroup

Here's a concrete example: if you have a single problem file. This file has a 50MB size, and your entire database runs about billions of bytes, so it makes sense to recover a single failed file. One of the things that happens when a file or

New features for policy Management in SQL Server 2008

Policy Management is a new feature in SQL Server 2008 that manages the various properties of database instances, databases, and database objects. Policy management under the SSMs Object Explorer database instance under the Administration node, as

To configure report services for SQL Server 2008 in IIS

I don't know if it's a SQL Server 2008 bug, I've installed SQL2008 (I chose to install the report service), but there is no virtual directory for the Reporting service in IIS at all. Just such a problem, other bi designers, Reporting Services, etc.

Get an insight into how SQL Server system databases work

One of the basic skills of a database administrator (DBA) is a deep understanding of the SQL Database engine's system database. It is also useful for database developers to understand the system databases that SQL Server brings. Some of these system

SQL Server multiple ways to connect across servers

This article summarizes the way SQL Server connects across servers. 1, OpenDataSource Open the database example directly with this statement in SQL: OPENDATASOURCE( 'SQLOLEDB','Data Source=TQDBSV001 ;User ID=fish;Password=2312').RackDB.dbo.CS

How SQL Server recognizes real and automatically created indexes

Q: I recently found that many of the entries in the sysindexes Index table were not created by myself. Listening to colleagues say that they are not real indexes, but rather statistics created automatically by the SQL Server query optimizer. How do

Performing transparent data encryption in SQL Server 2008

Problem Security is a major consideration for any company. Database backups are easily stolen and restored to another instance of SQL Server. As we explore the new features of SQL Server 2008, we are interested in a feature called Transparent data

Provide more memory for SQL Server

A friend called me today to ask me about the maximum supported physical memory capacity of the Windows Server 2003 32bit Enterprise Edition, mainly because the server is running a database server with a memory usage of 2G, and servers are very

(formerly) Three doubts about the functionality provided by the SQL Server system

List of directories in this document:1. An overview of some of the doubts provided by the SQL Server System2, the system function call when the default substitution optional parameter use is not uniform3.The queue Field column message_enqueue_time

SQL Server 2012-open Window functions

--open Window function: Further processing on the basis of the result set (aggregation operation)--over function, add a field to show maximum age select *, Max (stuage) over () Maxstuagefrom dbo. student;--over function, add a field to show total

Total Pages: 923 1 .... 211 212 213 214 215 .... 923 Go to: GO

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.