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

    Feb 8, 2010 · if you need a unique global temp table, create your own with a Uniqueidentifier Prefix/Suffix and drop post execution if an if object_id (.... The only drawback is using Dynamic sql …

  2. 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 …

  3. sql - How to view query that was used to create a table ... - Stack ...

    Apr 4, 2015 · I create about 15 tables and create relationships and constraints among them using Wizard in SQL Server 2012 express Now i want to see the query that is used to create those tables …

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

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

    Mar 26, 2017 · How to create a temp table similarly to creating a normal table? Example:

  6. Backup a single table with its data from a database in sql server 2008

    Jun 9, 2015 · I want to get a backup of a single table with its data from a database in SQL Server using a script. How can I do that?

  7. Create SQL table with the data from another table

    Aug 1, 2010 · SELECT * INTO new_table FROM old_table ...because in SQL Server, the INTO clause creates a table that doesn't already exist.

  8. sql server - CREATE TABLE permission denied in database 'tempdb ...

    Jul 3, 2011 · 18 Use tempdb GO Create User MyUserName For Login MyUserName with Default_Schema= [dbo]; go use tempdb go EXEC sp_addrolemember 'db_ddladmin', …

  9. In SQL Server, how do I generate a CREATE TABLE statement for a …

    Sql server Show create table Mysql-style "Show create table" and "show create database" commands from Microsoft sql server. The script is written is Microsoft asp-language and is quite easy to port to …

  10. SQL Server - Create a copy of a database table and place it in the same ...

    Mar 15, 2013 · 207 I have a table ABC in a database DB. I want to create copies of ABC with names ABC_1, ABC_2, ABC_3 in the same DB. How can I do that using either Management Studio …