sql server connection problem

S

Savas Ates

"SQL Server does not exist or access denied"

sql server error:17
i cant connect sql Server 2000
why?
 
W

Wayne Wengert

Are you using a SQL Server Login (if so - check login and password used) or
Windows?

Wayne
 
S

Savas Ates

i can connect with system dsn

name=localhost
and i test my connection
it is succesfull with windows nt authentication

in as p my connection string
Set baglantim=Server.Createobject("ADODB.Connection")
Outpost="PROVIDER=SQLoledb;Initial Catalog=friends;User Id=sa;password=;Data
Source=localhost"

im getting this error
"SQL Server does not exist or access denied"
 
S

Savas Ates

Set baglantim=Server.Createobject("ADODB.Connection")
Outpost="PROVIDER=SQLoledb;Initial Catalog=friends;User Id=sa;password=;Data
Source=localhost"


when i write

Data Source=111.111.111.111(myip)
in my connection string it works


when i write

Data Source=localhost

it doesnt work

why?
 
A

Aaron [SQL Server MVP]

What happens when you ping localhost from a command line? Have you tried
(local), your machine name, 127.0.0.1, etc.?
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,769
Messages
2,569,581
Members
45,056
Latest member
GlycogenSupporthealth

Latest Threads

Top