Explain CREATE DATABASE syntax?

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


Please Help Members By Posting Answers For Below Questions

What authentication modes does sql server support? : sql server DBA

896


What are the different types of upgrades that can be performed in sql server? : sql server DBA

906


How do you open a cluster administrator? : sql server DBA

788


how to restore files with rman?

1956


How to start SQL Server in minimal configuration mode?

7326


What the different components in replication and what is their use? : sql server DBA

757


I have A,B,C servers.i want to 3 servers jobs move to D server(target server)..how? note: i said that take the backup of msdb and restore to the target server..he said while restoring jobs replaced. what is the solution

1855


What is the cache hit ratio, what impact does it have on performance of an Oracle database and what is involved in tuning it?

2188


How do you troubleshoot errors in a sql server agent job? : sql server DBA

801


can u plz tell me what r the mandatory skills for getting job as a sql dba......plz send me all details thank you my id :k.mohann.mohan@gmail.com

1518


Database crashes. Corruption is found scattered among the file system neither of your doing nor of Oracle's. What database recovery options are available? Database is in archive log mode.

1958


Can you tell me about your experience with the administration of COTS system..? Also, how do you set up seed data..?

1958


You have 4 instances running on the same UNIX box. How can you determine which shared memory and semaphores are associated with which instance?

4164


how can a session indicate its interest in receiving alerts?

777


What view(s) do you use to associate a user's SQLPLUS session with his o/s process?

2332