Click here to Skip to main content
15,892,839 members
Home / Discussions / C#
   

C#

 
AnswerRe: C# code snippet for InfoPath form Pin
Wes Aday16-Aug-12 5:19
professionalWes Aday16-Aug-12 5:19 
GeneralRe: C# code snippet for InfoPath form Pin
dmsWebDev16-Aug-12 5:30
dmsWebDev16-Aug-12 5:30 
QuestionDont know how to create a storage procedure to Pin
paddymega16-Aug-12 1:39
paddymega16-Aug-12 1:39 
AnswerRe: Dont know how to create a storage procedure to Pin
Shameel16-Aug-12 1:41
professionalShameel16-Aug-12 1:41 
GeneralRe: Dont know how to create a storage procedure to Pin
paddymega16-Aug-12 3:00
paddymega16-Aug-12 3:00 
QuestionRe: Dont know how to create a storage procedure to Pin
Eddy Vluggen16-Aug-12 3:12
professionalEddy Vluggen16-Aug-12 3:12 
AnswerRe: Dont know how to create a storage procedure to Pin
paddymega16-Aug-12 5:11
paddymega16-Aug-12 5:11 
GeneralRe: Dont know how to create a storage procedure to Pin
Eddy Vluggen16-Aug-12 5:24
professionalEddy Vluggen16-Aug-12 5:24 
Looks like a reasonable update-statement, and looks like a sproc. I assume that it creates the procedure correctly, or did you get an error?

If the proc is correct, you hook it up to a SqlCommand and set the parameters. You'll probably already have something similar in the insert-statement.

The only thing that bugs a bit is the DateTime that seems to be used as a primary key. I suggest using an identity-field, an auto-incrementing integer. See, the dob might contain a specific time, and that would make it "hard" to find it in the database - a mismatch of a second, and it'll say the record can't be found.

paddymega wrote:
I just want that the query matches the data in the databse to the data being passed on from the program and update it in the database

Programming is not an easy task; we're already skipping corners here Smile | :)
Bastard Programmer from Hell Suspicious | :suss:
if you can't read my code, try converting it here[^]

GeneralRe: Dont know how to create a storage procedure to Pin
paddymega16-Aug-12 6:00
paddymega16-Aug-12 6:00 
AnswerRe: Dont know how to create a storage procedure to Pin
Eddy Vluggen16-Aug-12 6:20
professionalEddy Vluggen16-Aug-12 6:20 
GeneralRe: Dont know how to create a storage procedure to Pin
paddymega16-Aug-12 7:29
paddymega16-Aug-12 7:29 
AnswerRe: Dont know how to create a storage procedure to Pin
Eddy Vluggen16-Aug-12 8:30
professionalEddy Vluggen16-Aug-12 8:30 
GeneralRe: Dont know how to create a storage procedure to Pin
paddymega16-Aug-12 8:36
paddymega16-Aug-12 8:36 
GeneralRe: Dont know how to create a storage procedure to Pin
Eddy Vluggen16-Aug-12 8:37
professionalEddy Vluggen16-Aug-12 8:37 
AnswerRe: Dont know how to create a storage procedure to Pin
Eddy Vluggen16-Aug-12 1:59
professionalEddy Vluggen16-Aug-12 1:59 
Questionhow to how message from window serviece Pin
ashjassi16-Aug-12 1:27
ashjassi16-Aug-12 1:27 
AnswerRe: how to how message from window serviece Pin
Eddy Vluggen16-Aug-12 1:34
professionalEddy Vluggen16-Aug-12 1:34 
AnswerRe: how to how message from window serviece Pin
Wes Aday16-Aug-12 1:35
professionalWes Aday16-Aug-12 1:35 
AnswerRe: how to how message from window serviece Pin
Shameel16-Aug-12 1:47
professionalShameel16-Aug-12 1:47 
AnswerRe: how to how message from window serviece Pin
Vijay Selvaraj26-Aug-12 22:03
Vijay Selvaraj26-Aug-12 22:03 
Questionauto sleep/wakeup windows 7 at specified times Pin
lordrt15-Aug-12 10:04
lordrt15-Aug-12 10:04 
AnswerRe: auto sleep/wakeup windows 7 at specified times Pin
Wes Aday15-Aug-12 11:13
professionalWes Aday15-Aug-12 11:13 
NewsRe: auto sleep/wakeup windows 7 at specified times Pin
Eddy Vluggen15-Aug-12 11:41
professionalEddy Vluggen15-Aug-12 11:41 
AnswerRe: auto sleep/wakeup windows 7 at specified times Pin
OriginalGriff15-Aug-12 20:42
mveOriginalGriff15-Aug-12 20:42 
AnswerRe: auto sleep/wakeup windows 7 at specified times Pin
lordrt16-Aug-12 5:38
lordrt16-Aug-12 5:38 

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.