Forum Replies Created

Viewing 15 posts - 21,886 through 21,900 (of 26,484 total)

  • RE: Convert Date 20090319 to 2009-03-19

    What table and field is this date going into?

  • RE: datetime to month - year

    Will this work for you?

    select left(datename(mm, getdate()), 3) + '-' + cast(datename(yyyy, getdate()) as char(4))

  • RE: Concatenating field values in one string

    Here is some code you can work with on this.

    declare @TestTab table (ColA int, ColB Varchar(10));

    insert into @TestTab

    select 1, 'John' union all

    select 1, 'Josh' union all

    select 1, 'Bob' union all

    select...

  • RE: Identical columns in clustered and non-clustered index

    Michael O Connor (3/19/2009)


    I have a table which has multiple indexes....

    Index_Name: PK_My_Table

    Type: Non-Clustered

    Cols: col1,col2,col3,col4,col5

    Index_Name: IX_My_Table

    Type: Clustered

    Cols: col1,col2,col3,col4,col5

    The PK_My_Table index is created as a result of the PK constraint...

  • RE: Need a function to compare strings.

    Bob,

    If you are processing incoming data, you may really want to look at the fuzzy lookup in SSIS. I used it quite a while ago in a now defunct...

  • RE: Format elapsed time

    Here is some test code for you to look at:

    declare @D1 datetime,

    @D2 datetime,

    @diff int;

    select...

  • RE: use of Curser to purge data+sql server 2005

    More efficient, I believe so. Please look at my code I posted earlier.

  • RE: T-Sql rant

    foxjazz (3/18/2009)


    Um I don't quite understand and it's my fault for not getting my last req accross.

    Forget producttype..

    lets say we just have partnumber, seq

    and we want to insert a part...

  • RE: T-Sql rant

    Sergiy (3/18/2009)


    Bob Hovious (3/18/2009)


    Jeff, I warned Fox he would hear about triangular joins one day.

    Let us get the man weaned off cursors first !! 😉

    Guys,...

  • RE: T-Sql rant

    Jeff Moden (3/18/2009)


    Lynn Pettis (3/18/2009)


    Chris Morris (3/18/2009)


    foxjazz (3/18/2009)


    {} is much better than BEGIN BEGIN BEGIN BEGIN END END END END

    Heh quite possibly - but the count of BEGIN - END...

  • RE: Are the posted questions getting worse?

    Bob Hovious (3/18/2009)


    Hey Lynn, why are you quoting me? I think the man in the helmet is the one who requires the apology before the energy...

  • RE: T-Sql rant

    Sergiy (3/18/2009)


    J (3/18/2009)


    I am on vacation.

    It's not exactly what they name "on vacation". 😉

    "On vacation" means "gone fishing", "being on tour", "hiking over incredible range", getting pissed end in...

  • RE: Are the posted questions getting worse?

    Bob Hovious (3/18/2009)


    Lynn's saintly patience is well-known. I'm betting on a long shot, for once. It seems to be paying off. But until he...

  • RE: Verify SQL in stored procedure

    Florian Reischl (3/18/2009)


    If your statements don't too much changes you can work with transaction rollbacks:

    IF (@@TRANCOUNT != 0)

    ROLLBACK TRANSACTION

    BEGIN TRANSACTION

    INSERT INTO anywhere VALUES (1, 'Hello World')

    ROLLBACK TRANSACTION

    So...

  • RE: msdb - SSIS question

    Can't speak to the first part of your post, as we load our SSIS packages to msdb. Yes, it will increase the size of your msdb database. The...

Viewing 15 posts - 21,886 through 21,900 (of 26,484 total)