Thks for the help. The code is runing well after "Integrated Security=SSPI"
is added.
"Sue Hoegemeier" wrote:
> You need to include:
> Integrated Security=SSPI
> to tell the connection to use windows authentication. You
> can find sample connection strings at:
>
http://www.carlprothman.net/Default.aspx?tabid=87#OLEDBProviderForSQLServer >
> -Sue
>
> On Wed, 31 Aug 2005 03:19:02 -0700, "Chris"
> <Chris@discussions.microsoft.com> wrote:
>
> >Hi,
> >
> >i'm VB/SQL server beginner. Lately i try out using the ADO to retrieve data
> >frm SQL server, but encouter the connection problem when i run it.
> >
> >SQL server 7 is locally installed type (local) as server name, & use Window
> >NT Integreted security as log on to the server. (no username/passward needs)
> >
> >My VB code:
> >
> >Dim cnnConnection As ADODB.Connection
> >
> >Set cnnConnection = New Connection
> >
> >cnnConnection.ConnectionString = "Provider=sqloledb;" & _
> >"Data Source (local); Initial Catalog=BigBank;"
> >
> >cnnConnection.Open
> >.........
> >
> >Error:Invalid Connection String Attribute.
> >
> >
> >Any advise will be sincerely appreciated.
> >
> >Regards
> >Chris
> >
> >
>