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 » SQL Server 2005   (RSS)
Converting from hex string to varbinary and vice versa
Converting hexadecimal values to varbinary and vice versa is now easier using the XQuery functionality available from SQL Server 2005. The code samples below show how to perform the conversion(s): -- Convert hexstring value in a variable to varbinary: Read More...

Posted Wednesday, July 02, 2008 6:26 PM by SQL Server Engine Team | 3 Comments

Converting from Base64 to varbinary and vice versa
Converting Base64 values to varbinary and vice versa is now easier using the XQuery functionality available from SQL Server 2005 onwards. The code samples below show how to perform the conversion: -- Convert Base64 value in a variable to varbinary: declare Read More...

Posted Monday, June 30, 2008 6:25 PM by SQL Server Engine Team | 1 Comments

SQL Server 2005 Performance Dashboard Reports
The SQL Server 2005 Performance Dashboard Reports are Reporting Services report files designed to be used with the Custom Reports feature introduced in the SQL Server 2005 SP2 release of SQL Server Management Studio. The reports allow a database administrator Read More...

Posted Thursday, March 29, 2007 12:22 PM by SQL Server Engine Team | 1 Comments

OBJECT_NAME enhancement and OBJECT_SCHEMA_NAME addition in SQL Server 2005 SP2
SQL Server 2005 SP2 has an important enhancement to OBJECT_NAME metadata function and a new OBJECT_SCHEMA_NAME metadata function. I will first describe the old functionality to give some context and demonstrate how the new features help a lot. Please Read More...

Posted Friday, March 23, 2007 4:24 PM by SQL Server Engine Team | 2 Comments

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: ,

Oracle's PERCENTILE_CONT implementation using SQL Server 2005 analytic functions...
I saw an interesting question today in the MSDN Transact-SQL forum about implementing PERCENTILE_CONT analytic function that is available in Oracle in SQL Server. The function description as noted in the Oracle docs is below: The PERCENTILE_CONT function Read More...

Posted Monday, May 15, 2006 3:03 PM by SQL Server Engine Team | 7 Comments


Attachment(s): Oracle PERCENT_CONT Implementation.sql

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: ,

Find Top N costly query plans in adhoc batches or modules...
Top N costly query plans Read More...

Posted Wednesday, October 05, 2005 6:03 PM by SQL Server Engine Team | 12 Comments

Determining optimal MAXDOP setting from TSQL in SQL Server 2005
Determing optimal MAXDOP setting value using DMV Read More...

Posted Wednesday, September 14, 2005 12:02 PM by SQL Server Engine Team | 10 Comments

Renaming sa account in SQL Server 2005
Renaming sa account in SQL Server 2005 Read More...

Posted Saturday, August 27, 2005 1:44 PM by SQL Server Engine Team | 10 Comments

Getting SQL Server registry settings via SQLCLR table-valued user-defined function...
SQLCLR TVF to read registry settings for SQL Server instance Read More...

Posted Friday, August 19, 2005 4:47 PM by SQL Server Engine Team | 2 Comments

Feedback requested on database mirroring...
Database Mirroring configuration using certificate authenticated endpoints. Read More...

Posted Thursday, July 28, 2005 9:43 PM by SQL Server Engine Team | 10 Comments

Direct dependencies on a column...
Queries to get direct dependencies on the column. Read More...

Posted Tuesday, July 05, 2005 6:39 PM by SQL Server Engine Team | 13 Comments

OUTPUT clause in INSERT/UPDATE/DELETE statements
Using OUTPUT clause in INSERT/UPDATE/DELETE statements Read More...

Posted Monday, June 13, 2005 5:58 PM by SQL Server Engine Team | 3 Comments

Filed under:

More Posts Next page »
Page view tracker