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 to highlight the current row in Access 2007 split form datasheet
warning LNK4089: all references to "WSOCK32.dll" discarded by /OPT:REF
WCF and basicHttp Error
Difference between XmlDocument and XmlDataDocument in .NET
Am trying to get a MAS90 VI Job to run from WinExec(). Runs fine from command prompt, but not from WinExec().
Active Directory Move & Upgrade
Error 2869 when installing windows service on Vista Home
Access .mde Edit
AJAX Calendar extender not displaying properly.
What is the effect of stopping the DNS Client on a DNS server?