use result set returned by sp as derived table

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • Baihao Yuan

    use result set returned by sp as derived table

    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



    --
    Posted via Mailgate.ORG Server - http://www.Mailgate.ORG
  • David Portas

    #2
    Re: use result set returned by sp as derived table

    Baihao Yuan wrote:[color=blue]
    > 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
    >[/color]



    --
    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:

    --

    Comment

    • Baihao Yuan

      #3
      Re: use result set returned by sp as derived table

      Thanks a lot, I really appreciate it.

      Baihao


      --
      Posted via Mailgate.ORG Server - http://www.Mailgate.ORG

      Comment

      Working...