Click here to Skip to main content
15,886,137 members
Home / Discussions / Database
   

Database

 
AnswerRe: Where to store my files? Pin
David Mujica1-Jun-09 4:28
David Mujica1-Jun-09 4:28 
GeneralRe: Where to store my files? Pin
musefan1-Jun-09 4:36
musefan1-Jun-09 4:36 
GeneralGo with storing files on fileserver Pin
David Mujica1-Jun-09 5:29
David Mujica1-Jun-09 5:29 
GeneralRe: Go with storing files on fileserver Pin
musefan1-Jun-09 5:46
musefan1-Jun-09 5:46 
AnswerRe: Where to store my files? Pin
Eddy Vluggen1-Jun-09 5:05
professionalEddy Vluggen1-Jun-09 5:05 
GeneralRe: Where to store my files? Pin
musefan1-Jun-09 5:13
musefan1-Jun-09 5:13 
GeneralRe: Where to store my files? Pin
Eddy Vluggen1-Jun-09 7:57
professionalEddy Vluggen1-Jun-09 7:57 
QuestionVFP OLE DB Provider error: Variable X is not found Pin
dasha_pl1-Jun-09 3:35
dasha_pl1-Jun-09 3:35 
I need help!
My function inserts certain number of rows into dbf with INSERT INTO statement, dbf has 66 fields.

When I insert 983 records it fails with VFP OLE DB Provider error: Variable X is not found, but for less number of rows - aplication doesn't fails.
I think something wrong with my VFP OLE DB Provider. Surfing the Internet didn't help me Frown | :( (I'have tried to update my provider - didn't help or I did something wrong) .
Did anyone have this issue?
Here is my code:
OleDbConnection oleDbConnection = new OleDbConnection("Provider=vfpoledb;Data Source=" + _tempFolderPath)


string insertCommandText = String.Format("INSERT INTO {0} ({1}) VALUES ({2})",
                                                                dataTable.TableName,
                                                                columnsList.TrimEnd(','),
                                                                arguments.Replace("P", "?,").TrimEnd(','));

                       int it = 0;
                       foreach (DataRow dataRow in dataTable.Rows)
                       {
                           using (OleDbCommand oleDbCommand = new OleDbCommand(insertCommandText,
                                                                               oleDbConnection,
                                                                               oleDbTransaction))
                           {
                               for (int i = 0; i < dataRow.ItemArray.Length; i++)
                               {
                                   if(IsAdditionalSortColumn(dataTable.Columns[i].ColumnName))
                                       continue;
                                   oleDbCommand.Parameters.AddWithValue("@param" + i, dataRow.ItemArray[i]);
                               }

                               oleDbCommand.ExecuteNonQuery();
                               it++;
                           }
                       }
                   }

QuestionSQL 2008 Workgroup - how do CALs work? Pin
aastudent1-Jun-09 0:38
aastudent1-Jun-09 0:38 
AnswerRe: SQL 2008 Workgroup - how do CALs work? Pin
Mycroft Holmes1-Jun-09 1:14
professionalMycroft Holmes1-Jun-09 1:14 
GeneralRe: SQL 2008 Workgroup - how do CALs work? Pin
aastudent1-Jun-09 1:26
aastudent1-Jun-09 1:26 
Questionproblem in executing stored procedure Pin
souravghosh1831-May-09 20:12
souravghosh1831-May-09 20:12 
AnswerRe: problem in executing stored procedure Pin
Aman Bhullar6-Jun-09 1:50
Aman Bhullar6-Jun-09 1:50 
AnswerRe: problem in executing stored procedure Pin
Niladri_Biswas25-Jun-09 5:57
Niladri_Biswas25-Jun-09 5:57 
QuestionCONTAINS not working in my full text search Pin
Brendan Vogt31-May-09 5:13
Brendan Vogt31-May-09 5:13 
AnswerRe: CONTAINS not working in my full text search Pin
Satish Pai31-May-09 19:49
Satish Pai31-May-09 19:49 
Questionline break not working in crystal reports ? Pin
kindman_nb30-May-09 21:58
kindman_nb30-May-09 21:58 
AnswerRe: line break not working in crystal reports ? Pin
Rajesh Anuhya1-Jun-09 0:03
professionalRajesh Anuhya1-Jun-09 0:03 
QuestionHelp with SQL query Pin
Joe_P30-May-09 10:30
Joe_P30-May-09 10:30 
AnswerRe: Help with SQL query Pin
Mycroft Holmes30-May-09 23:06
professionalMycroft Holmes30-May-09 23:06 
GeneralRe: Help with SQL query Pin
Joe_P31-May-09 4:11
Joe_P31-May-09 4:11 
GeneralRe: Help with SQL query Pin
Mycroft Holmes31-May-09 11:10
professionalMycroft Holmes31-May-09 11:10 
GeneralRe: Help with SQL query Pin
Joe_P31-May-09 11:23
Joe_P31-May-09 11:23 
GeneralRe: Help with SQL query Pin
Mycroft Holmes31-May-09 11:36
professionalMycroft Holmes31-May-09 11:36 
GeneralRe: Help with SQL query Pin
Joe_P31-May-09 14:08
Joe_P31-May-09 14:08 

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.