Computer Problems? Computing.Net has over 1,000,000 posts about all things technology related! Over 90% answered within 24 hours! Click here to start participating now! Also, be sure to check out the New User Guide.
stored procedure
Name: sumaira Date: March 23, 2009 at 21:04:14 Pacific OS: Windows XP Subcategory: MS SQL Server
Comment:
i have made a stored procedure in which two tables and ID field is provided as input and the result is used to fill a combo in a form .when i execute it i get the follwing error: Incorrect syntax near 'MAST_STORE'. my procedure is here .Kindly anyone tell me wats wrong with it.there is a small mistake that i hvnt found yet.
ALTER PROCEDURE [dbo].[mp_LoadPartCombo] -- Add the parameters for the stored procedure here @table1 as varchar(max)=MAST_PART, @table2 as varchar(max)=MAST_STORE , @IdCol as varchar(max)=StoreID AS BEGIN declare @select as varchar(Max); set @select = '(select * from ' + @table1 + ' innerjoin ' + @table2 + ' on ' + @table1 + '.' + @IdCol + ' = ' + @table2 + '.'+@IdCol + ')' --print (@select) exec (@select)
Summary: Hi people, I have a question about SQL 2005 stored procedures. I have a stored procedure that determins the current price of a stock item and I want to be able to 'select' the value when querying the ...
Summary: I will first off admit - this is for school. I cannot figure out for the life of me why it won't work. I'm not expecting anyone to give me the answer (but would gladly take it!) but rather am lookin...
Summary: dear all, i have made a stored procedure to generate auto id . when iexecute the pro i get folowing error: Incorrect syntax near '0'. at the highlighted line .if i comment this line then i get this ...