- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Using EXEC with INSERT INTO
Categories
Company
Local Language
Forums
Discussions
Forums
- Data Protection and Retention
- Entry Storage Systems
- Legacy
- Midrange and Enterprise Storage
- Storage Networking
- HPE Nimble Storage
Discussions
Discussions
Discussions
Discussions
Forums
Forums
Discussions
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
- BladeSystem Infrastructure and Application Solutions
- Appliance Servers
- Alpha Servers
- BackOffice Products
- Internet Products
- HPE 9000 and HPE e3000 Servers
- Networking
- Netservers
- Secure OS Software for Linux
- Server Management (Insight Manager 7)
- Windows Server 2003
- Operating System - Tru64 Unix
- ProLiant Deployment and Provisioning
- Linux-Based Community / Regional
- Microsoft System Center Integration
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Community
Resources
Forums
Blogs
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО05-15-2003 12:11 PM
тАО05-15-2003 12:11 PM
Using EXEC with INSERT INTO
INSERT INTO
e.g. INSERT INTO #temptbl EXEC tempproc
I get the error:
Incorrect syntax near the keyword EXEC
Kindly advice
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО05-15-2003 12:27 PM
тАО05-15-2003 12:27 PM
Re: Using EXEC with INSERT INTO
the correct syntax would be:
insert into
hope this helps!
yogeeraj
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО05-15-2003 12:39 PM
тАО05-15-2003 12:39 PM
Re: Using EXEC with INSERT INTO
Thanks again but i am aware of that. I want to use values returned from a stored procedure, hence my problem. Again SQL Server allows using EXEC after INSERT INTO. Sybase is again giving me a no-no. Kindly advice on a work around on the syntax if there exists one.
Revert
Prandip
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО05-15-2003 10:42 PM
тАО05-15-2003 10:42 PM
Re: Using EXEC with INSERT INTO
If stored procedyre return one value:
declare @return int
exec @return =
insert into
when stored procedure return more than one values you must define procedure to set values of its parameters
delcare @ret1 int, @ret2 int
exec
insert into
:-) ..
on MS SQL Server should work
... sory my english !!
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО05-15-2003 10:43 PM
тАО05-15-2003 10:43 PM
Re: Using EXEC with INSERT INTO
If stored procedyre return one value:
declare @return int
exec @return =
insert into
when stored procedure return more than one values you must define procedure to set values of its parameters
delcare @ret1 int, @ret2 int
exec
insert into
:-) ..
on MS SQL Server should work
... sory my english !!
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО05-15-2003 10:43 PM
тАО05-15-2003 10:43 PM
Re: Using EXEC with INSERT INTO
If stored procedyre return one value:
declare @return int
exec @return =
insert into
when stored procedure return more than one values you must define procedure to set values of its parameters
delcare @ret1 int, @ret2 int
exec
insert into
:-) ..
on MS SQL Server should work
... sory my english !!
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО05-16-2003 05:35 AM
тАО05-16-2003 05:35 AM