Please start any new threads on our new site at https://forums.sqlteam.com. We've got lots of great SQL Server experts to answer whatever question you can come up with.

 All Forums
 SQL Server 2000 Forums
 SQL Server Development (2000)
 getting database or sql server instance guid

Author  Topic 

tahir
Starting Member

3 Posts

Posted - 2007-07-20 : 08:10:33
hi,
how can i get a unique identifier for a database or a sql server instance.

thanks
tahir

rmiao
Master Smack Fu Yak Hacker

7266 Posts

Posted - 2007-07-20 : 10:59:42
You can get db id from sys.sysdatabases, but don't know if there is sql instance guid.
Go to Top of Page

tahir
Starting Member

3 Posts

Posted - 2007-07-20 : 11:12:48
hi again,
thanks for your reply but
sysdatabases.dbid is not a universal unique identifier for that database.

i want to get a theoretically unique string like "AD3fDJD82NDE29..." which identifies the database or server instance.
Go to Top of Page

spirit1
Cybernetic Yak Master

11752 Posts

Posted - 2007-07-20 : 11:13:56
there is no such id.
why do you need this?

_______________________________________________
Causing trouble since 1980
blog: http://weblogs.sqlteam.com/mladenp
Go to Top of Page

tahir
Starting Member

3 Posts

Posted - 2007-07-20 : 11:19:51
i am developing a software and i don't want my customers to move their database to another sql server instance.

this is because of licencing purposes.

thanks
Go to Top of Page

spirit1
Cybernetic Yak Master

11752 Posts

Posted - 2007-07-20 : 12:52:31
that is simply ridicolous.
you can't really deny access to your database in this way.

_______________________________________________
Causing trouble since 1980
blog: http://weblogs.sqlteam.com/mladenp
Go to Top of Page

tkizer
Almighty SQL Goddess

38200 Posts

Posted - 2007-07-20 : 13:37:10
Plus customers can move databases from one server to the next and transfer the license with it.

Tara Kizer
http://weblogs.sqlteam.com/tarad/
Go to Top of Page
   

- Advertisement -