>> Creating A New SQL Database
Directions for Creating the Ban Man Pro SQL   Database.  (SQL 7 and SQL 2000)
For SQL Server 2005 Express Instructions, click here.
  1.  The banmanproSQL database is emailed as a script file called banmanpro.sql.  Detach the file somewhere on your local computer.

  2.  From within SQL Server Enterprise Manager, create a new database called banmanproSQL.  Right-mouse click on databases, then select New Database.

  3. Enter a database name of banmanproSQL or another appropriate name.

  4. Click OK when finished and an empty is created.

  5. Now execute the banmanpro.sql script to create the tables and queries in the database.  From the Tools menu of Enterprise Manager, select SQL Server Query Analyzer.

  6. From within Query Analyzer, open the banmanpro.sql script file.   Select the banmanproSQL database from the DB: drop-down menu.

  7. Execute the script by clicking the green Execute Query button.   If executed successfully, a message indicating 1 Rows Affected will appear.

  8. Make some optimization settings to the database.  Right click on the banmanproSQL database from within Enterprise Manager.  Select properties.

  9. Under the options tab, select "Select Into/bulk copy", "Truncate Log on Checkpoint" and "AutoShrink".  This will keep the log file from growing to a large size.

    Note: In SQL 2000 Microsoft has removed the "Select Into/bulk copy", "Truncate Log on Checkpoint" options.  To Control the Log file size in SQL 2000, be sure to create a maintenance plan that performs a DAILY backup of both the database and log file.  The log file will then be truncated each day after the daily backup. 

 

Copyright 1999-2007 AdComplete.com, LLC     |    Privacy Policy