Click here to Skip to main content
15,889,403 members
Home / Discussions / Database
   

Database

 
AnswerRe: Counting rows containing data in Dataset; Pin
J4amieC25-Oct-07 4:45
J4amieC25-Oct-07 4:45 
GeneralRe: Counting rows containing data in Dataset; Pin
Shahzad.Aslam25-Oct-07 19:44
Shahzad.Aslam25-Oct-07 19:44 
GeneralPersistant Memory with CLR Stored Proc Pin
Brady Kelly25-Oct-07 2:58
Brady Kelly25-Oct-07 2:58 
GeneralRe: Persistant Memory with CLR Stored Proc Pin
Brady Kelly25-Oct-07 8:46
Brady Kelly25-Oct-07 8:46 
QuestionSCOPE_IDENTITY() Pin
Illegal Operation25-Oct-07 1:16
Illegal Operation25-Oct-07 1:16 
AnswerRe: SCOPE_IDENTITY() Pin
N a v a n e e t h25-Oct-07 1:31
N a v a n e e t h25-Oct-07 1:31 
AnswerRe: SCOPE_IDENTITY() Pin
WoutL25-Oct-07 1:45
WoutL25-Oct-07 1:45 
AnswerRe: SCOPE_IDENTITY() Pin
John-ph25-Oct-07 2:14
John-ph25-Oct-07 2:14 
Illegal Operation wrote:
DECLARE @ID int


Here in your stored procedure you have Declared @ID as just a local variable. If you need that value to be returned by the procedure then you have declare it as a output parameter.

DECLARE @ID int OUT

[OR]

CREATE PROCEDURE [spTest]<br />
          @ID    int OUT,<br />
	    -- Other parameters here<br />
AS<br />
	    -- Your Insert Query Here<br />
          SELECT @ID= SCOPE_IDENTITY()<br />
GO


 Regards
 - J O H N -



Questionhelp!! phaleeezz!! error message: Plan dates are invalid (SQL 2000) Pin
anthoy24-Oct-07 23:33
anthoy24-Oct-07 23:33 
AnswerRe: help!! phaleeezz!! error message: Plan dates are invalid (SQL 2000) Pin
andyharman25-Oct-07 1:10
professionalandyharman25-Oct-07 1:10 
AnswerRe: help!! phaleeezz!! error message: Plan dates are invalid (SQL 2000) Pin
Illegal Operation25-Oct-07 1:12
Illegal Operation25-Oct-07 1:12 
AnswerRe: help!! phaleeezz!! error message: Plan dates are invalid (SQL 2000) Pin
GuyThiebaut25-Oct-07 3:43
professionalGuyThiebaut25-Oct-07 3:43 
GeneralRe: help!! phaleeezz!! error message: Plan dates are invalid (SQL 2000) Pin
anthoy25-Oct-07 14:46
anthoy25-Oct-07 14:46 
QuestionERROR_MESSAGE() & SQL2005 Pin
Graham_424-Oct-07 22:21
Graham_424-Oct-07 22:21 
AnswerRe: ERROR_MESSAGE() & SQL2005 Pin
Sandeep Kumar24-Oct-07 22:54
Sandeep Kumar24-Oct-07 22:54 
GeneralRe: ERROR_MESSAGE() & SQL2005 Pin
Graham_424-Oct-07 23:02
Graham_424-Oct-07 23:02 
QuestionCount problem Pin
Nishad8524-Oct-07 18:31
Nishad8524-Oct-07 18:31 
AnswerRe: Count problem Pin
_Damian S_24-Oct-07 20:24
professional_Damian S_24-Oct-07 20:24 
Questionhow to know other users are connecting to my sql database Pin
skyleo_200824-Oct-07 17:06
skyleo_200824-Oct-07 17:06 
AnswerRe: how to know other users are connecting to my sql database Pin
N a v a n e e t h24-Oct-07 20:36
N a v a n e e t h24-Oct-07 20:36 
GeneralRe: how to know other users are connecting to my sql database Pin
skyleo_200824-Oct-07 22:04
skyleo_200824-Oct-07 22:04 
GeneralRe: how to know other users are connecting to my sql database Pin
N a v a n e e t h24-Oct-07 22:54
N a v a n e e t h24-Oct-07 22:54 
AnswerRe: how to know other users are connecting to my sql database Pin
John-ph25-Oct-07 3:08
John-ph25-Oct-07 3:08 
GeneralRe: how to know other users are connecting to my sql database Pin
skyleo_200825-Oct-07 15:01
skyleo_200825-Oct-07 15:01 
QuestionHow to create SQL function Pin
Yulianto.24-Oct-07 16:25
Yulianto.24-Oct-07 16:25 

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.