Click here to Skip to main content
15,922,427 members
Home / Discussions / Database
   

Database

 
GeneralSQL Server Procedure Output Pin
SamAmman5-Apr-04 23:06
SamAmman5-Apr-04 23:06 
GeneralRe: SQL Server Procedure Output Pin
Mike Dimmick6-Apr-04 1:26
Mike Dimmick6-Apr-04 1:26 
GeneralFile space used in SQL2000 Pin
Hesham Amin5-Apr-04 1:34
Hesham Amin5-Apr-04 1:34 
GeneralRe: File space used in SQL2000 Pin
Mazdak5-Apr-04 21:20
Mazdak5-Apr-04 21:20 
GeneralRe: File space used in SQL2000 Pin
Hesham Amin5-Apr-04 22:12
Hesham Amin5-Apr-04 22:12 
GeneralRe: File space used in SQL2000 Pin
Mike Dimmick6-Apr-04 1:35
Mike Dimmick6-Apr-04 1:35 
GeneralReducing the size of the database files Pin
Colin Angus Mackay4-Apr-04 23:26
Colin Angus Mackay4-Apr-04 23:26 
GeneralRe: Reducing the size of the database files Pin
Mike Dimmick5-Apr-04 1:02
Mike Dimmick5-Apr-04 1:02 
(This applies to SQL Server 2000)

If you have recovery model for the database set to Full, everything you do is permanently recorded in the transaction log until you back it up. Only then will SQL Server truncate the log to the backup point (you can disable this behaviour by specifying WITH NO_TRUNCATE).

Full recovery allows you to restore the database to any point in time, which SQL Server performs by undoing all the operations in the transaction log after that point (and any operations in transactions that hadn't committed before that point). If you don't want this capability, select the Simple recovery model. In this model, you can only restore a backup of the database - you can't rewind to a particular point in time.

A compromise candidate is Bulk-Logged mode. Here, any bulk operations (BULK INSERT, bcp, CREATE INDEX, SELECT INTO, WRITETEXT and UPDATETEXT) are only marked as having happened; the actual operations are not recorded. However, SQL Server does indicate which regions of the database have been affected by a bulk operation, and backs those up with a full database backup or a transaction log backup. If you aren't performing bulk operations, this option saves no space at all.

The default for Standard or Enterprise Edition is Full, while the default for Personal Edition or MSDE is Simple. Remember that the settings for any new databases are copied from the model database (since a new database simply is a copy of model, which is how SQL Server manages to create a new database in a few seconds).

For more horrible detail, my reference book is Inside SQL Server 2000 by Kalen Delaney (MS Press).

If you're just developing, rather than working on a production server, I suggest using the Simple model. If you deploy to your production server with a backup/restore model, remember to change the recovery model afterwards.

Stability. What an interesting concept. -- Chris Maunder
GeneralRe: Reducing the size of the database files Pin
Colin Angus Mackay5-Apr-04 23:28
Colin Angus Mackay5-Apr-04 23:28 
GeneralConnecting Oracle 10 g Pin
mhmoud rawas4-Apr-04 23:14
mhmoud rawas4-Apr-04 23:14 
GeneralJOIN datatables Pin
vbtoosharp4-Apr-04 15:53
vbtoosharp4-Apr-04 15:53 
GeneralRe: JOIN datatables Pin
Mazdak5-Apr-04 0:01
Mazdak5-Apr-04 0:01 
GeneralAuto Updating Column Pin
monrobot134-Apr-04 14:19
monrobot134-Apr-04 14:19 
GeneralRe: Auto Updating Column Pin
Mike Dimmick5-Apr-04 1:11
Mike Dimmick5-Apr-04 1:11 
GeneralRe: Auto Updating Column Pin
monrobot135-Apr-04 4:01
monrobot135-Apr-04 4:01 
QuestionSQLCommand ??? Pin
sybux20004-Apr-04 5:51
sybux20004-Apr-04 5:51 
AnswerRe: SQLCommand ??? Pin
AlexDBA4-Apr-04 19:43
AlexDBA4-Apr-04 19:43 
AnswerRe: SQLCommand ??? Pin
Mike Dimmick5-Apr-04 1:42
Mike Dimmick5-Apr-04 1:42 
GeneralRe: SQLCommand ??? Pin
sybux20005-Apr-04 8:24
sybux20005-Apr-04 8:24 
GeneralAutomation Sever cannot create object Pin
Gary Hyslop at home4-Apr-04 4:56
Gary Hyslop at home4-Apr-04 4:56 
GeneralRe: Automation Sever cannot create object Pin
Gary Hyslop9-Apr-04 3:04
Gary Hyslop9-Apr-04 3:04 
QuestionHow can I deploy sql server database? Pin
Mahmoud Hossam3-Apr-04 23:50
Mahmoud Hossam3-Apr-04 23:50 
AnswerRe: How can I deploy sql server database? Pin
Michael P Butler4-Apr-04 0:05
Michael P Butler4-Apr-04 0:05 
AnswerRe: How can I deploy sql server database? Pin
Steven Campbell13-Apr-04 9:28
Steven Campbell13-Apr-04 9:28 
GeneralSELECT * Problem Pin
monrobot133-Apr-04 12:58
monrobot133-Apr-04 12:58 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.