About 383,000 results
Open links in new tab
  1. sql server - How to drop a table if it exists? - Stack Overflow

    Btw, the question is "How to drop a table if it exists?" with a tag "sql-server" without specifically lining it to SQL only, therefore this answer is not only technically correct but some (knowing …

  2. sql - Drop a temporary table if it exists - Stack Overflow

    I have two lines of code in SQL that create two tables on the fly, i need to do something like IF TABLE EXISTS DROP IT AND CREATE IT AGAIN ELSE CREATE IT my lines are the …

  3. sql server - Check if a temporary table exists and delete if it exists ...

    I am using the following code to check if the temporary table exists and drop the table if it exists before creating again. It works fine as long as I don't change the columns. If I add a column la...

  4. t sql - Check if table exists in SQL Server - Stack Overflow

    I would like this to be the ultimate discussion on how to check if a table exists in SQL Server 2000/2005 using SQL Statements. Here are two possible ways of doing it. Which one is the …

  5. sql - DROP IF EXISTS VS DROP? - Stack Overflow

    Mar 5, 2012 · Can someone tell me if there is any difference between DROP IF EXISTS [TABLE_NAME] DROP [TABLE_NAME] I am asking this because I am using JDBC template …

  6. How do I drop table variables in SQL-Server? Should I even do this?

    Table variables are just like int or varchar variables. You don't need to drop them. They have the same scope rules as int or varchar variables The scope of a variable is the range of Transact …

  7. DROP TABLE IF EXISTS vs OBJECT_ID IS NOT NULL - Stack Overflow

    Sep 3, 2020 · The IF EXISTS clause has been supported with DROP TABLE since SQL Server 2016 13.x up through the current version as of writting this, SQL Server 2019 (15.x). …

  8. sql - Drop temp table if it exists - Stack Overflow

    @MarJer ## is a global temp table. # is a session-scoped temp table. You can't use ## if you created a table with #, and vice versa. Also, ".." convention is tightly coupled to the executing …

  9. Dropping / recreating type in SQL Server - Stack Overflow

    Jun 12, 2017 · Msg 219, Level 16, State 1, Line 3 The type 'tabletype' already exists, or you do not have permission to create it. check that storedprocedure or function name. just comment …

  10. Deleting Global Temporary Tables (##tempTable) in SQL Server

    Mar 27, 2009 · I'm finding ## global temporary tables don't do what it says on the tin. If I make 3 instances of a windows program, all with an open SQL DB connection, and they all create …