Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
OLEDB Create View ?
Message
 
À
29/05/2002 11:13:02
Cetin Basoz
Engineerica Inc.
Izmir, Turquie
Information générale
Forum:
Visual FoxPro
Catégorie:
Autre
Divers
Thread ID:
00662501
Message ID:
00662518
Vues:
15
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....
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform