15,791,353 members
Sign in
Sign in
Email
Password
Forgot your password?
Sign in with
home
articles
Browse Topics
>
Latest Articles
Top Articles
Posting/Update Guidelines
Article Help Forum
Submit an article or tip
Import GitHub Project
Import your Blog
quick answers
Q&A
Ask a Question
View Unanswered Questions
View All Questions
View C# questions
View C++ questions
View Javascript questions
View Python questions
View PHP questions
discussions
forums
CodeProject.AI Server
All Message Boards...
Application Lifecycle
>
Running a Business
Sales / Marketing
Collaboration / Beta Testing
Work Issues
Design and Architecture
Artificial Intelligence
ASP.NET
JavaScript
Internet of Things
C / C++ / MFC
>
ATL / WTL / STL
Managed C++/CLI
C#
Free Tools
Objective-C and Swift
Database
Hardware & Devices
>
System Admin
Hosting and Servers
Java
Linux Programming
Python
.NET (Core and Framework)
Android
iOS
Mobile
WPF
Visual Basic
Web Development
Site Bugs / Suggestions
Spam and Abuse Watch
features
features
Competitions
News
The Insider Newsletter
The Daily Build Newsletter
Newsletter archive
Surveys
CodeProject Stuff
community
lounge
Who's Who
Most Valuable Professionals
The Lounge
The CodeProject Blog
Where I Am: Member Photos
The Insider News
The Weird & The Wonderful
help
?
What is 'CodeProject'?
General FAQ
Ask a Question
Bugs and Suggestions
Article Help Forum
About Us
Search within:
Articles
Quick Answers
Messages
Comments by Alegria_Lee (Top 8 by date)
Alegria_Lee
24-Aug-11 1:49am
View
Thanks digimanus!I have found out why I got such a error infomation on calling sqltransaction.commit(). It has nothing to do with what kind of method that I used to submit data.My colleague added an update trigger that if the insert time is not the same as the server time,then it will rollback automatically.This is why my code return that error.
Alegria_Lee
23-Aug-11 21:16pm
View
No matter MARS is enabled or disabled,in either case,once time is changed,there will be a error when committing the transaction.
Alegria_Lee
23-Aug-11 20:54pm
View
I tend to execute insert,update and delete commands in one time,each command effects a different table at least one row.Like,I put all modifed data in one dataset,dataset.tables[0] is for updating;dataset.tables[1] is for inserting;dataset.tables[2] is for deleting.then,I Open a transaction, execute update,insert and delete commands in turn ,after that,commit the transaction.
Alegria_Lee
23-Aug-11 5:23am
View
Thank you .But my question is not how to use transaction .Instead ,my question is why I can´t commit the transaction when computer date is different between server (running database )and client (running application ).
Alegria_Lee
19-Nov-10 0:09am
View
As datetime is a "struct",I assume what you want is a "string".Then,just change your code as below:
string strdatetime = Convert.ToDateTime(fromDateTime).ToString("YYYY-MM-DD HH24:MI:SS");
Alegria_Lee
18-Nov-10 23:46pm
View
So,What Type of data do you want to get? a string or a datetime?
Alegria_Lee
18-Nov-10 23:39pm
View
Convert.ToDateTime(fromDateTime).ToString("YYYY-MM-DD HH24:MI:SS"):This is a String,
DateTime dt1:This is a DateTime.
Why wouldn't you get an error?
Alegria_Lee
18-Nov-10 1:14am
View
Thanks aspdotnetdev.I tried it ,but it is not working.
Show More