About 6,340,000 results
Open links in new tab
  1. How to rename a table in SQL Server? - Stack Overflow

    To rename a table in SQL Server, use the sp_rename command: exec sp_rename 'schema.old_table_name', 'new_table_name'

  2. SQL Server Rename Table By Examples - SQL Server Tutorial

    SQL Server does not have any statement that directly renames a table. However, it does provide you with a stored procedure named sp_rename that allows you to change the name of a table. …

  3. SQL Server RENAME TABLE with Example - SQL Server Tutorial

    Now, if you want to change the name of the table from emp to employee, you need to use sp_rename store procedure to rename the table as follows. EXEC sp_rename 'emp', …

  4. ALTER (RENAME) in SQL - GeeksforGeeks

    Apr 14, 2025 · 1. Renaming a Table. ALTER TABLE table_name RENAME TO new_table_name; 2. Renaming a Column. ALTER TABLE table_name RENAME COLUMN old_column_name …

  5. SQL ALTER TABLE Statement - W3Schools

    EXEC sp_rename 'table_name.old_name', 'new_name', 'COLUMN'; ALTER TABLE - ALTER/MODIFY DATATYPE To change the data type of a column in a table, use the following …

  6. SQL - Rename Tables in the Database - TutorialsTeacher.com

    Use the following ALTER TABLE RENAME script to rename table names in the MySQL, PostgreSQL, and SQLite database. The following statement will rename Employee table to …

  7. SQL Server Rename Table - Tpoint Tech - Java

    Mar 17, 2025 · SQL Server provides a standard stored procedure called SP_RENAME for renaming the user-created object in the current database. The user-created object can be a …

  8. Rename Table Name and Column Name in SQL Server

    How to Rename Column Names and Table Names is one of the most Frequent Questions in SQL Server forums. In this article, we will show you Rename Table Names and Column Names …

  9. SQL RENAME TABLE - GeeksforGeeks

    Jan 13, 2025 · In SQL, the RENAME TABLE statement is used to change the name of an existing table. This operation is typically performed when a table's name no longer reflects the data it …

  10. SQL: ALTER TABLE Statement - TechOnTheNet

    Based on the employees table below, change the employee_name column to a char(75) datatype. CREATE TABLE employees ( employee_number int NOT NULL, employee_name char(50) …

  11. Some results have been removed