Welcome to MSDN Blogs Sign in | Join | Help

SQL Server Engine Tips

Guidelines, Best Practices, TSQL and SQL Programming Tips & Tricks.

Syndication

News

These postings are provided
"AS IS" with no warranties,
and confers no rights.
Use of included script samples
are subject to the terms
specified at http://www.microsoft.com/ info/cpyright.htm.

Browse by Tags

All Tags » General   (RSS)
Differences between ISNULL and COALESCE
I came across a question in the SQL Server MVP newsgroup recently about ISNULL and COALESCE usage. COALESCE basically translates to CASE expression and ISNULL is a built-in implemented in the database engine. Both ISNULL and COALESCE can be used to get Read More...

Posted Thursday, June 26, 2008 8:55 PM by SQL Server Engine Team | 7 Comments

Filed under: ,

DATALENGTH optimizations for LOB data types...
DATALENGTH function in TSQL can be used to find the actual length in bytes of the data in a specific value. The value can be any of the data types. It is often used to determine length of LOB data type columns (text, ntext, image, varchar(max), nvarchar(max) Read More...

Posted Friday, July 14, 2006 4:25 PM by SQL Server Engine Team | 10 Comments

Filed under: ,

Top 5 SQL/TSQL/Engine features summary of responses...
You can find below the summary of responses for the top 5 features requested for next version of SQL Server. http://umachandar.members.winisp.net/files/top_5_features_summary.htm You can post your requests on the blog at http://blogs.msdn.com/sqltips/archive/2005/10/07/top_5_features_request.aspx Read More...

Posted Monday, October 17, 2005 6:21 PM by SQL Server Engine Team | 0 Comments

Filed under:

Renaming logins in SQL Server 2005...
Did you know that SQL Server 2005 supports renaming logins? This can be done via ALTER LOGIN statement. I posted a sample about renaming sa login and disabling it before. But it is probably not obvious if you can do it for all logins. Ex: ALTER LOGIN Read More...

Posted Monday, October 10, 2005 11:34 AM by SQL Server Engine Team | 0 Comments

Filed under: ,

SQL Server 2005 features that are dependent on Windows Server 2003...
The question about what features are supported by SQL Server 2005 running on Windows Server 2003 comes up quite often. So below are some of the features that are depends on the OS and brief description about them. 1. Password policy/expiration check for Read More...

Posted Thursday, October 06, 2005 6:34 PM by SQL Server Engine Team | 10 Comments

Filed under: ,

Request for topics...
Please post requests for topics or features that you would like to know about. This can be any of the SQL/TSQL language features or programmability in general. There are so many things to discuss about wrt SQL Server 2005 so it will be good to gauge interest Read More...

Posted Thursday, September 22, 2005 7:07 PM by SQL Server Engine Team | 28 Comments

Filed under: ,

Determine primary keys and unique keys for all tables in a database...
Determine primary keys and unique keys for all tables in a database using INFORMATION_SCHEMA views and the new catalog views in SQL Server 2005 Read More...

Posted Friday, September 16, 2005 11:27 AM by SQL Server Engine Team | 7 Comments

Filed under: ,

Ordering guarantees in SQL Server...
Ordering guarantees in queries. Read More...

Posted Wednesday, July 20, 2005 11:20 AM by SQL Server Engine Team | 18 Comments

Filed under: ,

Page view tracker