Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
How to use parameters with SQL CE ?
Message
From
25/09/2011 15:37:57
 
 
To
All
General information
Forum:
Visual FoxPro
Category:
Other
Title:
How to use parameters with SQL CE ?
Miscellaneous
Thread ID:
01524665
Message ID:
01524665
Views:
104
Hello : How to using parameters with VFP and SQLCE 3.5, ?


CadCon="Provider=Microsoft.SQLSERVER.CE.OLEDB.3.5;Data Source=C:\Employes.SDF;SSCE:Database Password='';"
oc = CREATEOBJECT('adodb.connection')
oc.open(CadCon)

* Create Command
oComm=CREATEOBJECT("ADODB.COMMAND")
oComm.activeConnection=oc

* Select all records (ok)
cSQL="Select * from Employes"
mytabla=oc.execute(cSql)

*Now how to select selective records using Variables, because the following code is not working
cSQL="SELECT FROM EMPLOYE WHERE NAME = ? VP_NAME
myTabla=oc.execute(cSql)

Thanks very much!
- On the Road
In circle of Life
Next
Reply
Map
View

Click here to load this message in the networking platform