Click here to Skip to main content
15,910,083 members
Home / Discussions / C#
   

C#

 
GeneralRe: Efficiently Swapping 2 numbers! Pin
latta16-Nov-04 12:58
latta16-Nov-04 12:58 
GeneralRe: Efficiently Swapping 2 numbers! Pin
Skynyrd16-Nov-04 13:22
Skynyrd16-Nov-04 13:22 
GeneralRe: Efficiently Swapping 2 numbers! Pin
Dennis C. Dietrich16-Nov-04 13:22
Dennis C. Dietrich16-Nov-04 13:22 
Generalfile association Pin
bwagz16-Nov-04 11:23
bwagz16-Nov-04 11:23 
GeneralRe: file association Pin
Nick Parker16-Nov-04 11:32
protectorNick Parker16-Nov-04 11:32 
Generalupdate statement Pin
cmarmr16-Nov-04 10:33
cmarmr16-Nov-04 10:33 
GeneralRe: update statement Pin
Nick Parker16-Nov-04 11:23
protectorNick Parker16-Nov-04 11:23 
GeneralRe: update statement Pin
Luis Alonso Ramos16-Nov-04 11:27
Luis Alonso Ramos16-Nov-04 11:27 
Are you using a DataAdapter? if it's just the UPDATE statement you want to send, this may work:
SqlConnection conn = new SqlConnection("connection string here");
conn.Open();

SqlCommand cmd = new SqlCommand("UPDATE Table SET field=value WHERE field=something;", conn);
cmd.ExecuteNonQuery();
If you want to build the SQL statement on the fly, use parametized queries (see the Parameters property of the SqlCommand object.)

If you're using a DataAdapter, you have to build an SqlCommand object with the UPDATE query and set it to the DataAdapter's UpdateCommand property.

-- LuisR



Luis Alonso Ramos
Intelectix - Chihuahua, Mexico

Not much here: My CP Blog!

GeneralRegular expression problem Pin
Christian Graus16-Nov-04 9:03
protectorChristian Graus16-Nov-04 9:03 
GeneralRe: Regular expression problem Pin
Daniel Turini16-Nov-04 9:11
Daniel Turini16-Nov-04 9:11 
GeneralRe: Regular expression problem Pin
Christian Graus16-Nov-04 9:43
protectorChristian Graus16-Nov-04 9:43 
GeneralRe: Regular expression problem Pin
Nick Parker16-Nov-04 11:16
protectorNick Parker16-Nov-04 11:16 
GeneralRe: Regular expression problem Pin
Christian Graus16-Nov-04 13:26
protectorChristian Graus16-Nov-04 13:26 
GeneralPlease help in richTextbox ..!!! Pin
MohamedShehab16-Nov-04 7:03
MohamedShehab16-Nov-04 7:03 
GeneralRe: Please help in richTextbox ..!!! Pin
Judah Gabriel Himango16-Nov-04 9:04
sponsorJudah Gabriel Himango16-Nov-04 9:04 
GeneralRe: Please help in richTextbox ..!!! Pin
Nick Parker16-Nov-04 11:26
protectorNick Parker16-Nov-04 11:26 
Generalconverting .cpp source to .cs source Pin
Blubbo16-Nov-04 6:34
Blubbo16-Nov-04 6:34 
GeneralRe: converting .cpp source to .cs source Pin
Nick Parker16-Nov-04 6:58
protectorNick Parker16-Nov-04 6:58 
GeneralRe: converting .cpp source to .cs source Pin
..Hubert..16-Nov-04 21:49
..Hubert..16-Nov-04 21:49 
GeneralSending Keys Pin
Anonymous16-Nov-04 6:28
Anonymous16-Nov-04 6:28 
GeneralRe: Sending Keys Pin
Daniel Turini16-Nov-04 9:07
Daniel Turini16-Nov-04 9:07 
GeneralRe: Sending Keys Pin
S020035616-Nov-04 12:33
S020035616-Nov-04 12:33 
GeneralRe: Sending Keys Pin
Daniel Turini16-Nov-04 20:18
Daniel Turini16-Nov-04 20:18 
GeneralWMEncoderLib problem Pin
ee9903516-Nov-04 6:27
ee9903516-Nov-04 6:27 
GeneralRe: WMEncoderLib problem Pin
Nick Parker16-Nov-04 7:21
protectorNick Parker16-Nov-04 7:21 

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.