Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
OLEDB Create View ?
Message
 
To
29/05/2002 11:13:02
Cetin Basoz
Engineerica Inc.
Izmir, Turkey
General information
Forum:
Visual FoxPro
Category:
Other
Miscellaneous
Thread ID:
00662501
Message ID:
00662518
Views:
16
Thanks, I spoke too soon. What I needed to do was use the Command Object explicitly. Using it implicitly with the Connection Object is not good enough. This works:
Set oCacheConn = CreateObject("ADODB.Connection")
cConnString = "Provider=VFPOLEDB.1;Data Source=v:\all1dbc.dbc"
With oCacheConn
	.CursorLocation = 2		' adUseServer
	.ConnectionString = cConnString
	.Open
End With
cExec = "Create View MyView1 as Select * from aiacode2"
Set oCMD = CreateObject("ADODB.Command")
oCMD.ActiveConnection = oCacheConn
oCMD.CommandText = cExec
oCMD.Execute
However, I am still tripping on using parameterized views....
Previous
Reply
Map
View

Click here to load this message in the networking platform