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

Our new SQL Server Forums are live! Come on over! We've restricted the ability to create new threads on these forums.

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

 All Forums
 Old Forums
 CLOSED - General SQL Server
 connect to named instance on localhost
 Forum Locked
 Printer Friendly
Author Previous Topic Topic Next Topic  

AskSQLTeam
Ask SQLTeam Question

USA
0 Posts

Posted - 03/30/2006 :  09:20:31  Show Profile  Visit AskSQLTeam's Homepage
robert writes "Hi,

How do I connect to the named instance on localhost using isql or osql?

i tried:
osql -S <servername> -d <db name> -E ( this works for local db)

for named instance, i tried:
osql -S <servername\named_instance> -d <db name> -E (it doesn't work)

Any help would be appreciated. Thx!
R-"

robvolk
Most Valuable Yak

USA
15732 Posts

Posted - 03/30/2006 :  09:21:42  Show Profile  Visit robvolk's Homepage
You can use (local) (parentheses required) or a single period . without parentheses, both refer to the default local instance:

osql -S(local)

...or...

osql -S.
Go to Top of Page

robvolk
Most Valuable Yak

USA
15732 Posts

Posted - 03/30/2006 :  09:29:28  Show Profile  Visit robvolk's Homepage
Ugh, that's is what happens when I don't have my coffee, for NAMED INSTANCES the following works:

osql -S(local)\instancename

...or...

osql -S.\instancename
Go to Top of Page
  Previous Topic Topic Next Topic  
 Forum Locked
 Printer Friendly
Jump To:
SQL Server Forums © 2000-2009 SQLTeam Publishing, LLC Go To Top Of Page
This page was generated in 0.04 seconds. Powered By: Snitz Forums 2000