Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Trying to open local SQL Server database
Message
De
16/01/2006 16:57:52
 
 
À
16/01/2006 16:51:01
Dragan Nedeljkovich (En ligne)
Now officially retired
Zrenjanin, Serbia
Information générale
Forum:
Visual FoxPro
Catégorie:
Base de données, Tables, Vues, Index et syntaxe SQL
Divers
Thread ID:
01087065
Message ID:
01087352
Vues:
11
>Two ways - one is DATABASE=UP241 (or whatever the DB name is). The other way is DATABASE=MASTER, and then issue the USE YOURDB as the first command after connection, and check the result.

Even by doing this, it doesn't work.
lcSQLString=[DRIVER=SQL Server;SERVER=.\SQLEXPRESS;Database=Master;Trusted_Connection=True;]
lnSQLHandle=SQLSTRINGCONNECT(lcSQLString)
? SQLEXEC(lnSQLHandle,'USE Test')
lnSQLHandle has a value. But, executing SQLExec() on it, generates a -1.
Michel Fournier
Level Extreme Inc.
Designer, architect, owner of the Level Extreme Platform
Subscribe to the site at https://www.levelextreme.com/Home/DataEntry?Activator=55&NoStore=303
Subscription benefits https://www.levelextreme.com/Home/ViewPage?Activator=7&ID=52
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform