Forum Replies Created

Viewing 15 posts - 1 through 15 (of 16 total)

  • RE: Log Shipping Copy Process

    Do you have any maintenance plan to back up the transaction log for the same database? If that's the case, log shipping will not function correctly because both maintenance plan...

  • RE: Dynamic T-SQL Script To Drop Tables

    Create TABLE #SQLCmd

    (

    SqlCmdLine varchar(max)

    )

    ...

    -- NOTHING WORKS BELOW THIS LINE

    exec 'Select SqlCmdLine from #SQLCmd'

    ...

    Dynamic SQL is executed in a separate scope than the batch. The temp table #SQLCmd is created outside...

  • RE: ADD DEFAULT TO EXISTING COLUMN

    Try "Add Contraint" instead of "alter column":

    ALTER TABLE MyTable ADD CONSTRAINT default_name DEFAULT 'my default value' FOR MyColumn;

  • RE: maintenance plan wizard

    Krasavita (7/23/2010)


    Is this correct order to do my weekly my maintenance plan wizard for all my dev databases

    1.CheckDatabaseIntegrity

    2.Update Statistics

    3.Reorginize Index

    4.Rebulding Index

    5.Cleanup History

    6.Maintance Cleanup Task

    Thank you

    Ran "2.Update Statistics" after 3 &...

  • RE: log permissions granted in sql server 2005

    Not sure what you want to achieve. SQL Server provides Security Catalog Views and Security Stored Procedures that you can use to audit server-level or database-level permissions.

  • RE: Deadlock graph help

    As Leo said, you will also need to know the SQL code (statements in SP, dynamic SQL, ...) by turning on trace 1204. Once you have all the information, you...

  • RE: Deadlock graph help

    You can find the objects and indexes, which caused the deadlocks, based on the information (hobt_id, objid, index name) provided in the deadlock graphs. Just query catalog views (e.g., sys.partitions).

  • RE: In Recovery

    krypto69 (7/16/2010)


    I was updated an identity value on a table in my DB.

    The drive the DB was on ran out of room.

    I rebooted the server...and now my DB says 'In...

  • RE: Performance on Views that span databases on multiple servers

    You can try indexed view, which may solve the performance issue.

  • RE: SQL2K5 64-bit Standart Edition Consumes More memory that Max Server Memory(MBs) Value in Task Manager

    Max Server Memory (MBs) 13312

    The max server memory is the maximum memory used by the buffer pool of SQL Server Database Engine. SQL Server has internal and external components,...

  • RE: Oracle to SQL Server 2008 Migration

    Should we migrate each Oracle schema into its own SQL Server database? Or should we create a separate database for each Schema/Application?

    This really depends on your application and requirements. You...

  • RE: performance problem on Production and test servers but not on local development machines

    Quote: more specifically the slow down seems to occur when joining a temp table into several other tables.

    In your production environment:

    Check the configuration of TEMPDB database: make sure to move...

  • RE: Disk I/O and RAID Config

    Comment on your second recommendation:

    [ 2. As most of our users use tempdb(which can not be avoided) by pulling millions of records in temp tables, i thought i have better...

  • RE: Simple recovery mode during reindexing

    If you concern about the size of the log file, consider using one of the following methods to prevent the transaction log files from growing unexpectedly:

    1. Back up the transaction...

  • RE: problem getting rid of a log file

    DBCC Shrinkfile with TruncateOnly is applicable only to data files.

    You may need to truncate your transaction log before you are able to empty that log file. Try this:

    ...

Viewing 15 posts - 1 through 15 (of 16 total)