Groups | Blog | Home
all groups > sql server (alternate) > june 2006 >

sql server (alternate) : use result set returned by sp as derived table


David Portas
6/11/2006 7:36:25 AM
[quoted text, click to view]

http://www.sommarskog.se/share_data.html

--
David Portas, SQL Server MVP

Whenever possible please post enough code to reproduce your problem.
Including CREATE TABLE and INSERT statements usually helps.
State what version of SQL Server you are using and specify the content
of any error messages.

SQL Server Books Online:
http://msdn2.microsoft.com/library/ms130214(en-US,SQL.90).aspx
--
Baihao Yuan
6/11/2006 1:40:13 PM
Hi,

I got another question here:

I want to use query like this:

SELECT * FROM (sp_lock AS T) WHERE objectID = ...

The purpose is that I want to query the result set returned by sp_lock
using derived table, but it doesn't work. Why?

Thanks,
Baihao



--
Baihao Yuan
6/11/2006 3:51:32 PM
Thanks a lot, I really appreciate it.

Baihao


--
AddThis Social Bookmark Button