Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
ODBC DATA SOURCE
Message
From
21/11/2000 10:04:04
 
 
To
21/11/2000 09:10:58
Fida Shamsoodeen
Combined Systems (Pty) Ltd
Centurion, South Africa
General information
Forum:
Visual FoxPro
Category:
Client/server
Miscellaneous
Thread ID:
00444046
Message ID:
00444080
Views:
10
>>>>>>>>>>>>>>>>>>>>>>
>I use an ODBC driver to connect to a SQL 6.5 database.
>In my program i use sqlconnect('BAUDWIN','SA','') OR
>SQLSTRINGCONNECT('DRIVER=SQL SERVER ETC ETC')
>
>The problem is i would like to use say e.g. the 'baudwin','sa,''
>as a variable. Can i set this in the config file or how else do i do this.
>I would like to do the same for the SQLSTRINGCONNECT
>>>>>>>>>>>>>>>>>>>>>>

Fida,

Wouldn't this work?

lcName = 'BAUDWIN'
lcUID = 'SA'
lcPassword = ''
sqlconnect(lcName,lcUID,lcPassword)


Alex Feldstein, MCP, Microsoft MVP
VFP Tips: English - Spanish
Website - Blog - Photo Gallery


"Once again, we come to the Holiday Season, a deeply religious time that each of us observes, in his own way, by going to the mall of his choice." -- Dave Barry
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform