Quantcast
Channel: Visual Studio and Visual Web Developer Express
Viewing all articles
Browse latest Browse all 3509

Error adding connection in Server Explorer: “Unable to add data connection. ExecuteScalar requires an open and available connection.”

$
0
0
<div>

I'm using Visual Studio 2008, and my database is SQL Server 2000.

I want to add a connection to the Server Explorer in VS. The Data source is Microsoft SQL Server (SqlClient). After entering in all my information and I click Test Connection, it is successful.

But when I click OK, I get the error:

Unable to add data connection. ExecuteScalar requires an open and available connection. The connection's current state is closed.

What's going on here?

</div>

Viewing all articles
Browse latest Browse all 3509


<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>