Jump to content
Xtreme .Net Talk

Recommended Posts

Posted

I get a System Error when I try to run a database program using a dataset. I declare the connection below:

 

Dim myconnection As SqlConnection = New SqlConnection("server=(local);database=pubs;uid=sa;pwd=")

 

After I get the error message the following line is highlighted:

 

myconnection.Open()

 

Is there possibly a problem with my software? Is there something database related that I need to have installed on my computer that I might not have? Thanks for your help.

Guest mutant
Posted

For me localhost or something like that doesnt always work.

Try specifying your computer name and sql server instance instead of local. Like this:

COmputerName\SqlServerName

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...