This month's discount Comprehensive Database Performance Health Check · Testimonials
SQLAuthority with Pinal Dave
Home
  • Consulting
    • Health Check
  • Free Videos
  • All Articles
    • AI
    • SQL Performance
    • SQL Tips and Tricks
    • Interview Questions and Answers
    • SQL Puzzle
    • SQL Video
    • SQLAuthority News
    • Personal
  • Books
  • Consulting
Quick FlowChart.

SQL SERVER – Index Optimization CheckList

May 8, 2007
Pinal Dave
SQL Performance
SQL Download, SQL Index, SQL Scripts, SQL Server

My Index Optimization checklist for Jr. DBAs: index columns used in WHERE, ORDER BY, GROUP BY and JOINs, drop indexes you do not need and keep keys small.

Read More
SQL SERVER - 2005/2000 Examples and Explanation for GOTO

SQL SERVER – 2005/2000 Examples and Explanation for GOTO

May 7, 2007
Pinal Dave
SQL Tips and Tricks
Database, SQL Scripts, SQL Utility

How the GOTO statement jumps to a label in the same T-SQL batch. My explanation for GOTO covers the syntax, the rules and when I still use it.

Read More
SQL SERVER - Creating Comma Separate Values List from Table - UDF - SP

SQL SERVER – Creating Comma Separate Values List from Table – UDF – SP

May 6, 2007
Pinal Dave
SQL Tips and Tricks
SQL Function, SQL Scripts

Three ways to build a Comma Separate Values List from a table: COALESCE, a smart SELECT, or a cursor. Written for SQL Server 2005 with VARCHAR(MAX).

Read More
SQL SERVER - UDF - Function to Convert List to Table

SQL SERVER – UDF – Function to Convert List to Table

May 6, 2007
Pinal Dave
SQL Tips and Tricks
SQL Function, SQL Scripts

A UDF, udf_List2Table, to convert list to table with any delimiter you choose. Written for SQL Server 2005 with VARCHAR(MAX), and easy to adapt for 2000.

Read More
SQL SERVER - 2005 Enable CLR using T-SQL script

SQL SERVER – 2005 Enable CLR using T-SQL script

May 5, 2007
Pinal Dave
SQL Tips and Tricks
CLR, SQL Scripts, SQL Server Configuration, SQL Server Security

In SQL Server 2005 the CLR is off by default. Here is the sp_configure script to enable CLR, turning on show advanced options and then clr enabled.

Read More
SQL SERVER - UDF - User Defined Function to Find Weekdays Between Two Dates

SQL SERVER – UDF – User Defined Function to Find Weekdays Between Two Dates

May 5, 2007
Pinal Dave
SQL Tips and Tricks
SQL DateTime, SQL Function, SQL Scripts, SQL Utility

A user defined function that returns the number of weekdays between two dates, skipping Saturday and Sunday. It was written by Alexander Chigrik.

Read More
SQL SERVER - Fix : Error : Msg 7311, Level 16, State 2, Line 1 Cannot obtain the schema rowset DBSCHEMA_TABLES_INFO for OLE DB provider SQLNCLI for linked server LinkedServerName

SQL SERVER – Fix : Error : Msg 7311, Level 16, State 2, Line 1 Cannot obtain the schema rowset DBSCHEMA_TABLES_INFO for OLE DB provider SQLNCLI for linked server LinkedServerName

May 4, 2007
Pinal Dave
SQL Tips and Tricks
SQL Error Messages, SQL Scripts, SQL Server Security, sqlcmd

Msg 7311 comes up when a 64-bit SQL Server 2005 runs distributed queries against a linked 32-bit SQL Server 2000 or 7.0. Running instcat.sql with osql fixes it.

Read More
Previous 1 … 322 323 324 325 326 327 328 … 336 Next
  • Books
  • Testimonials
  • Privacy Policy

© 2006 – 2026 All rights reserved. pinal @ SQLAuthority.com