About 477,000 results
Open links in new tab
  1. Check if table exists and if it doesn't exist, create it in SQL Server ...

    May 10, 2011 · I am writing a Stored procedure in SQL Server 2008. I need to check if a table exists in the database. If it doesn't then I need to create it. How do I do this?

  2. MySQL "CREATE TABLE IF NOT EXISTS" -> Error 1050

    Using the command: CREATE TABLE IF NOT EXISTS `test`.`t1` ( `col` VARCHAR(16) NOT NULL ) ENGINE=MEMORY; Running this twice in the MySQL Query Browser results in: Table …

  3. CREATE TABLE IF NOT EXISTS equivalent in SQL Server

    Jun 29, 2011 · CREATE TABLE IF NOT EXISTS works on mysql but fails with SQL Server 2008 R2. What is the equivalent syntax?

  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 Server : check if table exists, otherwise create it

    If i drop schema part - and use this - it appears to work: IF (NOT ( EXISTS (SELECT * FROM INFORMATION_SCHEMA.TABLES WHERE TABLE_NAME = 'odds_soccer') )) Since this is …

  6. Check table exist or not before create it in Oracle

    Trying to check is table exist before create in Oracle. Search for most of the post from Stackoverflow and others too. Find some query but it didn't work for me. IF((SELECT count(*) …

  7. sql - Creating a database table if it does not exist in Java …

    I am writing a database program in Java and want to create a table if it does not already exist. I learned about DatabaseMetaData.getTables() from How can I detect a SQL table's …

  8. sql - Access: create table if it does not exist - Stack Overflow

    Jun 12, 2009 · For SQL DDL code the answer is no. ACE/Jet SQL does not have any control-of-flow syntax and a ACE/Jet PROCEDURE can only execute one SQL statement. Yes, that's …

  9. 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...

  10. How can I create a TABLE if and only if it does not exist?

    Oct 29, 2010 · I'm not sure what's wrong with what I'm trying, I just want to make a table if it doesn't exist. Any input would be appreciated, thanks!