 |
|
 |
|
Next: Dim processing errors randomly ?
|
| Author |
Message |
External

Since: Nov 22, 2004 Posts: 3
|
(Msg. 1) Posted: Wed Feb 23, 2005 4:40 am
Post subject: Re: How can I get the resultset from a stored procedure [Login to view extended thread Info.] Archived from groups: microsoft>public>sqlserver>programming (more info?)
|
|
|
CREATE #TABLE (
define here the column according to the SP output format
)
INSERT INTO #TABLE EXEC my_sp
Chris
--
______________________________________________
It's still better that if it would have been worst, isn't it ?
C'est toujours mieux que si c'etait pire !
"Vincent" wrote in message
> I have a stored procedure which will output a table.
> How can I use a sql statement to get the result of the sp?
>
> Thanks a lot
>
> >> Stay informed about: How can I get the resultset from a stored procedure |
|
| Back to top |
|
 |  |
External

Since: Nov 22, 2004 Posts: 3
|
(Msg. 2) Posted: Wed Feb 23, 2005 4:40 am
Post subject: Re: How can I get the resultset from a stored procedure [Login to view extended thread Info.] Archived from groups: per prev. post (more info?)
|
|
|
As a sample :
create table ##Test
(
SPID int,
ecid int,
status varchar(60),
loginame varchar(90),
hostname varchar (20),
blk int,
dbname varchar(30),
cmd varchar(100)
)
insert into ##test exec master.dbo.sp_who
--
______________________________________________
It's still better that if it would have been worst, isn't it ?
C'est toujours mieux que si c'etait pire !
"Vincent" wrote in message
> I have a stored procedure which will output a table.
> How can I use a sql statement to get the result of the sp?
>
> Thanks a lot
>
> >> Stay informed about: How can I get the resultset from a stored procedure |
|
| Back to top |
|
 |  |
External

Since: Jun 29, 2004 Posts: 5
|
(Msg. 3) Posted: Wed Feb 23, 2005 4:40 am
Post subject: How can I get the resultset from a stored procedure [Login to view extended thread Info.] Archived from groups: per prev. post (more info?)
|
|
|
|
|
| Back to top |
|
 |  |
External

Since: Nov 11, 2004 Posts: 33
|
(Msg. 4) Posted: Wed Feb 23, 2005 4:40 am
Post subject: Re: How can I get the resultset from a stored procedure [Login to view extended thread Info.] Archived from groups: per prev. post (more info?)
|
|
|
>I have a stored procedure which will output a table.
A stored procedure cannot output a table!
> How can I use a sql statement to get the result of the sp?
Get the result to where?
--
Roji. P. Thomas
Net Asset Management
<a rel="nofollow" style='text-decoration: none;' href="https://www.netassetmanagement.com" target="_blank">https://www.netassetmanagement.com</a>
"Vincent" wrote in message
>I have a stored procedure which will output a table.
> How can I use a sql statement to get the result of the sp?
>
> Thanks a lot
>
> >> Stay informed about: How can I get the resultset from a stored procedure |
|
| Back to top |
|
 |  |
External

Since: Jun 29, 2004 Posts: 5
|
(Msg. 5) Posted: Wed Feb 23, 2005 5:40 am
Post subject: Re: How can I get the resultset from a stored procedure [Login to view extended thread Info.] Archived from groups: per prev. post (more info?)
|
|
|
Thank you very much
"Chris V." wrote in message
> As a sample :
>
> create table ##Test
> (
> SPID int,
> ecid int,
> status varchar(60),
> loginame varchar(90),
> hostname varchar (20),
> blk int,
> dbname varchar(30),
> cmd varchar(100)
> )
>
> insert into ##test exec master.dbo.sp_who
>
>
> --
> ______________________________________________
> It's still better that if it would have been worst, isn't it ?
> C'est toujours mieux que si c'etait pire !
> > I have a stored procedure which will output a table.
> > How can I use a sql statement to get the result of the sp?
> >
> > Thanks a lot
> >
> >
>
> >> Stay informed about: How can I get the resultset from a stored procedure |
|
| Back to top |
|
 |  |
| Related Topics: | Stored Procedure(s) vs Dynamic Stored Procedure - Hi all, Ok - I have a scenario where I'm trying to build up a sql statement to execute in a stored procedure, depending on the 3 parameters passed in (ie, whether they are <> '') depends on which one of the IF blocks gets run, and subsequently,...
VB in a stored procedure - Is it possible to use VB or VB.NET in a stored procedure? I know that I can call a stored procedure using ADO or ADO.NET from VB or VB.NET, but if I click on Create New Stored Procedure within Enterprise Manager is it possible to use VB(ADO) or..
Stored Procedure Help - Hi, How do I return the identity of the row of data I've just inserted from the sp? Thanks
Stored Procedure help - Hi everybody, I'm new to Sqlserver and I have to solve this problem using a stored procedure: I have a simple table tab1 (int a, varchar(255) b) My stored procedure should do this: mystored( varchar(255) in) returning out varchar(4000) ) select * from...
Help with Stored Procedure - Hi, I've tried in my novice state tried to create a stored procedure, but before I show you this perhaps I could give you an insight into what it is that I am trying to do. I have three tables - dbo.JBClient JBCLID int(PK) JBCLSiteID int JBCLName.. |
|
You can post new topics in this forum You can reply to topics in this forum You can edit your posts in this forum You can delete your posts in this forum You can vote in polls in this forum
|
|
|
|
 |
|
|