Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Cant connect to a VFP Table
Message
De
23/06/2007 08:50:11
Cetin Basoz
Engineerica Inc.
Izmir, Turquie
 
Information générale
Forum:
ASP.NET
Catégorie:
Code, syntaxe and commandes
Divers
Thread ID:
01235167
Message ID:
01235169
Vues:
19
>Hi.
>I have a web.config file with:
>
>connectionString="Provider=vfpoledb.1;Data Source=C:\Webportal\App_Data\WP.dbc;Collating Sequence=MACHINE;"
>
>
>string Cs = settings.ConnectionString;
>string CommandString = "SELECT * FROM .....";
>SqlDataAdapter da = new SqlDataAdapter(CommandString, Cs);
>
>On the SqlDataAdapter line , I am getting a run time error saying:
> keyword not supported 'provider'
>
>It looks like there's something wrong with the connection string
>
>Anybody got any ideas ?
>
>Regards,
>Gerard

Gerard,
You're using SqlDataAdapter. That's specific to SQL server and provider is implicitly set. Use OleDbDataAdapter and you'd be fine.
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