Click here to Skip to main content
15,907,328 members
Home / Discussions / C#
   

C#

 
GeneralRe: Problem with code returning parameter from stored procedure Pin
leckey12-Jul-06 10:50
leckey12-Jul-06 10:50 
GeneralRe: Problem with code returning parameter from stored procedure Pin
Christian Graus12-Jul-06 10:58
protectorChristian Graus12-Jul-06 10:58 
GeneralRe: Problem with code returning parameter from stored procedure Pin
leckey12-Jul-06 11:02
leckey12-Jul-06 11:02 
GeneralRe: Problem with code returning parameter from stored procedure Pin
Christian Graus12-Jul-06 11:09
protectorChristian Graus12-Jul-06 11:09 
GeneralRe: Problem with code returning parameter from stored procedure Pin
leckey12-Jul-06 11:15
leckey12-Jul-06 11:15 
GeneralRe: Problem with code returning parameter from stored procedure Pin
Christian Graus12-Jul-06 11:17
protectorChristian Graus12-Jul-06 11:17 
GeneralRe: Problem with code returning parameter from stored procedure Pin
Christian Graus12-Jul-06 11:09
protectorChristian Graus12-Jul-06 11:09 
AnswerRe: Problem with code returning parameter from stored procedure [modified] Pin
Jon Sagara12-Jul-06 11:14
Jon Sagara12-Jul-06 11:14 
leckey wrote:
SqlParameter param6 = new SqlParameter(@ID, SqlDbType.Int);


Was this just a copy/paste error? I'm pretty sure @ID needs to be in quotation marks.

Also, you should use SCOPE_IDENTITY()[^] instead of @@IDENTITY to get the ID of the row you just inserted. It's not strictly necessary, but it's a good habit to get into. More details in the remarks section on the MSDN site.

Jon Sagara
When I grow up, I'm changing my name to Joe Kickass!
My Site | My Blog | My Articles

-- modified at 17:17 Wednesday 12th July, 2006
GeneralRe: Problem with code returning parameter from stored procedure Pin
leckey12-Jul-06 11:24
leckey12-Jul-06 11:24 
GeneralRe: Problem with code returning parameter from stored procedure Pin
Christian Graus12-Jul-06 11:36
protectorChristian Graus12-Jul-06 11:36 
GeneralRe: Problem with code returning parameter from stored procedure Pin
leckey12-Jul-06 11:50
leckey12-Jul-06 11:50 
Questionreturn code from console application Pin
Petes197312-Jul-06 9:45
Petes197312-Jul-06 9:45 
AnswerRe: return code from console application Pin
led mike12-Jul-06 9:56
led mike12-Jul-06 9:56 
GeneralRe: return code from console application Pin
Petes197312-Jul-06 10:02
Petes197312-Jul-06 10:02 
GeneralRe: return code from console application Pin
led mike12-Jul-06 10:17
led mike12-Jul-06 10:17 
GeneralRe: return code from console application Pin
Petes197312-Jul-06 10:30
Petes197312-Jul-06 10:30 
QuestionDisplaying Calculation results. [modified] Pin
Skanless12-Jul-06 9:42
Skanless12-Jul-06 9:42 
AnswerRe: Displaying Calculation results. Pin
Guffa12-Jul-06 12:32
Guffa12-Jul-06 12:32 
QuestionDifference between Thread.Start() and Delegate.BeginInvoke() Pin
zaboboa12-Jul-06 9:40
zaboboa12-Jul-06 9:40 
AnswerRe: Difference between Thread.Start() and Delegate.BeginInvoke() Pin
Josh Smith12-Jul-06 9:55
Josh Smith12-Jul-06 9:55 
GeneralRe: Difference between Thread.Start() and Delegate.BeginInvoke() [modified] Pin
zaboboa12-Jul-06 10:00
zaboboa12-Jul-06 10:00 
GeneralRe: Difference between Thread.Start() and Delegate.BeginInvoke() Pin
Josh Smith12-Jul-06 10:12
Josh Smith12-Jul-06 10:12 
GeneralRe: Difference between Thread.Start() and Delegate.BeginInvoke() Pin
Alexander Wiseman12-Jul-06 13:12
Alexander Wiseman12-Jul-06 13:12 
AnswerRe: Difference between Thread.Start() and Delegate.BeginInvoke() Pin
Alexander Wiseman12-Jul-06 12:19
Alexander Wiseman12-Jul-06 12:19 
GeneralRe: Difference between Thread.Start() and Delegate.BeginInvoke() Pin
zaboboa13-Jul-06 1:51
zaboboa13-Jul-06 1:51 

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.