Click here to Skip to main content
15,922,894 members
Home / Discussions / C#
   

C#

 
AnswerRe: SQL connection execute what? Pin
Mbah Dhaim29-Jun-08 23:27
Mbah Dhaim29-Jun-08 23:27 
GeneralRe: SQL connection execute what? Pin
Colin Angus Mackay29-Jun-08 23:31
Colin Angus Mackay29-Jun-08 23:31 
JokeRe: SQL connection execute what? Pin
Mbah Dhaim29-Jun-08 23:37
Mbah Dhaim29-Jun-08 23:37 
GeneralRe: SQL connection execute what? Pin
laziale29-Jun-08 23:34
laziale29-Jun-08 23:34 
GeneralRe: SQL connection execute what? Pin
Christian Graus29-Jun-08 23:39
protectorChristian Graus29-Jun-08 23:39 
AnswerRe: SQL connection execute what? Pin
Colin Angus Mackay29-Jun-08 23:30
Colin Angus Mackay29-Jun-08 23:30 
GeneralRe: SQL connection execute what? Pin
laziale29-Jun-08 23:36
laziale29-Jun-08 23:36 
GeneralRe: SQL connection execute what? Pin
Christian Graus29-Jun-08 23:38
protectorChristian Graus29-Jun-08 23:38 
You don't NEED a stored proc, and if you can't work out how to run SQL, I don't see how you can work out how to run the proc, which involves more code. You need to get rid of all the crap in your function, as I already said, and as Colin said. Perhaps you need to start with SQL like 'insert into mytable values(1,2,3)' or whatever, SQL that is simple and you know works. Then use this to fix your SQL access code. Then work out the problems in your SQL.

If you prefer to run a proc, that's fine, and almost as easy, the examples are just as easy to google, too. A stored proc will give you a degree of injection protection, too.

Christian Graus

Please read this if you don't understand the answer I've given you. If you're still stuck, ask me for more information.

GeneralRe: SQL connection execute what? Pin
laziale29-Jun-08 23:40
laziale29-Jun-08 23:40 
GeneralRe: SQL connection execute what? Pin
laziale30-Jun-08 0:04
laziale30-Jun-08 0:04 
Questionhow to use calculous to programing three dimensional graphics Pin
chenli051329-Jun-08 23:00
chenli051329-Jun-08 23:00 
AnswerRe: how to use calculous to programing three dimensional graphics Pin
Christian Graus29-Jun-08 23:04
protectorChristian Graus29-Jun-08 23:04 
AnswerRe: how to use calculous to programing three dimensional graphics Pin
leppie29-Jun-08 23:46
leppie29-Jun-08 23:46 
AnswerRe: how to use calculous to programing three dimensional graphics Pin
Alan Balkany30-Jun-08 4:57
Alan Balkany30-Jun-08 4:57 
QuestionNumericUpDown SelectedText property work-around Pin
jozsurf29-Jun-08 22:51
jozsurf29-Jun-08 22:51 
AnswerRe: NumericUpDown SelectedText property work-around Pin
Kjetil Svendsen30-Jun-08 5:27
Kjetil Svendsen30-Jun-08 5:27 
GeneralRe: NumericUpDown SelectedText property work-around Pin
jozsurf30-Jun-08 15:00
jozsurf30-Jun-08 15:00 
QuestionPropertyGrid + SelectedObjects Pin
KBou29-Jun-08 22:47
KBou29-Jun-08 22:47 
QuestionProjectitem unavailable error in my project Pin
Russell Jones29-Jun-08 21:31
Russell Jones29-Jun-08 21:31 
AnswerRe: Projectitem unavailable error in my project Pin
Rye20-Apr-09 6:45
Rye20-Apr-09 6:45 
AnswerRe: Projectitem unavailable error in my project Pin
priscila_monica786-Nov-11 6:00
priscila_monica786-Nov-11 6:00 
GeneralRe: Projectitem unavailable error in my project Pin
Russell Jones6-Nov-11 10:19
Russell Jones6-Nov-11 10:19 
QuestionHow to print Page using PJL in C# Pin
Rajesh_K_Sharma29-Jun-08 21:27
Rajesh_K_Sharma29-Jun-08 21:27 
QuestionAppupdater problem Pin
asma_panjabi29-Jun-08 21:24
asma_panjabi29-Jun-08 21:24 
AnswerRe: Appupdater problem Pin
Christian Graus29-Jun-08 21:29
protectorChristian Graus29-Jun-08 21:29 

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.