Forum Replies Created

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

  • RE: T-SQL - SELECT TOP

    Yes, there are issues with the query itself, but what did the question ask? How do you ensure you get the top 25 in sales. The only answer...

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

    Christopher Stobbs (3/19/2009)


    If in your table you declare rundate as a datetime and just insert into to from sysjobhsitory run date the conversation should happen automatically.

    here is an example of...

  • RE: Transactions

    LGibson69 (3/19/2009)


    I expected to get no records because the transaction was still open but, when I ran it on SQL 2008 I got an error message saying "Msg 208, Level...

  • RE: My AFTER DELETE Trigger does not work as I expected

    Also, FOR EACH ROW is used in Oracle, not in Microsoft SQL Server.

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

    I have to agree with Chris above.

  • 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...

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