About 981,000 results
Open links in new tab
  1. SQL Server tables: what is the difference between @, # and

    Feb 8, 2010 · ##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 case. I'm sure that some exist but the nature of …

  2. Determine what user created objects in SQL Server

    Aug 10, 2009 · As alluded to by @crokusek, for recent versions of SQL Server/Azure SQL database this doesn't work. The notes @crokusek link to state that "For databases upgraded …

  3. sql server - SQL: how to specify a date format on creating a table …

    Dec 22, 2016 · You don't need to specify the format in the table definition as dates are stored in a binary format. CREATE TABLE APP( ID INT NOT NULL, DT DATE, ADDRESS NVARCHAR …

  4. Create table as in SQL Server Management Studio

    Dec 2, 2016 · How can I create table in SQL Server 2014 Management Studio? Is it really that I first need to create table like CREATE TABLE dbo.COSTUME ( text CHAR(5), -- need …

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

    Aug 23, 2019 · Let us create a sample database with a table by the below script: CREATE DATABASE Test GO USE Test GO CREATE TABLE dbo.tblTest (Id INT, Name …

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

    May 22, 2013 · It can also be used to create a new table that contains data selected from a linked server. Example, SELECT col1, col2 INTO #a -- <<== creates temporary table FROM tablename

  7. Grant Permission to CREATE tables - SQL Server - Stack Overflow

    Feb 26, 2019 · What is the SQL command for giving a user permissions to create (and delete) tables? I am looking for something similar to this: GRANT INSERT, UPDATE, SELECT ON …

  8. Create SQL table with the data from another table

    Aug 7, 2010 · Create the new table with a CREATE TABLE statement; Use INSERT based on a SELECT from the old table: INSERT INTO new_table SELECT * FROM old_table In SQL …

  9. sql - Drop and create table in one command - Stack Overflow

    Mar 10, 2016 · That's SQL Server 2016 syntax. For earlier versions, you can use the EXISTS function to check whether your table exists in the sys.tables list and drop it if it does. Then …

  10. How to add a column with a default value to an existing table in …

    Sep 18, 2008 · First create a table with name student: CREATE TABLE STUDENT (STUDENT_ID INT NOT NULL) Add one column to it: ALTER TABLE STUDENT ADD …

Refresh