Database is made offline to move its physical files. There can be many ways to make a database offline. But there are three main methods which are used frequently to make the database offline. These methods are given below: 1. With the Help of Alter Database Command We can make the database offline or online with the help of the Alter database command. The Alter Database command to make the database offline is: ALTER DATABASE database name SET Offline If we want to make the database online, we can use the following Alter Database command: ALTER DATABASE database name SET Online 2. With the Help of the Db_options We can also use the db_options command to make a database offline or online.
To make a database offline, we can use the following command: sp_dboption databasename, ' offline',true To make the database online, we can use the following command: sp_dboption databasename, ' offline',false 3. With the Help of SQL Server Management Studio We can also use the SQL Server Management Studio to make a database offline as shown in the given figure. To make database offline, we have to follow the step shown in figure 1 and to bring back the database online, we needed to follow the step shown in figure 2.
I am currently working as a Analyst and have around 7.5 years of experience in database. Degree:- Master Degree in Computer(MCA) Work experience:- Designing of the database. Database Optimization. Matt Berry Witchazel Rar. Writing Complex Stored Procedures,Functions,Triggers etc. Msn Chat Monitor And Sniffer V3 5 2 there.
Designing and developing SSIS & DTS packages. Designing SQL Reports using SSRS. Database Server Maintenance. Certification:- Microsoft certified Sql DBA in Sql server 2008 (MCTS). Microsoft certified BI professional in Sql server 2008 (MCTS). Oracle certified profession DBA in ORACLE 10g (OCP) certified profession DBA in ORACLE 9i (OCP) My other publication Technical Blog:- Moderator and Blogger at Guest Author and Blogger. Member 10375518 1-Nov-13 18:48 1-Nov-13 18:48 Mr vivek johari you are missing the step of Database is made offline to move its physical files.
I downloaded MySQL's installation package and ran the following command after installing a fresh Ubuntu server. Dpkg -i mysql-5.5.28-debian6.0-x86_64.deb It installed.
You can not move files just offline command. Before database offline you need to run this command to update the file path in MASTER database. Command below. Use Master go --if changing the datafile ALTER DATABASE databaseNAme MODIFY FILE (NAME =db, FILENAME = 'C: Program Files Microsoft SQL Server MSSQL.2 MSSQL Data db.mdf') GO --if changing log file name ALTER DATABASE databaseNAme MODIFY FILE (NAME = db_log, FILENAME = 'C: Program Files Microsoft SQL Server MSSQL.2 MSSQL Data db.ldf') GO Then use Alter Database databasename set online now your database is rady to use.
Regerds: Umair Sharif Khan.