About 50 results
Open links in new tab
  1. What is the equivalent of 'describe table' in SQL Server?

    Nov 26, 2008 · The SQL Server equivalent to Oracle's describe command is the stored proc sp_help The describe command gives you the information about the column names, types, length, etc. In …

  2. Import CSV (flat file) using SQL Server Management Studio in existing …

    Oct 5, 2021 · Open SQL Server Management Studio (SSMS): Start by launching SQL Server Management Studio on your computer. Connect to Your Database: Connect to the SQL Server …

  3. 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 standard/bes...

  4. How can I get column names from a table in SQL Server?

    Jun 28, 2009 · I want to query the name of all columns of a table. I found how to do this in: Oracle MySQL PostgreSQL But I also need to know: how can this be done in Microsoft SQL Server (2008 in …

  5. How to rename a table in SQL Server? - Stack Overflow

    Keep in mind that when renaming a table, you almost certainly want to also rename any references to that table that may exist in stored procedures, views, functions, etc.

  6. How do you list the primary key of a SQL Server table?

    Simple question, how do you list the primary key of a table with T-SQL? I know how to get indexes on a table, but can't remember how to get the PK.

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

    Mar 15, 2013 · 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 (preferably) or …

  8. How can I do an UPDATE statement with JOIN in SQL Server?

    I need to update this table in SQL Server with data from its 'parent' table, see below: Table: sale

  9. sql server - Insert all values of a table into another table in SQL ...

    Feb 23, 2009 · I am trying to insert all values of one table into another. But the insert statement accepts values, but i would like it to accept a select * from the initial_Table. Is this possible?

  10. sql server - How to change a table name using an SQL query? - Stack ...

    May 20, 2009 · SQL Server table name can be changed in two ways Execute the below query, by using the system stored procedure sp_rename EXEC sp_rename 'dbo.old_table_name','new_table_name'; …