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
Can a Lookup column be used in a calculated column
BAT file to automate copying files from vpn network to local machine.
how to uninstall dot net framework 3.5 service pack?
Oracle Case Insensitive Query
WPF: Adding Context Menu to Dynamically Create Labels
Import special toolbar from another database
Convert LINQ in C# to VB.NET
MYSQL Webservice Vb.net
Updating things based on info in a given record
How can I compare float data?