Forum Replies Created

Viewing 15 posts - 76 through 90 (of 95 total)

  • RE: random Number

    select convert(bigint,HashBytes('SHA1', convert(varchar, getdate(),121)+convert(varchar,rand())))

    this should be a bit unique:cool:

  • RE: search time ~18 seconds in a 5Gb DB

    He said that all columns are varchar, so "coloumn * 1" would just convert the varchar to an int/float then multiply by 1, giving the int value. Better off just...

  • RE: bulk insert ignores every second linebreak

    SSIS can preview the file just fine and I opened it up in notepad++ and didn't see any issues with visible and special chars

  • RE: Absolute Values In Decimals

    ...(i.e. 8.00 instead of 8.009) but also where I get 8.00 instead of 8.01....

    you want 8.00 instead of 8.009. So you go from 3 spaces after to 2 spaces and...

  • RE: get consecutive rows

    if that did it, then hopeflly those Seq's keep incrementing. Also, those are 3 distinct selection statements going on, not the best.

  • RE: get consecutive rows

    I may have misunderstood something, but what about this?

    create table #T (

    Seq int primary key,

    Account int,

    Disp char)

    --drop table #t

    insert into #T (Seq, Account, Disp)

    select 10,12345,'+' union all

    select 20,23451,'' union all

    select...

  • RE: dynamic sql and indexes

    I haven't had to work with dynamic SQL yet, but I've heard some people mention that the execution plan can get messed up some times. You may want to see...

  • RE: Question about considering scaling while designing

    I don't work with multiple servers, but I heard of having different DB servers incrementing on different values.

    eg..

    db1 goes: 1,4,7.....

    db2 goes: 2,5,8.....

    db3 goes 3,6,9.....

    Then you never have duplicate keys. But...

  • RE: Query taking 2 hour 30 min to run

    ...Non Clustered Index on BillingType and CobrandCode columns...

    Sounds like MOST rows are being returned. An Index usually only helps if rows are ~95+% unique.

    Anytime you're returning a ton of rows...

  • RE: Table Design

    rbarryyoung (5/7/2008)


    Unless the strings are huge, the difference is usually minuscule. The presence or absence of appropiate indexes and their selectivity makes a much bigger difference.

    It's nice to know...

  • RE: Table Design

    Here's a question. Would overall performance be better when joining on a dept id vs name because of the comparing of int vs string? I would assuming other tables store...

  • RE: sequential / covering index

    I did a Goggle Search...Some say one thing, some say another...

    If Google can't find it, it isn't real... 😛

    on a side note, if everything you're comparing/returning is 'covered' by the...

  • RE: Difference between sql server 2005 and 2008

    I've seen many times where MS said they plan on post Windows Server 2008 and SQL 2008 to be 64bit only. If you don't have a 64bit server by 2011,...

  • RE: Query Slow on the first run

    I found "UPDATE STATISTICS ". Is there any way to script the command run on my raw tables parallel to the live table import or would I have to...

  • RE: Query Slow on the first run

    You can pretty much guaranteed your statistics are garbage when truncating and reloading.

    Is your source data sorted according to the clustered index? If not you may be better off...

Viewing 15 posts - 76 through 90 (of 95 total)