Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Excel OLE DB connection string
Message
Information générale
Forum:
Visual FoxPro
Catégorie:
COM/DCOM et OLE Automation
Divers
Thread ID:
01207361
Message ID:
01207365
Vues:
19
>Hi,
>
>Cant seem to get the connection string right. Keep getting the 'No named arguments' OLE error message.
>
>I'm using the following:
>
>   cConnString = "Provider=Microsoft.Jet.OLEDB.4.0;Data Source=" + GETFILE()
>		+ [;Extended Properties="Excel 8.0;HDR=Yes;IMEX=1";]
>
>
>Any help is greatly appreciated.
>
>Thanks,
>Arriyel

Check http://connectionstrings.com/?carrier=excel

Update. Oops, looks exactly like yours. Let me try.
It brings a Select Data Source dialog for me.

This works:

SQLSTRINGCONNECT([Driver={Microsoft Excel Driver (*.xls)};DriverId=790;Dbq=C:\Documents and Settings\Owner\My Documents\Book1.xls;DefaultDir=C:\Documents and Settings\Owner\My Documents;])
If it's not broken, fix it until it is.


My Blog
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform