Click here to Skip to main content
15,891,657 members
Home / Discussions / Database
   

Database

 
AnswerRe: Beginners help? Pin
Mike Osbahr19-May-03 11:34
Mike Osbahr19-May-03 11:34 
QuestionHow to Filter a database with the help of a combobox ? Pin
geraldschaller10-May-03 2:26
geraldschaller10-May-03 2:26 
GeneralExecuteReader question Pin
kensai10-May-03 1:14
kensai10-May-03 1:14 
GeneralRe: ExecuteReader question Pin
jeff_martin12-May-03 7:38
jeff_martin12-May-03 7:38 
GeneralPerl Project Help Pin
micahk9-May-03 1:05
micahk9-May-03 1:05 
GeneralWriting a DataTable As DBF (Long Post) Pin
Mark Sanders8-May-03 10:32
Mark Sanders8-May-03 10:32 
GeneralRe: Writing a DataTable As DBF (Long Post) Pin
Daniel Turini8-May-03 10:58
Daniel Turini8-May-03 10:58 
GeneralSamples Pin
Mark Sanders9-May-03 8:10
Mark Sanders9-May-03 8:10 
I have been trying to find some examples of setting up an INSERT into a .dbf using OleDbParameter class. I have been unsuccessful. Can you point me to some examples? I understand how to use parameters with SQL Server stored procedures but I seem to be missing something when it comes to using parameters for and Ole connection to a .dbf.

Here is what I have so far but it is not working.
string connectionString = @"Provider=Microsoft.Jet.OLEDB.4.0;Data Source=C:\;Extended Properties=dBase IV";
string sqlString = "INSERT INTO TestTabl (Column) VALUES (?)";
OleDbConnection connection = new OleDbConnection(connectionString);
OleDbCommand command = new OleDbCommand(sqlString, connection);


command.Parameters.Add("@Column", OleDbType.VarChar);
command.Parameters["@Column"].Value = "It Worked";


command.Connection.Open();
command.ExecuteNonQuery();
command.Connection.Close();



Thanks

Mark Sanders
GeneralBest Way Pin
Mark Sanders12-May-03 9:53
Mark Sanders12-May-03 9:53 
GeneralRe: Writing a DataTable As DBF (Long Post) Pin
User 31295915-May-03 2:27
User 31295915-May-03 2:27 
GeneralSQL Statment Question... Pin
Jason Weibel8-May-03 5:29
Jason Weibel8-May-03 5:29 
GeneralRe: SQL Statment Question... Pin
basementman12-May-03 6:01
basementman12-May-03 6:01 
GeneralRe: SQL Statment Question... Pin
Nick Parker28-Jul-03 8:03
protectorNick Parker28-Jul-03 8:03 
GeneralRe: SQL Statment Question... Pin
Jason Weibel28-Jul-03 8:07
Jason Weibel28-Jul-03 8:07 
GeneralRe: SQL Statment Question... Pin
Nick Parker31-Jul-03 10:30
protectorNick Parker31-Jul-03 10:30 
GeneralDetermining the oledbconnection is from oracle database Pin
Syed Abdul Khader7-May-03 23:46
Syed Abdul Khader7-May-03 23:46 
GeneralMaster-Detail WinForm Pin
itawil7-May-03 8:03
itawil7-May-03 8:03 
GeneralMS access relationships and ASP Pin
Sarvesvara (BVKS) Dasa6-May-03 22:40
Sarvesvara (BVKS) Dasa6-May-03 22:40 
GeneralRe: MS access relationships and ASP Pin
Jean-Marc Molina29-May-03 13:32
Jean-Marc Molina29-May-03 13:32 
Questionhow to access Paradox database? Pin
GreatSolar6-May-03 16:12
GreatSolar6-May-03 16:12 
GeneralHierarchical query Pin
Anonymous6-May-03 1:47
Anonymous6-May-03 1:47 
GeneralRe: Hierarchical query Pin
DiWa6-May-03 3:07
DiWa6-May-03 3:07 
GeneralRe: Hierarchical query Pin
James Simpson7-May-03 5:43
James Simpson7-May-03 5:43 
GeneralInstalling MySQL on Windows Pin
A Sha2-May-03 18:44
sussA Sha2-May-03 18:44 
GeneralRe: Installing MySQL on Windows Pin
Jon Sagara5-May-03 8:11
Jon Sagara5-May-03 8:11 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.