Results 1 to 3 of 3

Thread: A SQL Server 7 Question

  1. #1

    Thread Starter
    Hyperactive Member
    Join Date
    Oct 2000
    Location
    Sydney Australia
    Posts
    476
    Hi Team

    Sorry to ask SS7 questions but I'm sure heaps of you will know the answer.

    In Stored procedures there is a way to to declare something resembling an internal tempory table. You can then fill it with the results of a query.

    You can then run further queries in the same stored procedure from the internal temporary table that was previously created.

    Can someone remind me how this is done.

  2. #2
    New Member
    Join Date
    Nov 2000
    Location
    Costa Rica
    Posts
    8

    Thumbs up

    You can create a temporary table with
    this statement

    Create Table #MyTemp as , .....

    The # indicates that this is a temp table that will be
    alive during your session and only the user who created
    can see it

    if you need a table to available to the rest of the users
    you have to use ## instead !!

    Hope It Works For you!!

    Zopailot

  3. #3

    Thread Starter
    Hyperactive Member
    Join Date
    Oct 2000
    Location
    Sydney Australia
    Posts
    476
    Thanks

    Do it have to use a table? Can I create an internal recordset instead and query that? It would be quicker!

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width