1. Home
  2. Cloud & Dedicated Servers
  3. MS SQL
  4. HOWTO: Obtain SQL Database ID

HOWTO: Obtain SQL Database ID

Run from Query Analyzer:

USE master
SELECT name, DB_ID(name) AS DB_ID
FROM sysdatabases
ORDER BY name

Content retrieved from: https://support.appliedi.net/kb/a303/howto-obtain-sql-database-id.aspx.

Updated on November 11, 2019
Was this article helpful?

Related Articles

Customer Support Portal
Can't find the answer you're looking for? Don't worry we're here to help!
CONTACT SUPPORT