Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
DSN Less data
Message
From
12/02/2004 17:00:16
 
 
To
12/02/2004 16:50:11
Joel Hokanson
Services Integration Group
Bellaire, Texas, United States
General information
Forum:
Visual FoxPro
Category:
Forms & Form designer
Title:
Miscellaneous
Thread ID:
00876874
Message ID:
00876878
Views:
10
>How do I have a form with a remote view and use a DSNless conection to the SQL server>
>
>The remote view is defined in a DBC.


I don't think you can use an existing remote view. DNSLess connections are mainly for using your own code in SQLEXEC() calls.

nHandle = SQLSTRINGCONNECT([Driver={SQL Server};Server=YourServerName;Database=YourDataBase;Uid=YourUser;Pwd=YourPassword;])
nStatus = SQLEXEC(nHandle,[SELECT * FROM YourTable],"CursorName")

Then you'd need to set all the properties to make it updatable, etc., yourself.
Fred
Microsoft Visual FoxPro MVP

foxcentral.net
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform