Microsoft
Software
Hardware
Network
Question : What is the matter with this stored procedure
I have this stored procedure and it is giving me a error :
Incorrect syntax near the keyword 'TABLE'.
This is the code.
set ANSI_NULLS ON
set QUOTED_IDENTIFIER ON
GO
CREATE PROCEDURE [dbo].[spInsertQuestion]
@CategoryName varchar(50),
@Question varchar(350),
@Answer varchar(500)
AS
DECLARE #TempCatId TABLE
(
tCatID int
)
INSERT INTO #TempCatID(tCatId)
SELECT CatID
FROM Category
WHERE CategoryName = @CategoryName
Answer : What is the matter with this stored procedure
CREATE PROCEDURE [dbo].[spInsertQuestion]
@CategoryName varchar(50),
@Question varchar(350),
@Answer varchar(500)
AS
DECLARE @TempCatId TABLE
(
tCatID int
)
INSERT INTO @TempCatID(tCatId)
SELECT CatID
FROM Category
WHERE CategoryName = @CategoryName
Random Solutions
How do I add an onclick action to a ButtonField inside a GridView?
Alternative to "Can Grow" Property
XL Placing a value in an empty Cell with a Visual Basic Rprogram.
Run a PowerPoint Tutorial Before User Log In
sql question
how to schedule a daily task run stored procedure with sqlserver 2005
If there are multiple inf files on the computer which have the same VID/PID as your device, how does windows choose which driver to use?
how to disable gridview refresh on select row event
Trigger for INSERT, UPDATE, DELETE - determine which event happened within the trigger?
MS Outlook freezes when forwarding/replying with MS Word editor