Forum Replies Created

Viewing 15 posts - 49,141 through 49,155 (of 59,065 total)

  • RE: String compare: 'a' = 'a' ==>True or False?

    Hari.Sharma (7/15/2008)


    Hi Sol,

    Try this

    DECLARE @a varchar(10),@b varchar(10)

    SET @a='1'

    SET @b-2='1 '

    if QUOTENAME(@a) = QUOTENAME(@b)

    print 'True'

    else

    print 'False'

    Seems like the easiest way to go to me! 😉

    Now, the...

  • RE: Setting Fill Factor wrt Performance

    Generally speaking, if there aren't a lot of inserts and the clustered key puts the inserts near the logical end of the table, you can use a high fill factor...

  • RE: ISQL/W

    Ian Scarlett (7/17/2008)


    ISQL/W is actually Query Analyzer.

    ISQL is the earlier command line interface for doing the same thing as Query Analyser (i.e running queries and getting back results)

    Not true... ISQL...

  • RE: Derived Column - Source and Destination Table are the same

    Its real hard to troubleshoot a problem without any code or data examples... please see the link in my signature line below.

  • RE: No.of Business Days between two dates

    A calendar table is good to have. Or, you can do it with a simple formula and then subtract the holidays listed in a Holiday table. The following...

  • RE: Snapshot Replication for the Beginner - Part 2

    Very nicely done! The 1st and 2nd articles take a lot of the mystery out of this task and really make it simple. I've not had to do...

  • RE: Soft Skills

    What if you boss asked you to work on your "soft" skills.

    I'd take the nice Oak bat home and bring in a nice "soft" Pine bat 😛

    I'm a teacher at...

  • RE: Things You Didn't Know About Temp Tables and Table Variables

    blandry (7/17/2008)


    If there is not enough cache on hand and both will eventually hit TempDB - is the only advantage that Table variables dont hit it explicitly to start?

    Not quite...

  • RE: can i avoid cursor?

    If you're really going to consider performance and storage, then stop thinking Cursors or While loops and stop thinking about a 5 million row temp table. Make a permanent...

  • RE: can i avoid cursor?

    ALI (7/17/2008)


    Thanks for your comments.

    I did solve above issue and got stuck with other. As I have tight production deadlines, I am going for cursor in a stored procedure.

    See...

  • RE: Need to remove duplicate records and get distinct values

    karthikeyan (7/17/2008)


    What size column do you thing NAME = '' will make?

    Jeff,

    Thanks for highlighting this area.

    I have executed my previous code.

    select distinct ID, Name =''

    into #t1

    from T

    update #t1

    set #t1.Name...

  • RE: How to Pivot a table

    tony.sawyer (7/17/2008)


    I find Jeffs answer one that works for this example - but I'm wondering how to do something a bit more...

    The solution provided used a case statement where the...

  • RE: How to Pivot a table

    I'm in the process of writing an article about Crosstabs and Pivots... hope to finish it soon but one of the things I'm finding out in testing is that, except...

  • RE: Need to remove duplicate records and get distinct values

    Jeff Moden (7/16/2008)


    karthikeyan (7/16/2008)


    Jeff,

    how about my code ?

    What size column do you thing NAME = '' will make? Also, look at the update... which NAME shall it use to...

  • RE: How to Pivot a table

    The best thing for this is a "Crosstab Report"... and it's easier than the PIVOT operator...

    --===== Create and populate a test table

    -- THIS IS NOT...

Viewing 15 posts - 49,141 through 49,155 (of 59,065 total)