Forum Replies Created

Viewing 15 posts - 121 through 135 (of 208 total)

  • RE: Insert Into SQL table from a vb DataGridView (vs2005)

    If linked server is not on a fast connection, it's the latency that makes it slow - each insert waits for reply. So, you can insert data to a local...

  • RE: T-SQL Query

    Right, but Steve once mentioned that QoD is not about best practices. Some are about bad practice, probably to spark discussions like this, which is OK for me.

    If the solution...

  • RE: User Defined Function - Passing and Processing a Table

    select sum(salary*age)/sum(age)

  • RE: The Optimists

    Good editorial. Jeff, well worded rules, they remind me of 3 rules of robotics. 🙂

    Most of customer requests break the first rule. Then there are poorly thought requests that introduce...

  • RE: T-SQL Query

    kevriley (4/15/2008)


    There is always 101 ways to do anything in t-sql - the trick (or more specifically, the skill) is knowing which is the right way:D

    That's one of the attributes...

  • RE: SQL 2005 Query result to Grid: column header names are truncated

    They're truncated visually as it sizes column based on data size. You can always enlarge the column to see full column names.

  • RE: Updating only changed columns

    I don't think there is much sense putting such code into trigger, as it unnecessarily complicates logic. It's the duty of client to send a correct update/insert/delete statement containing only...

  • RE: Database Status SUSPECT

    My apologies, Paul.

    It indeed wasn't harsh.

    I first read this:

    http://www.simple-talk.com/sql/backup-and-recovery/pop-rivett-and-the-suspect-database/

    That would be a bit useful if they were on SS2000, but they're not. Please check which forum you're in before posting...

  • RE: Clustered index

    If you rebuild clustered index explicitly with ALTER, you have to rebuild other indexes too.

    DBReindex rebuilds them all, in SSMS just run:

    DBCC DBReindex ('[database.]schema.table')

  • RE: Database Status SUSPECT

    Of course. I stated that what Paul wrote is correct, just that there's no need to be harsh. Most of things from ss2k work fine on ss2005, though some should...

  • RE: Updating only changed columns

    Is there anyway to build a SQL Update that can test the fields during the update and not update them if they are the same, but still update fields that...

  • RE: Database Status SUSPECT

    Ouch, your second harsh post on this topic. While it is true, proper directions are far more relevant than exact steps. If you always provide exact steps to solve the...

  • RE: Gigantic transaction log - why?!

    Backup with truncate_only restarts the log file, but does not shrink it.

    Huge log file means there are huge table transactions and/or transactions over huge blobs. So the source of problem...

  • RE: Clustered index

    KB (4/9/2008)


    Clustered index created on an ID (int) column on a table shows Logical Scan Fragmentation = 92.86% (I ran DBCC showcontig for the table). This column is also the...

Viewing 15 posts - 121 through 135 (of 208 total)