Forum Replies Created

Viewing 15 posts - 31,981 through 31,995 (of 49,552 total)

  • RE: Managing Transaction Logs

    In SQL 2005 (which that link was for), no.

    In SQL 2008 and 2008 R2...

    Using INSERT INTO…SELECT to Bulk Load Data with Minimal Logging

    You can use INSERT INTO <target_table> SELECT <columns>...

    Gail Shaw
    Microsoft Certified Master: SQL Server, MVP, M.Sc (Comp Sci)
    SQL In The Wild: Discussions on DB performance with occasional diversions into recoverability

    We walk in the dark places no others will enter
    We stand on the bridge and no one may pass
  • RE: How to convert int primary key to uniqueidentifier

    Jeff Moden (7/5/2010)


    I'd personally never use a GUID for a PK.

    I might, there are a few reasons.

    Badly-designed front-end app needs to generate the surrogate key itself. Silly design, but it's...

    Gail Shaw
    Microsoft Certified Master: SQL Server, MVP, M.Sc (Comp Sci)
    SQL In The Wild: Discussions on DB performance with occasional diversions into recoverability

    We walk in the dark places no others will enter
    We stand on the bridge and no one may pass
  • RE: Managing Transaction Logs

    stianl72 (7/5/2010)


    I'am still a bit confused about the "minimaly logged" operations stuff.

    http://msdn.microsoft.com/en-us/library/ms191244%28SQL.90%29.aspx

    Gail Shaw
    Microsoft Certified Master: SQL Server, MVP, M.Sc (Comp Sci)
    SQL In The Wild: Discussions on DB performance with occasional diversions into recoverability

    We walk in the dark places no others will enter
    We stand on the bridge and no one may pass
  • RE: Managing Transaction Logs

    Chris Houghton (7/5/2010)


    Am I correct in thinking that a checkpoint flushes the buffer to disk and by disk I mean the transaction log (ldf).

    No. Checkpoint forces all dirty data...

    Gail Shaw
    Microsoft Certified Master: SQL Server, MVP, M.Sc (Comp Sci)
    SQL In The Wild: Discussions on DB performance with occasional diversions into recoverability

    We walk in the dark places no others will enter
    We stand on the bridge and no one may pass
  • RE: Conditionally Filtering An Integer Field

    http://sqlinthewild.co.za/index.php/2009/03/19/catch-all-queries/

    Gail Shaw
    Microsoft Certified Master: SQL Server, MVP, M.Sc (Comp Sci)
    SQL In The Wild: Discussions on DB performance with occasional diversions into recoverability

    We walk in the dark places no others will enter
    We stand on the bridge and no one may pass
  • RE: sp_detach

    Are you connected to the database that you're trying to detach? If so change your context to master.

    Gail Shaw
    Microsoft Certified Master: SQL Server, MVP, M.Sc (Comp Sci)
    SQL In The Wild: Discussions on DB performance with occasional diversions into recoverability

    We walk in the dark places no others will enter
    We stand on the bridge and no one may pass
  • RE: Foreign Key Constraints and Performace!

    Abrar Ahmad_ (7/5/2010)


    My design strategy for a medium level transactional DB (10 K - 500 K data records/Day) would be to not implement foreign key constraints?

    Half a million records a...

    Gail Shaw
    Microsoft Certified Master: SQL Server, MVP, M.Sc (Comp Sci)
    SQL In The Wild: Discussions on DB performance with occasional diversions into recoverability

    We walk in the dark places no others will enter
    We stand on the bridge and no one may pass
  • RE: why sql server not using the index.

    Either the index isn't selective enough or the query isn't SARGable.

    Care to post the query and indexes?

    As for links, check the index category on my blog.

    Gail Shaw
    Microsoft Certified Master: SQL Server, MVP, M.Sc (Comp Sci)
    SQL In The Wild: Discussions on DB performance with occasional diversions into recoverability

    We walk in the dark places no others will enter
    We stand on the bridge and no one may pass
  • RE: tablename in trigger

    Create a stored procedure that will generate the trigger code for each table, specific to that table and columns and doing what you want to do

    It's still a 'general' trigger,...

    Gail Shaw
    Microsoft Certified Master: SQL Server, MVP, M.Sc (Comp Sci)
    SQL In The Wild: Discussions on DB performance with occasional diversions into recoverability

    We walk in the dark places no others will enter
    We stand on the bridge and no one may pass
  • RE: while alter a table it should say that column already related to some views.

    Books Online?

    http://msdn.microsoft.com/en-us/library/ms187956%28SQL.90%29.aspx

    Gail Shaw
    Microsoft Certified Master: SQL Server, MVP, M.Sc (Comp Sci)
    SQL In The Wild: Discussions on DB performance with occasional diversions into recoverability

    We walk in the dark places no others will enter
    We stand on the bridge and no one may pass
  • RE: tablename in trigger

    Or just

    SELECT OBJECT_NAME(parent_id) FROM sys.triggers WHERE object_id=@@PROCID

    No need for a TOP 1, the object_id is unique for first-class objects (anything that appears in sys.objects)

    Gail Shaw
    Microsoft Certified Master: SQL Server, MVP, M.Sc (Comp Sci)
    SQL In The Wild: Discussions on DB performance with occasional diversions into recoverability

    We walk in the dark places no others will enter
    We stand on the bridge and no one may pass
  • RE: Placement of your FK in a table

    Steve Jones - Editor (7/4/2010)


    As mentioned it doesn't matter. Don't worry about FKs ordering when putting columns in the table.

    Don't worry about order of anything when putting columns in a...

    Gail Shaw
    Microsoft Certified Master: SQL Server, MVP, M.Sc (Comp Sci)
    SQL In The Wild: Discussions on DB performance with occasional diversions into recoverability

    We walk in the dark places no others will enter
    We stand on the bridge and no one may pass
  • RE: Dimension Tables Got Corrupted

    Well, it you think about the structure of star (and snowflake) schema, the fact table just contains the keys for the dimensions, not the entire dimension table (names and all...

    Gail Shaw
    Microsoft Certified Master: SQL Server, MVP, M.Sc (Comp Sci)
    SQL In The Wild: Discussions on DB performance with occasional diversions into recoverability

    We walk in the dark places no others will enter
    We stand on the bridge and no one may pass
  • RE: dimension tables gets corrupted

    Please don't cross post. It just wastes peoples time and fragments replies.

    No replies to this thread please. Direct replies to: http://www.sqlservercentral.com/Forums/Topic947345-364-1.aspx

    Gail Shaw
    Microsoft Certified Master: SQL Server, MVP, M.Sc (Comp Sci)
    SQL In The Wild: Discussions on DB performance with occasional diversions into recoverability

    We walk in the dark places no others will enter
    We stand on the bridge and no one may pass
  • RE: Dimension Tables Got Corrupted

    Depends what he means by 'corrupted'

    If he's talking about database corruption then you'll likely need to restore the database from backup as SQL throws high-severity errors when it encounters corruption.

    If...

    Gail Shaw
    Microsoft Certified Master: SQL Server, MVP, M.Sc (Comp Sci)
    SQL In The Wild: Discussions on DB performance with occasional diversions into recoverability

    We walk in the dark places no others will enter
    We stand on the bridge and no one may pass

Viewing 15 posts - 31,981 through 31,995 (of 49,552 total)