Click here to Skip to main content
15,887,746 members
Home / Discussions / Database
   

Database

 
AnswerRe: select query doubt [modified] Pin
GuyThiebaut22-Oct-07 4:44
professionalGuyThiebaut22-Oct-07 4:44 
QuestionHelp in designing search query Pin
NetBot22-Oct-07 3:03
NetBot22-Oct-07 3:03 
AnswerRe: Help in designing search query Pin
Michael Potter22-Oct-07 5:05
Michael Potter22-Oct-07 5:05 
QuestionDisplay SQL query results in Windows Form Pin
hobbsieoz22-Oct-07 2:36
hobbsieoz22-Oct-07 2:36 
AnswerRe: Display SQL query results in Windows Form Pin
Paddy Boyd22-Oct-07 5:01
Paddy Boyd22-Oct-07 5:01 
QuestionConvert comma separated text file (.csv) file into access .mdb file Pin
shyamts22-Oct-07 1:41
shyamts22-Oct-07 1:41 
AnswerRe: Convert comma separated text file (.csv) file into access .mdb file Pin
_Damian S_22-Oct-07 17:21
professional_Damian S_22-Oct-07 17:21 
Question[Solved]Insert statement against a FoxPro database isn't commited using ODBCConnection in C# Pin
Larantz21-Oct-07 22:49
Larantz21-Oct-07 22:49 
Hi everyone.
I'm making a custom tool for registering working hours for my employer against a Visual FoxPro database.
I've created a procedure for executing sql queries against the database, but my insert statments aren't commited.
The return value (affected rows) says that the query was successfull.

I'm using a normal "insert into (col1, col2, col(n)) VALUES(val1, val2, val(n))" statement - so nothing fancy.
I've tried using transactions and myTransaction.Commit(); without success.
I've also tried using keywords like "GO" or "COMMIT" in the query - but the FoxPro ODBC driver isn't too keen on those keywords. Smile | :)

Am I missing something here?
I thought ODBCCommand.ExecuteNonQuery() used the auto-commit property.
Is there and specific properties that must be set, or keywords I must include to make it commit?


Sidenote:
If I copy/paste the query into an ODBC tool (freeware tool I just downloaded for testing purpouses) and execute the query,
the row is added successfully.

I'd really appreciate any feedback you've got.

-Larantz-


-- modified at 5:18 Monday 22nd October, 2007
I copied the database into a cvs folderstructure the other day.
Forgot to update the configuration file with the connectionstring the very next day...
*humble Larantz signing out*
-Larantz-

for those about to code, we salute you
http://www.itverket.no

Please refer to the Forum Guidelines for appropriate posting.

QuestionRead binary data from SQL Server Pin
Eusebiu Marcu21-Oct-07 22:11
Eusebiu Marcu21-Oct-07 22:11 
AnswerRe: Read binary data from SQL Server Pin
Eusebiu Marcu21-Oct-07 23:44
Eusebiu Marcu21-Oct-07 23:44 
QuestionSqlQueries Pin
SreejithAchutan21-Oct-07 22:06
SreejithAchutan21-Oct-07 22:06 
AnswerRe: SqlQueries Pin
Colin Angus Mackay21-Oct-07 23:04
Colin Angus Mackay21-Oct-07 23:04 
AnswerRe: SqlQueries Pin
John-ph22-Oct-07 0:48
John-ph22-Oct-07 0:48 
AnswerRe: SqlQueries Pin
Abhijit Jana22-Oct-07 6:38
professionalAbhijit Jana22-Oct-07 6:38 
AnswerRe: SqlQueries Pin
PavanPareta25-Oct-07 3:56
PavanPareta25-Oct-07 3:56 
QuestionHelp!! error message "Data provider or other service returned an E_FAIL status" Pin
anthoy21-Oct-07 21:56
anthoy21-Oct-07 21:56 
AnswerRe: Help!! error message "Data provider or other service returned an E_FAIL status" Pin
Chetan Patel21-Oct-07 23:22
Chetan Patel21-Oct-07 23:22 
GeneralRe: Help!! error message "Data provider or other service returned an E_FAIL status" Pin
anthoy21-Oct-07 23:33
anthoy21-Oct-07 23:33 
QuestionTransaction , rollback ..??? Pin
devboycpp21-Oct-07 21:56
devboycpp21-Oct-07 21:56 
AnswerRe: Transaction , rollback ..??? Pin
squattyarun22-Oct-07 3:04
squattyarun22-Oct-07 3:04 
GeneralRe: Transaction , rollback ..??? Pin
devboycpp22-Oct-07 5:04
devboycpp22-Oct-07 5:04 
AnswerRe: Transaction , rollback ..??? Pin
Elina Blank22-Oct-07 8:07
sitebuilderElina Blank22-Oct-07 8:07 
QuestionSearch Engine Pin
Sandep H S21-Oct-07 21:22
Sandep H S21-Oct-07 21:22 
AnswerRe: Search Engine Pin
Abhijit Jana22-Oct-07 6:41
professionalAbhijit Jana22-Oct-07 6:41 
Questionselect last insert ID Pin
briogene21-Oct-07 21:20
briogene21-Oct-07 21:20 

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.