Click here to Skip to main content
15,891,943 members
Home / Discussions / Database
   

Database

 
GeneralRe: query to print only the duplicate records Pin
indian14328-Feb-07 20:14
indian14328-Feb-07 20:14 
GeneralRe: query to print only the duplicate records Pin
Krish - KP28-Feb-07 22:18
Krish - KP28-Feb-07 22:18 
GeneralRe: query to print only the duplicate records Pin
indian14328-Feb-07 22:25
indian14328-Feb-07 22:25 
GeneralRe: query to print only the duplicate records Pin
Krish - KP1-Mar-07 16:53
Krish - KP1-Mar-07 16:53 
GeneralRe: query to print only the duplicate records Pin
indian1431-Mar-07 18:03
indian1431-Mar-07 18:03 
GeneralRe: query to print only the duplicate records Pin
Krish - KP2-Mar-07 0:26
Krish - KP2-Mar-07 0:26 
GeneralRe: query to print only the duplicate records Pin
indian1432-Mar-07 0:40
indian1432-Mar-07 0:40 
Questionneed help resolving error in custom sp Pin
brainfuelmedia_26-Feb-07 11:18
brainfuelmedia_26-Feb-07 11:18 
Hello,

I've created the following stored procedure:

<br />
CREATE PROCEDURE SOM_RO_ISVALIDPRJID <br />
	@strProjectID varchar(32)<br />
AS<br />
BEGIN<br />
	DECLARE @intPrjID int<br />
<br />
	SET NOCOUNT ON;<br />
	@intPrjID = (SELECT COUNT(*) FROM dbo.tbl_projects_main WHERE prj_custom_id = @strProjectID)<br />
END<br />
IF (@intPrjID = 0)<br />
	RETURN 0<br />
ELSE<br />
	RETURN 1<br />
GO<br />


I keep getting the error:

Incorrect syntax near '@intPrjID' at line 8.

The line it is referring to is where I have @intPrjID = (SELECT ...)

Ryan
AnswerRe: need help resolving error in custom sp Pin
WoutL26-Feb-07 11:49
WoutL26-Feb-07 11:49 
AnswerRe: need help resolving error in custom sp Pin
Krish - KP26-Feb-07 16:43
Krish - KP26-Feb-07 16:43 
QuestionWhat does dock or link tables into Access mean? Pin
Marcus J. Smith26-Feb-07 7:59
professionalMarcus J. Smith26-Feb-07 7:59 
Questionlooking up date in sql server Pin
tvfoto26-Feb-07 6:31
tvfoto26-Feb-07 6:31 
AnswerRe: repost Pin
tvfoto26-Feb-07 6:34
tvfoto26-Feb-07 6:34 
AnswerRe: looking up date in sql server Pin
andyharman26-Feb-07 23:47
professionalandyharman26-Feb-07 23:47 
GeneralRe: looking up date in sql server Pin
tvfoto27-Feb-07 6:12
tvfoto27-Feb-07 6:12 
GeneralRe: looking up date in sql server Pin
tvfoto27-Feb-07 6:17
tvfoto27-Feb-07 6:17 
Questionretrieving View's SQL statement [modified] Pin
hamidreza_buddy25-Feb-07 23:36
hamidreza_buddy25-Feb-07 23:36 
AnswerRe: retrieving View's SQL statement Pin
Mark J. Miller26-Feb-07 5:14
Mark J. Miller26-Feb-07 5:14 
QuestionPutting related Two records to one row Pin
Praveen 12325-Feb-07 19:28
Praveen 12325-Feb-07 19:28 
AnswerRe: Putting related Two records to one row Pin
Sylvester george25-Feb-07 23:11
Sylvester george25-Feb-07 23:11 
QuestionRe: Putting related Two records to one row Pin
Praveen 12325-Feb-07 23:23
Praveen 12325-Feb-07 23:23 
AnswerRe: Putting related Two records to one row Pin
Pete O'Hanlon26-Feb-07 0:41
mvePete O'Hanlon26-Feb-07 0:41 
QuestionRe: Putting related Two records to one row Pin
Praveen 12326-Feb-07 1:01
Praveen 12326-Feb-07 1:01 
AnswerRe: Putting related Two records to one row Pin
Pete O'Hanlon26-Feb-07 1:19
mvePete O'Hanlon26-Feb-07 1:19 
QuestionRe: Putting related Two records to one row Pin
Praveen 12326-Feb-07 1:26
Praveen 12326-Feb-07 1:26 

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.