Click here to Skip to main content
15,895,084 members
Home / Discussions / C#
   

C#

 
AnswerRe: get active program window Pin
DigitalKing3-May-06 19:57
DigitalKing3-May-06 19:57 
GeneralRe: get active program window Pin
g00fyman3-May-06 20:05
g00fyman3-May-06 20:05 
QuestionCannot use Outlook Object Model in Windows Service Pin
Bunnycool3-May-06 18:40
Bunnycool3-May-06 18:40 
AnswerRe: Cannot use Outlook Object Model in Windows Service Pin
led mike3-May-06 19:45
led mike3-May-06 19:45 
AnswerRe: Cannot use Outlook Object Model in Windows Service Pin
Corinna John3-May-06 20:09
Corinna John3-May-06 20:09 
AnswerRe: Cannot use Outlook Object Model in Windows Service Pin
Bunnycool3-May-06 20:37
Bunnycool3-May-06 20:37 
QuestionConcurrency Violation, How to avoid Pin
emran8343-May-06 18:13
emran8343-May-06 18:13 
AnswerRe: Concurrency Violation, How to avoid Pin
led mike3-May-06 18:31
led mike3-May-06 18:31 
One reason I believe is if you have your database engine creating unique key column values for rows. In SQL Server it is an IDENTITY type in MS Access I think they call it AutoNumber type, not sure.

So a DataSet generates it's own value for these columns since it is disconnected. Then the engine assigns it's value and if they are different it breaks. Search MSDN for key words DataSet and @@IDENTITY to see example of how to use the RowUpdate event etc. to solve this problem.

Another might be if you used the Visual Studio Schema Generator to create a Typed DataSet the generated Command object SQL Statements for Update and Delete may contain where clauses for every column. You can edit those Statements (in the Properties window of the DataSet) and remove all those extra clauses.

Hope that helps

led mike
QuestionDrag And Drop Pin
NewbProgrammer3-May-06 17:39
NewbProgrammer3-May-06 17:39 
AnswerRe: Drag And Drop Pin
DigitalKing3-May-06 19:01
DigitalKing3-May-06 19:01 
QuestionPreprocessor Directives Pin
kumar.bs3-May-06 17:37
kumar.bs3-May-06 17:37 
AnswerRe: Preprocessor Directives Pin
Vikram A Punathambekar3-May-06 20:44
Vikram A Punathambekar3-May-06 20:44 
QuestionRestoring Database. Pin
pavanabollineni3-May-06 17:35
pavanabollineni3-May-06 17:35 
QuestionHow Can I get font from a WinForm control of another process? Pin
snowborderjiang3-May-06 16:41
snowborderjiang3-May-06 16:41 
QuestionBinary image segmentation Pin
Peter_duke3-May-06 13:39
Peter_duke3-May-06 13:39 
QuestionHow to get value of properties interatively? Pin
moazzamahmed3-May-06 13:20
moazzamahmed3-May-06 13:20 
AnswerRe: How to get value of properties interatively? Pin
leppie3-May-06 18:41
leppie3-May-06 18:41 
GeneralRe: How to get value of properties interatively? Pin
moazzamahmed4-May-06 6:53
moazzamahmed4-May-06 6:53 
QuestionRegistry data Pin
teejayem3-May-06 13:16
teejayem3-May-06 13:16 
AnswerRe: Registry data Pin
Judah Gabriel Himango3-May-06 13:18
sponsorJudah Gabriel Himango3-May-06 13:18 
GeneralRe: Registry data Pin
teejayem3-May-06 13:31
teejayem3-May-06 13:31 
Questionmore than 255 characters (mdb) Pin
likefood3-May-06 12:46
likefood3-May-06 12:46 
AnswerRe: more than 255 characters (mdb) Pin
Guffa3-May-06 12:53
Guffa3-May-06 12:53 
GeneralRe: more than 255 characters (mdb) Pin
likefood3-May-06 13:10
likefood3-May-06 13:10 
QuestionDynamically Create Controls Pin
JoJuPi013-May-06 12:37
JoJuPi013-May-06 12:37 

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.