Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Simple question on accessing SQL?
Message
From
18/03/2002 11:59:05
 
 
General information
Forum:
Visual Basic
Category:
SQL Server
Miscellaneous
Thread ID:
00634102
Message ID:
00634118
Views:
27
'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
Previous
Reply
Map
View

Click here to load this message in the networking platform