Please start any new threads on our new site at https://forums.sqlteam.com. We've got lots of great SQL Server experts to answer whatever question you can come up with.

 All Forums
 SQL Server 2000 Forums
 SQL Server Development (2000)
 can create DB completely using query analyzer

Author  Topic 

AskSQLTeam
Ask SQLTeam Question

0 Posts

Posted - 2004-06-30 : 07:16:23
Hesham writes "im student at the graduate year , and my project is client server database , so i ask :
If can i write all sql statements that involved creating database, all procedures , views , and etc .. on asingle file as atemplate as i can seprate it to my supervisor ..
please reply me .. and told me how .."

mohdowais
Sheikh of Yak Knowledge

1456 Posts

Posted - 2004-06-30 : 07:33:17
Yes, you can do nearly everything that needs to be done with databases in Query Analyzer by running scripts. And yes, you can also create all the objects in a database from a single file, however, you need to be a little careful to script objects in the right order, i.e. certain objects depend upon others, so those will need to be created before the dependent objects or else your script will fail. If you like a sample of how this done, right click on the database in Enterprise Manager -> All Tasks -> Generate SQL Script.

OS
Go to Top of Page

derrickleggett
Pointy Haired Yak DBA

4184 Posts

Posted - 2004-06-30 : 08:39:05
You can also download sample databases from Microsoft and www.asp.net for examples.

MeanOldDBA
derrickleggett@hotmail.com

When life gives you a lemon, fire the DBA.
Go to Top of Page
   

- Advertisement -