About 400,000 results
Open links in new tab
  1. sql server - How to create a table using "With" clause in SQL - Stack ...

    Mar 20, 2017 · This is not valid syntax for sql server. you can either create a table using CREATE TABLE and specifying the column names and types, or you can do a SELECT INTO statement …

  2. SQL Server tables: what is the difference between @, # and

    Feb 8, 2010 · I would focus on the differences between #table and @table. ##table is a global temporary table and for the record in over 10 years of using SQL Server I have yet to come across a valid use …

  3. Check if table exists and if it doesn't exist, create it in SQL Server ...

    Aug 23, 2019 · 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?

  4. 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?

  5. What is the best way to auto-generate INSERT statements for a SQL ...

    The only way I can think of doing it is to save the table to an excel sheet and then write an excel formula to create an INSERT for every row, which is surely not the best way. I'm using the 2008 Management …

  6. How to create temp table using Create statement in SQL Server?

    Mar 26, 2017 · An equivalent of this is , a declared table variable. This has a little less "functions" (like indexes etc) and is also only used for the current session. The is one that is the same as the , …

  7. How to create a table from select query result in SQL Server 2008

    May 22, 2013 · The SELECT INTO statement creates a new table and populates it with the result set of the SELECT statement. SELECT INTO can be used to combine data from several tables or views …

  8. sql server - what is '#' in create table statement? - Database ...

    11 '#' denotes a temporary table. This tells SQL Server that this table is a local temporary table. This table is only visible to this session of SQL Server. When I close this session, the table will be …

  9. Create table as in SQL Server Management Studio

    Dec 2, 2016 · I do have a basic question. I have changed from PLSQL to SQL Server lately and I am struggling with basic task such is CREATE TABLE. In PLSQL is normal to write create table …

  10. SQL SERVER: Allow a user to create/alter/drop tables within own …

    Sep 5, 2019 · 4 I'm currently building a solution where multiple small applications run of a single SQL server database each with their own login and default schema. This solution works fine, but I need to …