SQL Server Forums
Profile | Register | Active Topics | Members | Search | Forum FAQ
 
Register Now and get your question answered!
Username:
Password:
Save Password
Forgot your Password?

 All Forums
 SQL Server 2000 Forums
 SQL Server Development (2000)
 Instance Server name
 New Topic  Reply to Topic
 Printer Friendly
Author Previous Topic Topic Next Topic  

hrishi_des
Yak Posting Veteran

76 Posts

Posted - 12/05/2006 :  00:30:50  Show Profile  Reply with Quote
How to find programmatically name of instance server?

madhuotp
Yak Posting Veteran

78 Posts

Posted - 12/05/2006 :  00:45:50  Show Profile  Reply with Quote
Hi ,

try - select @@Servicename

BOL Ref :

Returns the name of the registry key under which SQL Server is running. @@SERVICENAME returns 'MSSQLSERVER' if the current instance is the default instance; this function returns the instance name if the current instance is a named instance.

madhu
Go to Top of Page
  Previous Topic Topic Next Topic  
 New Topic  Reply to Topic
 Printer Friendly
Jump To:
SQL Server Forums © 2000-2009 SQLTeam Publishing, LLC Go To Top Of Page
This page was generated in 0.05 seconds. Powered By: Snitz Forums 2000