|
|
|
Forum Newbie
      
Group: General Forum Members
Last Login: Tuesday, May 26, 2009 2:36 AM
Points: 7,
Visits: 27
|
|
When connecting to the default instance using osql on the server :
1. this works
osql -S localhost -U sa -P password
2. this fails
osql -S localhost\mssqlserver -U sa -P password
([DBNETLIB]Sql server does not exist or access denied
In practice I can miss out the -S setting but I wonder what I'm doing wrong as regards specifying the instance.
Ewan
|
|
|
|
|
SSCarpal Tunnel
       
Group: General Forum Members
Last Login: Today @ 9:14 AM
Points: 4,428,
Visits: 7,196
|
|
Ewan
Are you saying you have two instances on the same computer: a default instance and a named instance called mssqlserver?
John
|
|
|
|
|
SSCommitted
      
Group: General Forum Members
Last Login: Tuesday, December 11, 2012 9:07 AM
Points: 1,619,
Visits: 473
|
|
Ewan,
The default instance of SQL Server is always referred to as the server name, not server\service (localhost\mssqlserver). You can also refer to it by network name. Only named instances are referred to by servername\instancename.
Hope this helps.
|
|
|
|
|
Forum Newbie
      
Group: General Forum Members
Last Login: Tuesday, May 26, 2009 2:36 AM
Points: 7,
Visits: 27
|
|
John Apologies in delay in getting back. No, I only have the 1 instance. I assumed that the syntax should be the same for the default as for other instance but this does not appear to be the case - see post from Rich. Thanks for response. Ewan
|
|
|
|
|
Forum Newbie
      
Group: General Forum Members
Last Login: Tuesday, May 26, 2009 2:36 AM
Points: 7,
Visits: 27
|
|
Rich Thanks for the answer. Ewan
|
|
|
|