usemastergoifexists(select*fromsysdatabaseswherename='bbsDB')dropdatabasebbsDBcreatedatabasebbsDBonprimary(name='bbsDB_data',filename='D:\project\bbsDB_data.mdf',size=10mb)logon(name='bbsDB_log',filename='D:\project\bbsDB_log.ldf',size=10mb)gouse