Re: Returning the Server Name
From: Dinesh T.K (tkdinesh_at_nospam.mail.tkdinesh.com)
Date: 04/28/04
- Next message: Peter: "Re: Returning the Server Name"
- Previous message: gerry: "Re: errors calling linked oleDB server stored procedures"
- In reply to: Hari Prasad: "Re: Returning the Server Name"
- Next in thread: Peter: "Re: Returning the Server Name"
- Messages sorted by: [ date ] [ thread ]
Date: Wed, 28 Apr 2004 21:49:53 +0530
..and its available only from SQL2000.
-- Dinesh SQL Server MVP -- -- SQL Server FAQ at http://www.tkdinesh.com "Hari Prasad" <hari_prasad_k@hotmail.com> wrote in message news:uJvnBqTLEHA.1340@TK2MSFTNGP12.phx.gbl... > Hi , > > You can also use the serverproperty function. > > select serverproperty('ServerName') > > Note: > This scenario is useful when there are multiple instances of SQL Server > installed on a Windows NT server, and the client needs to open another > connection to the same instance used by the current connection > > Thanks > Hari > MCDBA > > > "Zach Wells" <no_zwells_spam@ain1.com> wrote in message > news:#Q7#MVTLEHA.2576@TK2MSFTNGP12.phx.gbl... > > Peter wrote: > > > > > Hello, > > > > > > Is there a quick and easy way of returning the server > > > name ? > > > > > > Thanks for your time > > > Peter > > > > Yes: SELECT @@SERVERNAME > > > > > > Be sure to check out books online, this is documented there. > > > > Zach > >
- Next message: Peter: "Re: Returning the Server Name"
- Previous message: gerry: "Re: errors calling linked oleDB server stored procedures"
- In reply to: Hari Prasad: "Re: Returning the Server Name"
- Next in thread: Peter: "Re: Returning the Server Name"
- Messages sorted by: [ date ] [ thread ]
Relevant Pages
|