temp tables?

    Date: 09/24/07 (SQL Server)    Keywords: database

    I'm a tad confused here. I thought when you used the syntax...

    CREATE TABLE ##m_tblOpenReceipts(

    ...that the table was destroyed when the stored procedure ended. So why, when I try to run it a second, time, do I get the error...

    Msg 2714, Level 16, State 6, Line 43
    There is already an object named '##m_tblOpenReceipts' in the database.

    ...?

    (This is also the case with a single pound.)

    If I'm wrong about this, as I seem to be, how does one create a true temp table?

    Source: http://community.livejournal.com/sqlserver/63487.html

« SET IDENTITY_INSERT on an... || Division used to work, it... »


antivirus | apache | asp | blogging | browser | bugtracking | cms | crm | css | database | ebay | ecommerce | google | hosting | html | java | jsp | linux | microsoft | mysql | offshore | offshoring | oscommerce | php | postgresql | programming | rss | security | seo | shopping | software | spam | spyware | sql | technology | templates | tracker | virus | web | xml | yahoo | home