Forum Replies Created

Viewing 15 posts - 16 through 30 (of 50 total)

  • RE: Log file size increasing

    It means the inactive part of the log (transactions commited and flushed to disk) are removed logically. This does not release the space back to the operating system but will...

    Robert Murphy, Microsoft MCITP (Database Administrator 2008) and MCAD Certified
  • RE: backup all databases in SQL 2008

    DECLARE @name VARCHAR(50) -- database name

    DECLARE @path VARCHAR(256) -- path for backup files

    DECLARE @fileName VARCHAR(256) -- filename for backup

    DECLARE @fileDate VARCHAR(20) -- used for...

    Robert Murphy, Microsoft MCITP (Database Administrator 2008) and MCAD Certified
  • RE: Instant file initialization enable SQL 2K8 R2 64 bit?

    It will if you ensure that the Network Service Account belongs to the following user rights assignment: Perform Volume Maintenance Tasks, through group policy.

    Robert Murphy, Microsoft MCITP (Database Administrator 2008) and MCAD Certified
  • RE: First exection of the procedure on any given day is very slow.

    This is because the first time the procedure is run it must first load the data from disk into SQL's buffer pool (memory), since you are loading the data everyday...

    Robert Murphy, Microsoft MCITP (Database Administrator 2008) and MCAD Certified
  • RE: Log file size increasing

    Change the recovery mode to Simple. Read the following article first to understand the implications:

    http://msdn.microsoft.com/en-us/library/ms175987.aspx

    Robert Murphy, Microsoft MCITP (Database Administrator 2008) and MCAD Certified
  • RE: Cant release unused space???

    Have you tried running the more granular shrink commands (I'm thinking your default file size is set high!):

    The values are in MB

    DBCC SHRINKFILE (N'YourDbName' , 5000)

    GO ...

    Robert Murphy, Microsoft MCITP (Database Administrator 2008) and MCAD Certified
  • RE: Question about GETDATE()

    If you are going to reuse the GETDATE() result for multiple statements then you must assign it's value to a variable as you are proposing. For 2 reasons:

    1. Performance -...

    Robert Murphy, Microsoft MCITP (Database Administrator 2008) and MCAD Certified
  • RE: SQL Server on VMware

    You can have as many logical processors as you do physical processors or cores on the VMWare host.

    There is a top limit of about 160 depending on what version of...

    Robert Murphy, Microsoft MCITP (Database Administrator 2008) and MCAD Certified
  • RE: Trasaction log is getting full

    With the recovery model set to simple, do as already suggested and batch up this import into say 10k rows at a time. After each batch SQL will probably initiate...

    Robert Murphy, Microsoft MCITP (Database Administrator 2008) and MCAD Certified
  • RE: Importing an existing Excel file into a table

    What I would do is this:

    1. Save this spreadsheeet as a CSV (importing Excel sheet into a database is not so easy)

    2. Import the file to a staging table using...

    Robert Murphy, Microsoft MCITP (Database Administrator 2008) and MCAD Certified
  • RE: MSSQL Denali Installation Error "The service did not respond to the start or control request in a timely fashion."

    What windows accounts did you specify for the services to use?

    Robert Murphy, Microsoft MCITP (Database Administrator 2008) and MCAD Certified
  • RE: Trasaction log is getting full

    Sounds like you have a super huge transaction going on during the day that you need to pinpoint! How big is the database itself?

    Robert Murphy, Microsoft MCITP (Database Administrator 2008) and MCAD Certified
  • RE: SQL Server 2008 R2 Srvice Pack installation

    Just make that the instance your are applying the service pack to stopped else you may run into an issue where files are locked and the service pack will only...

    Robert Murphy, Microsoft MCITP (Database Administrator 2008) and MCAD Certified
  • RE: hai

    You can do it, append WITH COPY_ONLY to your command.

    Robert Murphy, Microsoft MCITP (Database Administrator 2008) and MCAD Certified
  • RE: BEGIN or not to BEGIN

    It makes no difference at all to the execution plan, it's a matter or personal preference or what coding standards you choose to adopt.

    For me, I prefer the global BEGIN...

    Robert Murphy, Microsoft MCITP (Database Administrator 2008) and MCAD Certified

Viewing 15 posts - 16 through 30 (of 50 total)