Hi All,
Hope you all are doing good.
In this article, I will explain you about T-SQL commands.
How to check SQL Server Version?
How to create a Database?
How to drop a Database?
NOTE − Be careful while doing this operation because by deleting an existing database would result in loss of complete information stored in the database.
Make sure you have the admin rights before dropping any database.
Dropping a database, deletes the LDF and MDF files.
You cannot drop a database when it is currently in use. You get an error stating - Cannot drop database "Stores" because it is currently in use. So, if other users are connected, you need to put the database in single user mode and then drop the database.
Alter Database Stores Set SINGLE_USER With Rollback Immediate
With Rollback Immediate option, will rollback all incomplete transactions and closes the connection to the database.
How to create a Schema?
How to drop a Schema?
How to create a Table?
How to create a Table with Primary Key and Identity?
How to delete a table?
How to drop a table?
Thanks for reading my article.
Hope you all are doing good.
In this article, I will explain you about T-SQL commands.
How to check SQL Server Version?
How to create a Database?
How to drop a Database?
NOTE − Be careful while doing this operation because by deleting an existing database would result in loss of complete information stored in the database.
Make sure you have the admin rights before dropping any database.
Dropping a database, deletes the LDF and MDF files.
Alter Database Stores Set SINGLE_USER With Rollback Immediate
With Rollback Immediate option, will rollback all incomplete transactions and closes the connection to the database.
How to create a Schema?
How to drop a Schema?
How to create a Table?
How to create a Table with Primary Key and Identity?
How to delete a table?
How to drop a table?
Thanks for reading my article.
No comments:
Post a Comment