.NET Programming
--
Questions
--
Followers
Top Experts
Is the following connection string correct?
String connString="server=Instanc
Why am I getting this error message:
"SQL Server does not exist or access denied"?
Thanks.
Zero AI Policy
We believe in human intelligence. Our moderation policy strictly prohibits the use of LLM content in our Q&A threads.
Does sa have permissions on 'DB'?
Second (obvious one): Is SQL Server up and running when you this?
Third:
Try accessing the server by it's IP:
String connString="server=(local)
or
String connString="server=127.0.0
or any other IP.
D'Mzz!
RoverM
connString="server=Instanc
PS
If it doesn't work that way either.
1) R u sure your SQL server is running?
2) The sa passward is blank?
Hope i was helpfull,
Orbital.






EARN REWARDS FOR ASKING, ANSWERING, AND MORE.
Earn free swag for participating on the platform.
If I double-click "dbo", a 'databse user property dialog' shows. In Permit in databse role, only 'public' is checked. If I click "permission", myTable has all select, insert, etc checked (except for EXEC).
If I right-click 'dbo' ->New Databse User, I cannot add 'sa', it is 'reserved.' I cannot add my Windows account, it says 'already exists.'
What do I do?
I think what you want is to drill into Security -> Logins instead of Database -> Users.
Try this and you should see the Windows account that you you're trying to add already exists. Right-Click and then set the access permissions as necessary.
I would still recommend that instead of doing this you change your access validation to SQL Server and connect as you were trying in your original post. Windows validation can be more difficult to troubleshoot so I'd get an SA connection working first and then move to Windows validation if that's where you want to be.
Hope that helps...
My SQL server 2000 database running on WIN- NT and server name in 'NTSERVER'.
SQL server name also 'NTSERVER'.
I installed .NET in my machine (Win 2000) and create connection string in ASP.NET to NTSERVER.
I receievd the same error message 'SQL Server does not exist or access denied', when I try to connect with IP address instead of server name on Data source - It's connected.
I need alternat solution other than IP address.
Pl, provide solution ...

Get a FREE t-shirt when you ask your first question.
We believe in human intelligence. Our moderation policy strictly prohibits the use of LLM content in our Q&A threads.
i tested the user credential with enterprise manager and all seems right
but by code also if i use de sa login i receive the same message:
SQL Server does not exist or access denied
this is my connection string:
Connection Timeout=20;Server=192.168.
Connection Timeout=20;Server='192.168






EARN REWARDS FOR ASKING, ANSWERING, AND MORE.
Earn free swag for participating on the platform.
yes was "Trusted_Connection=true"
.NET Programming
--
Questions
--
Followers
Top Experts
The .NET Framework is not specific to any one programming language; rather, it includes a library of functions that allows developers to rapidly build applications. Several supported languages include C#, VB.NET, C++ or ASP.NET.