Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Connecting to SQL Server 7.0 using TCP/IP
Message
 
 
To
06/12/2000 17:29:40
Christopher Pinnock
United General Insurance Company
Kingston, Jamaica
General information
Forum:
Visual FoxPro
Category:
Client/server
Miscellaneous
Thread ID:
00450143
Message ID:
00450326
Views:
34
>Using a DSN Less connection how can I connect to the SQL SERVER 7.0 database using TCP/IP. I'm writing the program using Microsoft Visual Foxpro 6.0.
>
>This is how I'm connectiong now:
>glnHandle = SQLSTRINGCONNECT("driver={SQL Server};server="+THIS.SERVERNAME+";uid="+alltrim(THIS.USERNAME)+";pwd="+alltrim(THIS.USERPASS)+";database="+THIS.DATABASE+";AutoTranslate=no;Regional=no;QuotedId=no;AnsiNPW=no")


You can tell ODBC to use TCP/IP Net-Library by adding
"Network=dbmssocn;"
to the connection string.
--sb--
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform