Click here to Skip to main content
15,924,679 members
Home / Discussions / Database
   

Database

 
Questioncan we create stored procedures in MS Access database Pin
ChennaiBabu14-Jul-06 21:15
ChennaiBabu14-Jul-06 21:15 
AnswerRe: can we create stored procedures in MS Access database Pin
mysorian15-Jul-06 4:43
professionalmysorian15-Jul-06 4:43 
AnswerRe: can we create stored procedures in MS Access database Pin
ra ra ra ra17-Jul-06 22:28
ra ra ra ra17-Jul-06 22:28 
Questionstored procedure Output parameter value is Null Pin
For_IT14-Jul-06 12:26
For_IT14-Jul-06 12:26 
AnswerRe: stored procedure Output parameter value is Null Pin
nguyenvhn14-Jul-06 16:24
nguyenvhn14-Jul-06 16:24 
AnswerRe: stored procedure Output parameter value is Null Pin
Colin Angus Mackay14-Jul-06 21:53
Colin Angus Mackay14-Jul-06 21:53 
GeneralRe: stored procedure Output parameter value is Null Pin
Mike Dimmick15-Jul-06 3:57
Mike Dimmick15-Jul-06 3:57 
GeneralRe: stored procedure Output parameter value is Null Pin
For_IT16-Jul-06 11:05
For_IT16-Jul-06 11:05 
Thanks for your replies,

I changed my stored procedure as follows to assign the value to output variable:


ALTER PROCEDURE [dbo].[GetUserControlTemplateCode]
@product_id int,
@genmask_code nvarchar(max) output
AS
BEGIN
SET NOCOUNT ON;

Select dbo.cp_product.product_type, @genmask_code=dbo.cp_genmask.genmask_code
from dbo.cp_genmask inner join dbo.cp_product
on dbo.cp_genmask.genmask_product_type=dbo.cp_product.product_type
where dbo.cp_product.product_id=@product_id

END

when I execute this I get following error:
A SELECT statement that assigns a value to a variable must not be combined with data-retrieval operations.

where should I do data assignment operation?







GeneralRe: stored procedure Output parameter value is Null Pin
For_IT16-Jul-06 12:18
For_IT16-Jul-06 12:18 
QuestionProblem accessing a SSIS Package Pin
mysorian14-Jul-06 6:04
professionalmysorian14-Jul-06 6:04 
AnswerRe: Problem accessing a SSIS Package Pin
mysorian14-Jul-06 7:54
professionalmysorian14-Jul-06 7:54 
AnswerRe: Problem accessing a SSIS Package Pin
Dave Kreskowiak14-Jul-06 9:30
mveDave Kreskowiak14-Jul-06 9:30 
GeneralRe: Problem accessing a SSIS Package Pin
mysorian15-Jul-06 4:39
professionalmysorian15-Jul-06 4:39 
QuestionDifferance between '@variable' and '@@variable' in SQL Pin
Sampath Eleperuma14-Jul-06 4:09
professionalSampath Eleperuma14-Jul-06 4:09 
AnswerRe: Differance between '@variable' and '@@variable' in SQL Pin
Eric Dahlvang14-Jul-06 5:12
Eric Dahlvang14-Jul-06 5:12 
Questionnumeric data type value Pin
For_IT14-Jul-06 0:06
For_IT14-Jul-06 0:06 
AnswerRe: numeric data type value Pin
Mike Dimmick14-Jul-06 0:27
Mike Dimmick14-Jul-06 0:27 
GeneralRe: numeric data type value Pin
For_IT14-Jul-06 0:55
For_IT14-Jul-06 0:55 
GeneralRe: numeric data type value Pin
Mairaaj Khan14-Jul-06 2:02
professionalMairaaj Khan14-Jul-06 2:02 
GeneralRe: numeric data type value Pin
For_IT14-Jul-06 3:11
For_IT14-Jul-06 3:11 
AnswerRe: numeric data type value Pin
Heinz_15-Jul-06 14:27
Heinz_15-Jul-06 14:27 
Questionwhere not exists problem! Pin
richiemac13-Jul-06 23:19
richiemac13-Jul-06 23:19 
AnswerRe: where not exists problem! Pin
Mike Dimmick14-Jul-06 0:23
Mike Dimmick14-Jul-06 0:23 
AnswerRe: where not exists problem! Pin
Eric Dahlvang14-Jul-06 3:21
Eric Dahlvang14-Jul-06 3:21 
AnswerThanks for the help guys Pin
richiemac14-Jul-06 3:35
richiemac14-Jul-06 3:35 

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.