Please start any new threads on our new site at https://forums.sqlteam.com. We've got lots of great SQL Server experts to answer whatever question you can come up with.

 All Forums
 SQL Server 2000 Forums
 SQL Server Development (2000)
 using a stored proc as the values for an insert statement

Author  Topic 

AskSQLTeam
Ask SQLTeam Question

0 Posts

Posted - 2001-12-05 : 08:46:48
Sean writes "I need to be able to do the following:

INSERT INTO [Table] sp_mystoredproc

I know you can do:

INSERT INTO [Table] (SELECT * FROM Table2)


I get the following error:

Line 1: Incorrect syntax near 'sp_recordpaging'.


Please help out! I have never seen an article written on this and am sure others would love to have it as a reference.


Sean Moe
Moe Designs"

robvolk
Most Valuable Yak

15732 Posts

Posted - 2001-12-05 : 08:59:06
You need to include the EXECUTE statement before the name of your procedure:

INSERT INTO [Table] EXEC sp_recordpaging

Go to Top of Page
   

- Advertisement -