Stored Procdures

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • Milkstr
    New Member
    • Sep 2006
    • 49

    Stored Procdures

    is it possible in MS SQL to write a stored procdure that uses the FROM statment to get imformation from an existing stored procdure, at the moment i get invaild object as it seem to only like the FROM statment to be a table. I have made sure all the names i'm using are unique. I did a test in access (novis at SQL) an the sql statment it shows just has the query name no reference to wheather it was a table or query, please help, an example would be good.

    CREATE PROCEDURE forum2b AS
    SELECT NoOfusers.Count OfID
    FROM NoOfusers;

    (NoOfUsers is a current stored procdure) this didn' twork!
  • almaz
    Recognized Expert New Member
    • Dec 2006
    • 168

    #2
    Please do not create two threads for the same problem. See my answer here.

    Comment

    Working...