B
Bert
When I execute the following query in Query Analyzer, it will display
a result (2 rows with table contents)
However, when I use it in a stored procedure and execute this (in
MS-Access adp) 2 empty rows are shown.
Anybody know how to use such a structure in a sp ?
SET NOCOUNT ON
CREATE TABLE #MyTable (id int, name nvarchar(50))
INSERT INTO #MyTable (id, naam) VALUES (1, 'name1')
INSERT INTO #MyTable (id, naam) VALUES (2, 'name2')
SELECT id,naam FROM #MyTable
DROP TABLE #MyTable
a result (2 rows with table contents)
However, when I use it in a stored procedure and execute this (in
MS-Access adp) 2 empty rows are shown.
Anybody know how to use such a structure in a sp ?
SET NOCOUNT ON
CREATE TABLE #MyTable (id int, name nvarchar(50))
INSERT INTO #MyTable (id, naam) VALUES (1, 'name1')
INSERT INTO #MyTable (id, naam) VALUES (2, 'name2')
SELECT id,naam FROM #MyTable
DROP TABLE #MyTable