Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
How to Connect SQL Server
Message
From
23/10/2007 09:30:49
 
 
To
23/10/2007 07:45:54
General information
Forum:
Visual FoxPro
Category:
Databases,Tables, Views, Indexing and SQL syntax
Environment versions
Visual FoxPro:
VFP 7
OS:
Windows XP SP2
Network:
Windows 2000 Server
Database:
Visual FoxPro
Miscellaneous
Thread ID:
01262742
Message ID:
01262775
Views:
13
You could for example write something like this inside your VFP code to access the SQL db:

local lnSql as integer
lnSql = SqlStringConnect("SERVER=(local); UID=sa; PWD=sa; DATABASE=testdb;")
SqlExecute(lnSql, "SELECT * FROM testtable", "vfpcursor")
SqlDisconnect(lnSql)
select vfpcursor
browse normal

HTH


>Thanx for the update, Can U let me know where to write this syntax?
>
>Saif
robert.oh.
Previous
Reply
Map
View

Click here to load this message in the networking platform