Visual Studio error when trying to open dbproj files?

"YOU AND THE ART OF ONLINE DATING" is the only product on the market that will take you step-by-step through the process of online dating, provide you with the resources to help ensure success. Get it now!

You need to tell Visual Studio the correct instance of SQL Server to use for validation.

Up vote 0 down vote favorite 1 share g+ share fb share tw.

I have Visual Studio 2008 Database Edition, and everything worked great until the first time I tried to load a . Dbproj file. These database project files work for the other developers I work with, but when I try to open it, I just get an error message "Object reference ot set to an instance of an object.

" It's probably the same problem this guy is having, although he didn't do a good job of describing it and has no solution. Every other kind of project file loads and builds and runs normally. Dbproj files all generate this cryptic error.

I just tried a fresh removal and reinstall of Visual Studio 2008 DE to no avail. Could this have something to do with my SQL 2005 installation? (This also works normally through SQL Server Management Studio.

) ** UPDATE ** Probably even more importantly, this same error occurs when I try to make a new dbproj file. Every other type of project can be created no problem. Visual-studio-2008 sql-server-2005 visual-studio-team-system visual-studio-dbpro dbproj link|improve this question edited Jul 15 '11 at 12:32 asked Jul 15 '11 at 12:23Alain2,869227 96% accept rate.

You need to tell Visual Studio the correct instance of SQL Server to use for validation. Tools>Options>DatabaseTools Change the settings in "Data Connections" and "Design-time Validation Database" to reflect the correct instance.

Guess we edited this issue at the same time! Glad we solved it. – ml_black Jul 15 '11 at 14:51 As the member of my team that discovered the problem, you get the credit!

– Alain Jul 15 '11 at 18:20.

After many failed re-configurations and re-installations, a member of my team discovered the problem! Under Tools > Options > Database Tools > Design-time Validation Database, there is an option to set your SQL Server Instance Name. Visual Studio automatically picks this when it's installed.

The key is that Visual Studio doesn't necessarily pick the right one. I happen to have 3 SQL server instances on my machine. SQLEXPRESS (a 2005 instance that Visual Studio installed alongside itself), SQLEXPRESS2005, a 2005 instance I installed, and SQLEXPRESS2008, which I also installed.

Visual Studio had configured itself to connect to the SQLEXPRESS2008 instance, even though it only supports SQL2005 dbproj files by default. By opening this dialogue, and updating the server instance name, the error no longer appeared and I was able to open dbproj files.

I cant really gove you an answer,but what I can give you is a way to a solution, that is you have to find the anglde that you relate to or peaks your interest. A good paper is one that people get drawn into because it reaches them ln some way.As for me WW11 to me, I think of the holocaust and the effect it had on the survivors, their families and those who stood by and did nothing until it was too late.

Related Questions