Featured post
- Get link
- X
- Other Apps
How to rename a table name in MS SQL Server database using SQL Script using sp_rename explained
Hi,
Today i will explain How to rename a table in MS SQL Server database.Some times when we write SQL scripts for databases and its objects, we may face the requirements to change the name of database tables.Because when i worked in my own project ,I have faced same kind of issues.So I hope if explain it publicly ,It will help others also
So first I will create a table under Upsumdiary database as shown in the below image.
Upsumdiary - MS SQL Server Database Name
Customer - Table Name
Now let us rename Customer to TblCustomer
EXEC sp_rename Customer,TblCustomer
Now let us check the table in SQL Server Management Studio as shown below image
So we understood that by using sp_rename stored procedure we easily change the name of SQL Databases in MS SQL Server
Thanks
Popular Posts
How to Check React Version Installed in Your System by Checking PACKAGE.JSON File and Executing Command from COMMAND PROMPT
- Get link
- X
- Other Apps
Execution failed for task ':react-native-reanimated:externalNativeBuildDebug' solved
- Get link
- X
- Other Apps
Error: Invalid `prisma.$executeRaw()` invocation: fixed using log: ["query"] option
- Get link
- X
- Other Apps
ERROR Warning: React.jsx: type is invalid -- expected a string (for built-in components) or a class/function (for composite components) but got: undefined
- Get link
- X
- Other Apps
app keeps stopping error solved in android studio emulator using logcat in react native project
- Get link
- X
- Other Apps