Click here to Skip to main content
16,006,442 members
Home / Discussions / Database
   

Database

 
AnswerRe: Why my SQL Server is so slow? Pin
Thomas Lau30-Dec-02 18:28
Thomas Lau30-Dec-02 18:28 
GeneralCount total records Pin
Jassim Rahma23-Dec-02 21:18
Jassim Rahma23-Dec-02 21:18 
GeneralRe: Count total records Pin
Mazdak24-Dec-02 1:34
Mazdak24-Dec-02 1:34 
GeneralRe: Count total records Pin
dangdinhtien26-Dec-02 2:52
dangdinhtien26-Dec-02 2:52 
GeneralDeleting rows in disconnected dataset Pin
Ludwig Stuyck23-Dec-02 7:53
Ludwig Stuyck23-Dec-02 7:53 
GeneralRe: Deleting rows in disconnected dataset Pin
Mazdak23-Dec-02 8:08
Mazdak23-Dec-02 8:08 
GeneralRe: Deleting rows in disconnected dataset Pin
Ludwig Stuyck23-Dec-02 9:24
Ludwig Stuyck23-Dec-02 9:24 
GeneralRe: Deleting rows in disconnected dataset Pin
Mazdak23-Dec-02 9:42
Mazdak23-Dec-02 9:42 
Well,I don't know about the way you did it,but I use a function like this to save changes,and it works fine me.May you can make some change to use in server and client side:

private System.Data.DataSet deletedRows;
private System.Data.DataSet updatedRows;
private System.Data.DataSet insertedRows;

private bool save()
{
deletedRows=null;
updatedRows=null;
insertedRows=null;
	
try
{
deletedRows = myDataSet1.GetChanges(System.Data.DataRowState.Deleted);
if(deletedRows != null)
mysqlAdapter.Update(myDataSet1 , "Table1");
updatedRows = myDataSet1.GetChanges(System.Data.DataRowState.Modified);
if(updatedRows !=null)
mysqlAdapter.Update(myDataSet1 , "Table1");
insertedRows = myDataSet1.GetChanges(System.Data.DataRowState.Added);
if(insertedRows !=null)
mysqlAdapter.Update(myDataSet1 , "Table1");   
return true;
}
catch(Exception myE)
{			
MessageBox.Show("Problem!!" + myE.ToString() );
return false;
}		
}


I call this function when I want to make database updated when I use disconnected dataset.

Mazy

"And the carpet needs a haircut, and the spotlight looks like a prison break
And the telephone's out of cigarettes, and the balcony is on the make
And the piano has been drinking, the piano has been drinking...not me...not me
-Tom Waits

GeneralRe: Deleting rows in disconnected dataset Pin
Ludwig Stuyck23-Dec-02 10:07
Ludwig Stuyck23-Dec-02 10:07 
GeneralRe: Deleting rows in disconnected dataset Pin
Nick Seng26-Dec-02 23:17
Nick Seng26-Dec-02 23:17 
GeneralRe: Deleting rows in disconnected dataset Pin
lustuyck27-Dec-02 3:47
lustuyck27-Dec-02 3:47 
GeneralRe: Deleting rows in disconnected dataset Pin
Nick Seng27-Dec-02 14:21
Nick Seng27-Dec-02 14:21 
GeneralPaging in ADO.NET Pin
vasily23-Dec-02 0:31
vasily23-Dec-02 0:31 
GeneralRe: Paging in ADO.NET Pin
leppie23-Dec-02 6:08
leppie23-Dec-02 6:08 
GeneralNewbie needs help Pin
Benjamin Ng22-Dec-02 16:58
Benjamin Ng22-Dec-02 16:58 
GeneralRe: Newbie needs help Pin
Paul Ingles23-Dec-02 1:37
Paul Ingles23-Dec-02 1:37 
GeneralRe: Newbie needs help Pin
Tatham26-Dec-02 7:07
Tatham26-Dec-02 7:07 
GeneralSQL SELECT Question Pin
Larry Antram21-Dec-02 12:19
Larry Antram21-Dec-02 12:19 
GeneralRe: SQL SELECT Question Pin
Rein Hillmann21-Dec-02 17:23
Rein Hillmann21-Dec-02 17:23 
GeneralAutomate registering a DSN Pin
Robby20-Dec-02 4:10
Robby20-Dec-02 4:10 
GeneralRe: Automate registering a DSN Pin
Rein Hillmann20-Dec-02 6:03
Rein Hillmann20-Dec-02 6:03 
GeneralRe: Automate registering a DSN Pin
Alexander Kojevnikov22-Dec-02 2:07
Alexander Kojevnikov22-Dec-02 2:07 
GeneralRe: Automate registering a DSN Pin
mwilliamson23-Dec-02 9:44
mwilliamson23-Dec-02 9:44 
GeneralTo wrap or not to wrap... that´s the question... Pin
Mauricio Ritter19-Dec-02 0:17
Mauricio Ritter19-Dec-02 0:17 
GeneralRe: To wrap or not to wrap... that´s the question... Pin
Michael P Butler19-Dec-02 0:44
Michael P Butler19-Dec-02 0:44 

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.