Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
File DSN Connection
Message
From
23/04/2002 07:02:01
Cetin Basoz
Engineerica Inc.
Izmir, Turkey
 
 
To
23/04/2002 02:17:07
General information
Forum:
Visual FoxPro
Category:
Databases,Tables, Views, Indexing and SQL syntax
Miscellaneous
Thread ID:
00647993
Message ID:
00648037
Views:
21
>Hi Guys!
>
>I created a File DSN and named it as Conn_Static. I use SQL Passthrough to fetch data from remote database.
>
>My previous code goes like the one below.
>
>SQLCONNECT("bbfsdsn",pvUserid, pvUserpassword) to connect to the database. bbfsdsn is a system DSN that I made in the ODBC Connections.
>
>How can I use the file DSN to connect to the database using SQL Passthrough.
>I tried the code below but does not work.
>
>SQLCONNECT("Conn_Static", pvUserid, pvUserpassword)
>
>Any Idea?
>
>Thanks in advance.....

Mike,
I think you'd be more comfortable if you use SQLStringConnect() instead. ie:

lnHandle=SQLStringConnect('DRIVER=SQL Server;SERVER='+;
tcServerName+;
';DATABASE='+tcDefaultCatalog+;
';UID='+tcUserId+';PWD='+tcPWD)

Cetin
Çetin Basöz

The way to Go
Flutter - For mobile, web and desktop.
World's most advanced open source relational database.
.Net for foxheads - Blog (main)
FoxSharp - Blog (mirror)
Welcome to FoxyClasses

LinqPad - C#,VB,F#,SQL,eSQL ... scratchpad
Previous
Reply
Map
View

Click here to load this message in the networking platform