What command do we use to rename a db, a table and a column?

To rename db sp_renamedb ‘old_database_name’ , ‘new_database_name’ If someone is using db it will not accept sp_renmaedb. In that case first bring db to single user using sp_dboptions. Use sp_renamedb to rename database. Use sp_dboptions to bring database to multi user mode. E.g. USE master; EXEC sp_dboption AdventureWorks, ‘Single User’,… Continue reading

What is Normalization?

Database normalization is a data design and organization process applied  to data structures based on rules that help building relational  databases. In relational database design, the process of organizing data  to minimize redundancy is called normalization. Normalization usually  involves dividing a database into two or more tables and defining  relationships… Continue reading

At where Sql Management Studio saved all Login Name & Password

In SQL Management Studio all login name & password and server name are stored in a file and its name is “SqlStudio.bin” and its location is “%AppData%\Microsoft\Microsoft SQL Server\100\Tools\Shell\” OR “AppData\Roaming\Microsoft\SQL Server Management Studio\11.0\” OR any other location because location is depends on SQL Server Version. But remember its file… Continue reading

SSRS Reporting Lifecycle

To understand the needs of a reporting platform, you need to first understand the reporting lifecycle. Reporting platforms can be evaluated by their support for the following areas: authoring, management, and delivery. You look at each of these phases later to see how Reporting Services implements them. This Figure shows… Continue reading