pagego Posted May 21, 2003 Posted May 21, 2003 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. Quote
Guest mutant Posted May 21, 2003 Posted May 21, 2003 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 Quote
Moderators Robby Posted May 22, 2003 Moderators Posted May 22, 2003 Something more generic that should be more portable... ...server=127.0.0.1... Quote Visit...Bassic Software
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.