Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Simple question on accessing SQL?
Message
De
18/03/2002 11:59:05
 
 
À
18/03/2002 11:41:30
Information générale
Forum:
Visual Basic
Catégorie:
SQL Server
Divers
Thread ID:
00634102
Message ID:
00634118
Vues:
26
'You Can Connect To Sql Server From VB by the following:

Dim cn as ADODB.Connection
Set cn = New ADODB.Connection
mvarConnectionString = "User ID=sa;" & _
"Data Source=(LOCAL);" & _
"Initial Catalog=Student;"
With cnLegation
.CursorLocation = adUseClient
.Provider = "SQLOLEDB"
.ConnectionString = mvarConnectionString
.Open
End With

' Note :Initial Catalog is Database name
' Data Source is Server Name

' If this is your request Email me to tell you about calling SP
' Ezoarabi@hotmail.com
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform