all groups > visual studio .net general > august 2006 >
You're in the

visual studio .net general

group:

Visual Studio 2000 suddenly can't find SQL Server.



Re: Visual Studio 2000 suddenly can't find SQL Server. Norman Yuan
8/14/2006 1:06:23 PM
visual studio .net general: OF course you cannot connect to SQL Server from VS2000, because VS2000 does
not exist.

Seriously, you probably meant one of VS2002, VS2003 or VS2005.

You may want to make it clear which cannot to connect: the application
(ASP.NET app) or your VS200x itself (from "Server Explorer")? Are you sure
the SQLServer Express's SQL Server service starts correctly when you start
your computer?

[quoted text, click to view]

Visual Studio 2000 suddenly can't find SQL Server. John Vaccaro
8/14/2006 3:20:37 PM
On Friday, I was working on a project and was able to access SQL Server
Express and get all the data I needed from the database. Today, I went to
access the same data that I accessed on Friday, and now VS tells me that SQL
Server does not exist or I don't have proper permission. Nothing has been
changed in SQL Server Express or the application. Both VS and SQLExpress are
on the same workstation. I have been accessing data from SQL Express for
about two weeks now and everything has been working until today. I am using
this setup on a Windows 2000 Pro workstation w/SP 4 in order to get my MSAD
certification since the course requires VS 2000.

Has anyone run into this problem or does anyone know of a fix? I have double
and tripple checked the login accounts for ASPNET (used by VS 2000) and
everything there is set correctly.

Thanks for any help,

John

Re: Visual Studio 2000 suddenly can't find SQL Server. John Vaccaro
8/14/2006 5:14:21 PM
Pardon the typo. VS 2002 and I can get a connection and view the databases
in the Server Explorer, but nothing else will connect. And, yes, SQL Server
Express is starting correctly when the PC boots.

John


[quoted text, click to view]

Re: Visual Studio 2000 suddenly can't find SQL Server. Norman Yuan
8/14/2006 5:34:27 PM
OK, from your previous post, your app is ASP.NET app. So, the configuration
of the web app or IIS configuration may have changed for some reason. You
must know which user account is used to run the ASP.NET APP and this user
account must have appropriate access permission to the SQL Server. By
default, the user account is MachineName\ASPNET.

[quoted text, click to view]

Re: Visual Studio 2000 suddenly can't find SQL Server. John Vaccaro
8/17/2006 11:03:23 AM
Norman,

Thanks for your help, but I figured out the problem. It has to do with the
connection string that is used in the lab files from the training CD. For
some reason or the other, the localhost worked fine for the "data source="
parameter, but then it stopped working and I had to modify each one to
include the database name "data source=PCname\SQLExpress." This corrected
the problem, so I guess I will have to make this change on each of the lab
files I update from here on out.

John

[quoted text, click to view]

AddThis Social Bookmark Button