how to insert your query into stored procedure?

  • I have a stored procedure. And need to insert a script like "update table set.... where....". if i insert it before the body of procedure, then sql only reads the script. if after then only procedure. what shall i do? sorry for the noob question

  • Can you post your stored procedure and the items you want to incorporate within that SP ? In this fashion someone will be able to assist you....

    If everything seems to be going well, you have obviously overlooked something.

    Ron

    Please help us, help you -before posting a question please read[/url]
    Before posting a performance problem please read[/url]

  • Put the statements after the AS keyword

    Syntax reference:

    http://msdn.microsoft.com/en-us/library/ms187926.aspx

Viewing 3 posts - 1 through 2 (of 2 total)

You must be logged in to reply to this topic. Login to reply