Unix Technical Forum

I need the istance name in my SQL 2000

This is a discussion on I need the istance name in my SQL 2000 within the SQL Server forums, part of the Microsoft SQL Server category; --> Hi guys, how to view the default instance name in my sql server?...


Go Back   Unix Technical Forum > Database Server Software > Microsoft SQL Server > SQL Server

FAQ Members List Calendar Search Today's Posts Mark Forums Read
  #1 (permalink)  
Old 02-29-2008, 04:14 AM
amnésia
 
Posts: n/a
Default I need the istance name in my SQL 2000

Hi guys,
how to view the default instance name in my sql server?


Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #2 (permalink)  
Old 02-29-2008, 04:14 AM
John Bell
 
Posts: n/a
Default Re: I need the istance name in my SQL 2000

Hi

Have you tried something like:

SELECT ISNULL(SERVERPROPERTY('InstanceName'), SERVERPROPERTY('MachineName'))

The default instance returns NULL. More information in Books Online.

John

"amnésia" <secondotetidoilmioindirizzocosilospammi@nondireca zzate.it> wrote
in message news:camuap$96g$1@domitilla.aioe.org...
> Hi guys,
> how to view the default instance name in my sql server?
>
>



Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Reply


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On
Forum Jump


All times are GMT. The time now is 09:44 AM.


Powered by vBulletin® Version 3.6.5
Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.
SEO by vBSEO 3.2.0
www.UnixAdminTalk.com