Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
OLEDB Create View ?
Message
De
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:
00662512
Vues:
19
>Trying to create a view with a VBS. Not working (why else would I be here [grin]?). Can anyone say why?
>
>
>
>
>	Set oCacheConn = CreateObject("ADODB.Connection")
>	cConnString = "Provider=VFPOLEDB.1;Data Source=v:\remote1\db\alldbc1.dbc"
>	With oCacheConn
>		.CursorLocation = 2		' adUseServer
>		.ConnectionString = cConnString
>		.Open
>	End With
>	cExec = "Create View View01 as Select * from alldbc1!accidentstate Top 1"
>	oCacheConn.Execute(cExec)
>
>
>	
>
>Error is
>D:\wintemp\viewmake.vbs(13, 2) Microsoft OLE DB Provider for Visual FoxPro: Command contains unrecognized phrase/keyword.
>
>?
>
>Thanks.

Steve,
At first glance order by is missing and palce top 1 after select.
And another update :) It'd be SQL View.
Cetin
Çetin Basöz

The way to Go
Flutter - For mobile, web and desktop.
World's most advanced open source relational database.
.Net for foxheads - Blog (main)
FoxSharp - Blog (mirror)
Welcome to FoxyClasses

LinqPad - C#,VB,F#,SQL,eSQL ... scratchpad
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform