(Gregory A. Larsen) Have you ever wondered if you could start the execution of a stored procedure (SP) asynchronously from some T-SQL code? What I mean is starting the SP in the background and continuing on with the next line of code in your T-SQL script without waiting for the execution of the SP t
Tag: sql server
Get Into Index Structures
(Kalen Delaney) In my July 2001 column, “Are You in Tune?” (InstantDoc ID 21038), which began a series about query tuning, I mentioned that one of the best ways to ensure that your queries are running as fast as possible is to check that your tables are properly indexed. However, I didn’t discuss in
SQL Query Performance Tuning (Sample Chapter)
(Sajal Dam) Performance tuning is an important part of today’s database applications. Very often, large savings in both time and money can be achieved with proper performance tuning. The beauty of performance tuning is that, in many cases, a small change to an index or a SQL query can result in a f
DB Change Management – An Automated Approach – Part 4
(Darren Fuller) In part 3 Darren Fuller listed the requirements to implement an automated approach to database change management and highlighted some of the benefits. In this fourth and final article in the series, he continues the list of benefits that can be realised by adopting an automated meth
‘sysperfinfo’ in SQL Server
(Muthusamy Anantha Kumar) The system table, ‘sysperfinfo,’ is the representation of the internal performance counters of SQL Server. This article demonstrates how to retrieve and store information from ‘sysperfinfo’ to a CSV file, so that it can be analyzed.
Hands-on: Understanding the importance of SQL Server Database Log
(Palak Patel) This document outlines steps to create a test database, create a sample table and populate the sample table with actual data, taking full and transaction log backups of the test database, simulate a crash and then recover the database. In the process, it helps to understand SQL Server
The Power of SQL CASE Statements
(Scott Mitchell) As developers creating data-driven Web applications, we’ve all written more than our fair share of SQL statements. If I had a nickel for every SELECT statement or UPDATE statement I’ve written in my six years as a Web developer, I’d be a rich man. Despite the familiarity with SQL th
Reading a Trace File using C# in SQL Server 2005
(graz) SQL Server 2005 includes Server Managed Objects (SMO) which is a managed API to SQL Server. These are primarily used to administrative tasks and replaces DMO. One of the features of this is the ability to programmatically read trace files. This article walks through the code needed to read a
How To Find SQL Server Objects
(Ashish Kaushal) How many times, we as a SQL developer or DBA, find ourselves shuffling through objects in Enterprise Manager, or expanding the left pane of Query Analyzer, trying to find a table or view for which we have no clue, except a nearly correct name, and the only way we would know that it
Report Authoring: Designing Efficient Queries (Sample Chapter)
(Rodney Landrum and Walter J. Voytek II) SQL Reporting Services provides a platform for developing and managing reports in an environment that includes multiple data sources of information. Standards such as ODBC, OLE DB, and .NET facilitate obtaining the data from these disparate data stores. B
