Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Which Type Of SQL Connection String?
Message
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
01054000
Message ID:
01054007
Views:
18
>I'm converting a VFP app to SQL Server.
>
>Which syntax should I use:
>
>
>SQLCONNECT([nStatementHandle])
>
>
>or
>
>
>SQLCONNECT([cConnectionName | cDataSourceName [, cUserID [, cPassword ]][, lShared]])
>
Kevin,

I prefer to use:
SQLSTRINGCONNECT('DRIVER={SQL Server};SERVER=(local);database=AL;integrated security=true')
This connects to the SQL Server on my local PC using Windows Authentication. You can also substitue a username/password combination if you want.

HTH,
Chad
_________________________________
There are 2 types of people in the world:
    Those who need closure
Previous
Reply
Map
View

Click here to load this message in the networking platform