C
Carlos
Need help with setting up data connection in ADO.NET. Checked message
boards but have not found solution. Any help would be appreciated.
Here is my situation:
BACKGROUND: I'm using Visual Basic.NET Standard 2002 on XP Pro
running MSDE (the one that came w/ Visual Studio).
Here is the problem: when setting up a data connection, I am able to
see the MSDE SQL server running on my local machine form the Server
Explorer. The connection seems just fine, since I can browse all
tables, see all their contents, etc.
The problem begins when I try to creat the ADO.NET connection. I drag
one of the tables onto a form, and VS begins generating the connection
code. However, an error comes up and reports that "SQL Server does
not exist or access denied". Afer investigating, I've tried the
following changes to my connection string settings, but to no avail:
1. VS configured the SQL Server on my machine (SJ-CGONZALEZ) with the
following name SJ-CGONZALEZ\VSdotNET. I edited the connection string
to include an escape character for the "\" that appears. In other
words, connection string became: data source=SJ-CGONZALEZ\\VSdotNET.
It didn't work.
2. I tried using named pipes instead of tcp-ip, adding the following
to the connection string: net=dbnmpntw. That didn't help.
3. I tried doing points 1 and 2 a the same time, but it didn't work.
What should I be trying next? Any help would be greatly appreciated.
Thanks,
Carlos
boards but have not found solution. Any help would be appreciated.
Here is my situation:
BACKGROUND: I'm using Visual Basic.NET Standard 2002 on XP Pro
running MSDE (the one that came w/ Visual Studio).
Here is the problem: when setting up a data connection, I am able to
see the MSDE SQL server running on my local machine form the Server
Explorer. The connection seems just fine, since I can browse all
tables, see all their contents, etc.
The problem begins when I try to creat the ADO.NET connection. I drag
one of the tables onto a form, and VS begins generating the connection
code. However, an error comes up and reports that "SQL Server does
not exist or access denied". Afer investigating, I've tried the
following changes to my connection string settings, but to no avail:
1. VS configured the SQL Server on my machine (SJ-CGONZALEZ) with the
following name SJ-CGONZALEZ\VSdotNET. I edited the connection string
to include an escape character for the "\" that appears. In other
words, connection string became: data source=SJ-CGONZALEZ\\VSdotNET.
It didn't work.
2. I tried using named pipes instead of tcp-ip, adding the following
to the connection string: net=dbnmpntw. That didn't help.
3. I tried doing points 1 and 2 a the same time, but it didn't work.
What should I be trying next? Any help would be greatly appreciated.
Thanks,
Carlos