Once sql server has been installed how to change from (local) to
localhost or the other way arround from (local) to localhost? (currently
set (local) and want to change to localhost.
Secondly, what the hell is the difference between them. On development
machines I have installed sometimes localhost will not work but (local)
will. This is the case even when the hosts (<win>/system32/drivers/etc)
file has an entry like the following
127.0.0.1 localhost
Seems very confusing to have two different ways to refer the 'local
machine'
???
--
Tibor Karaszi, SQL Server MVP
http://www.karaszi.com/sqlserver/default.asp
"who" <wh...@spambucket.com> wrote in message news:4081D1C1...@spambucket.com...
Here's some more things I did but don't really understand the outcome except that isql and osql get at the
database differently,
ping localhost WORKS FINE
connectionString = "server=localhost;uid=sa;pwd=;database=pubs;"
FAILS
connectionString= "server=(local);uid=sa;pwd=;database=pubs;"
WORKS
C:\>osql -U sa -S localhost FAILS
Password:
[DBNETLIB]General network error. Check your network documentation.
[DBNETLIB]ConnectionRead (recv()).
C:\>isql -U sa -S localhost WORKS
Password:
1>
I really can't say why ISQL work using the word localhost. My guess is that there is code inside ISQL that
changes "localhost" to "(local)" so that when this arrives to the netlib, it receives "(local)". But as I
don't have the source code available for ISQL, I can't confirm that guess.
--
Tibor Karaszi, SQL Server MVP
http://www.karaszi.com/sqlserver/default.asp
"who" <wh...@spambucket.com> wrote in message news:4082D596...@spambucket.com...
Tibor Karaszi wrote:
> Did you check on the client or server machine?
They are one and the same. This is my development machine. I doing ASP.NET
development. The Sql Server is local.
> Also, did you use Client or Server network utility?
Server
> And, which
> of the netlibs were at the top if you checked on the client machine using client network utility?
named pipes was at the top then TCP/IP
--
--
Tibor Karaszi, SQL Server MVP
http://www.karaszi.com/sqlserver/default.asp
"who" <wh...@spambucket.com> wrote in message news:4082FA1D...@spambucket.com...