Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Trying to open local SQL Server database
Message
From
16/01/2006 16:57:52
 
 
To
16/01/2006 16:51:01
Dragan Nedeljkovich (Online)
Now officially retired
Zrenjanin, Serbia
General information
Forum:
Visual FoxPro
Category:
Databases,Tables, Views, Indexing and SQL syntax
Miscellaneous
Thread ID:
01087065
Message ID:
01087352
Views:
12
>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
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform