Click here to Skip to main content
15,887,880 members
Please Sign up or sign in to vote.
3.40/5 (2 votes)
I created a database, putting some data, making dummy/testing connections in my vb.net projects
My database has 9 tables 1 is for users and the other tables can have millions of data. When I try to view the Database SQL(Script Database as -> Create To -> New Query Editor Window) I found this

SQL
USE [master]
GO

/****** Object:  Database [QAS]    Script Date: 05/03/2013 19:03:21 ******/
CREATE DATABASE [QAS] ON  PRIMARY 
( NAME = N'QAS', FILENAME = N'C:\Program Files\Microsoft SQL Server\MSSQL.2\MSSQL\DATA\QAS.mdf' , SIZE = 229376KB , MAXSIZE = UNLIMITED, FILEGROWTH = 1024KB )
 LOG ON 
( NAME = N'QAS_log', FILENAME = N'C:\Program Files\Microsoft SQL Server\MSSQL.2\MSSQL\DATA\QAS_log.ldf' , SIZE = 916352KB , MAXSIZE = 2048GB , FILEGROWTH = 10%)
GO


My concern is the log is greater than the database, well the MAXSIZE is 2048GB.
Is it OK to change the MAXSIZE?

Still hoping somebody to post suggestions...
Posted
Updated 8-May-13 1:15am
v3

1 solution

It's quite possible that the log file can be greater than the database - it really depends on the number of transactions rather than the number of records. It's ok to change MAXSIZE but you need to be really sure that you want to (you can get all sorts of issues when the transaction log fills up) and you should consider actively managing the log.
Have a read through the documentation at The Transaction Log (SQL Server)[^] in particular the section on managing the size of the log.

I also find this website helpful Managing Transaction Logs[^]
 
Share this answer
 
v2

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900