Answer Posted / rohit bhosale
Create Database [database_name] On Primary
(
Name='abc', Filename='path_of_mdf_file'
)
log on
(
Name='abc_log', Filename='path_of_ldf_file'
)
Eg:
Create database emp on primary
(
name='emp1', filename='d:\sql\emp.mdf'
)
log on
(
name='emp1_log', filename='d:\sql\emp_log.ldf'
)
Is This Answer Correct ? | 0 Yes | 0 No |
Post New Answer View All Answers
How would you extract DDL of a table without using a GUI tool?
A table is classified as a parent table and you want to drop and re-create it. How would you do this without affecting the children tables?
What are the different types of database compression introduced in sql server 2008? : sql server DBA
What are the operating modes in which database mirroring runs? : sql server DBA
When setting replication, can you have distributor on sql server 2005, publisher on sql server 2008? : sql server DBA
What are the commands you'd issue to show the explain plan for "select * from dual"?
What is dcl? : sql server DBA
Does transparent data encryption provide encryption when transmitting data across network? : sql server DBA
what is the last version,the release date of that version and fix pack of ibm db2 udb?
What are the high-availability solutions in sql server and differentiate them briefly? : sql server DBA
what is a user-defined lock?
which background process invoke at the time of upgradation tell me???
What is the importance of a recovery model? : sql server DBA
Explain about your sql server dba experience? : sql server DBA
How do you troubleshoot errors in a sql server agent job? : sql server DBA