Tuesday, January 3, 2012

Obtain database ID number

SELECT DB_ID(N'AdventureWorks2008R2') AS [Database ID]

No comments:

Post a Comment