Login failed for user 'sa'



Hi

When I try to run my VB form, I get this error msg: Login failed for
user 'sa'. I had click on the Properties of the server, then security,
In the frame of authentication, I click on SQL Server and Windows,
Audit Level: None. Is this setting correct? I have no idea why I am
getting this error. When I debug, it shows on line "adoConn.Open".

Can you all help me? Your help is appreciate.

Below is my VB code to connect database:

Public Function functConnectDatabase()
Dim strConn As String
Set adoConn = New ADODB.Connection
adoConn.ConnectionString = strConn

strConn = "Provider=sqloledb;Network Library=DBMSSOCN;Data
Source=Yam_J,1433;"
strConn = strConn & "Initial Catalog="
strConn = strConn & "E_PASSPORT;"
strConn = strConn & "User ID=sa; Password="

adoConn.ConnectionString = strConn
adoConn.Open
End Function

.



Relevant Pages

  • [SLE] Printer Problem
    ... server igor.ffc Configured as: HP - ready. ... 'localhost', attempt 1 connected to 'localhost' requesting printer ... for 'hp' does not exist on server abnormal.ffc' error msg: ... 'computation@abnormal+606' to HP@localhost connecting to 'localhost', ...
    (SuSE)
  • Re: SBS NIC Cards give Code 1
    ... Have you tried removing the device (NICs) in Device Manager; ... Add New Hardware wizard and reinstall the NICusing drivers downloaded ... and my SBS server went down hard a number of time. ... Each time I tried to add tcp/ip the error msg given was "Cannot ...
    (microsoft.public.windows.server.sbs)
  • Re: Problem with set up
    ... Use the Norton cleanup program, ... Gary VanderMolen, MS-MVP (Mail) ... Possible causes for this include server problems, network problems, or a long period of inactivity. ... I am trying to set up Mail and keep> getting an error msg. ...
    (microsoft.public.windows.vista.mail)
  • [SLE] Configuring a LAN Printer as a User
    ... 'localhost', attempt 1 connected to 'localhost' requesting printer ... failed error 'NONZERO RFC1179 ERROR CODE FROM SERVER' with ack ... for 'hp' does not exist on server abnormal.ffc' error msg: ... 'computation@abnormal+620' to HP@localhost connecting to 'localhost', ...
    (SuSE)
  • Re: Problems with Connection Strings
    ... My Dev website is stored locally and I am publishing to the IIS server. ... dim strConn ... oConn.open strConn ...
    (microsoft.public.scripting.vbscript)