Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
File DSN Connection
Message
De
23/04/2002 07:02:01
Cetin Basoz
Engineerica Inc.
Izmir, Turquie
 
 
À
23/04/2002 02:17:07
Information générale
Forum:
Visual FoxPro
Catégorie:
Base de données, Tables, Vues, Index et syntaxe SQL
Divers
Thread ID:
00647993
Message ID:
00648037
Vues:
22
>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
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform