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
no change-event checkbox in datagridview
Need help troubleshooting VMware ESXi 4.0 PSoD
Position cursor to specified line in multiline textbox
filtiring HTTPS Traffic in ISA Server 2006
Keeping Look Ups in a Make Tabel Query
using string inside a sql string with EXECUTE sp_executesql
Calander pop up control in tables
Multiple IIF statement error
SRVANY where to download the most recent version?
thread to simulate several executions