|
-
Apr 19th, 2012, 10:26 AM
#1
[RESOLVED] Select against sproc
Does anyone know if its possible at all to execute a Select query directly against a stored procedure in SQL Server 2005 ?
-
Apr 20th, 2012, 09:06 AM
#2
Re: Select against sproc
you can use OPENROWSET pls. refer thread for sample
__________________
Rate the posts that helped you 
-
Apr 20th, 2012, 10:06 AM
#3
Re: Select against sproc
You can load sproc results into a temp table...
Create Table #Temp (col1 int, col2 xxx, col3 yyy...)
Insert into #Temp Exec SomeSproc
-
Apr 24th, 2012, 11:27 AM
#4
Re: Select against sproc
Ah, I kinda got it to work. The syntax checks out, it just has a problem identifying the provider or something. Shouldn't be an issue to figure out. Thank you both.
-
Apr 24th, 2012, 02:34 PM
#5
Re: [RESOLVED] Select against sproc
If you know the COLUMNS before hand do not use an OPENROWSET.
Last edited by szlamany; Apr 24th, 2012 at 02:40 PM.
Tags for this Thread
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|