If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

 
Go Back  dBforums > Data Access, Manipulation & Batch Languages > ANSI SQL > Problems with myconnection.Open()

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 03-03-04, 16:07
Billmurray Billmurray is offline
Registered User
 
Join Date: Mar 2004
Posts: 1
Problems with myconnection.Open()

When my program is running, at the line myconnection.Open()m it says that there is an error:

An unhandled exception of type 'System.Data.SqlClient.SqlException' occurred in system.data.dll

Additional information: System error.

What is this?

I aquired SQL server 2000 and installed it on my machine

I thought the problem was with the line when setting up the connection as there wasnt previously a SQL server running on machine.

Dim myconnection As SqlConnection = New SqlConnection("server=(local);database=pubs;uid=;p wd=")

Does anyone know how to fix this problem???
Reply With Quote
  #2 (permalink)  
Old 03-04-04, 23:04
Pat Phelan Pat Phelan is offline
Resident Curmudgeon
 
Join Date: Feb 2004
Location: In front of the computer
Posts: 12,605
At first guess, I'd say that it was because you have no loginid or password specified, but I could be confused!

I'm really surprised that Tony hasn't moved this off to the VB area. He generally tries to keep this area tightly focused on SQL only.

-PatP
Reply With Quote
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On