sql server compact edition

  • hey ...can anybody hlp me to tell tht how can i create temporary tables in sql server compact edition .....nd i know tht fact ....temp tables arent supported bt compact edition

    thanks in advance !

  • hey ...can anybody hlp me to tell tht how can i create temporary tables in sql server compact edition .....nd i know tht fact ....temp tables arent supported by compact edition

    thanks in advance !

  • I'm sorry, but you can't create temporary tables in CE. Since you know this, why are you asking the question?

    BTW, you can nest queries in 3.5 & above, does that help?

    "The credit belongs to the man who is actually in the arena, whose face is marred by dust and sweat and blood"
    - Theodore Roosevelt

    Author of:
    SQL Server Execution Plans
    SQL Server Query Performance Tuning

  • I'll take a shot at this one.

    ---------------------------

    First solution:

    Since you can't create temporary tables, you create a permanent table with a column to identify each session uniquely.

    You populate that table and then select back only those rows that belong to your session.

    At the end of your session, you delete all those rows.

    Periodically you truncate it when nobody is using it, to clean up data from any sessions that terminated unexpectedly.

    ------------------------------

    Second solution:

    Do it all in dynamic SQL. Create unique table names starting with TEMP_. Drop the table when you're done. Periodically drop all tables starting with TEMP_

    ------------------------------

    Neither of these are pretty.

    __________________________________________________

    Against stupidity the gods themselves contend in vain. -- Friedrich Schiller
    Stop, children, what's that sound? Everybody look what's going down. -- Stephen Stills

  • thanks a lot !!! i ll try these two options .....

Viewing 5 posts - 1 through 5 (of 5 total)

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