Forum Replies Created

Viewing 15 posts - 19,966 through 19,980 (of 26,490 total)

  • RE: How can you identify the year in a smalldatetime column?

    Like this:

    declare @ADateTime smalldatetime;

    set @ADateTime = '2009-07-05 09:00:00';

    select @ADateTime, year(@ADateTime);

    You may want to spend some time reading Books Online (BOL, the SQL Server Help System that may be accessed from...

  • RE: Inserting Decimals

    This?

    declare @TestInt int;

    set @TestInt = 425699;

    select cast(@TestInt/100.00 as decimal(10,2);

  • RE: Anyway of getting ride of this cursor?

    There really isn't enough information to provide a really good answer. Could you provide the DDL for the table(s) involved, sample data (in a readily consummable format that can...

  • RE: Design Question

    It isn't a stupid question at all. the problem I see with it is that it is extremely broad and vague.

    Perhaps you could provide more background information regrading what...

  • RE: SQL Split query

    WayneS (7/6/2009)


    Lynn Pettis (7/6/2009)


    Mario Garcia (7/6/2009)


    I have used a function to parse data. It can be altered some to fit your needs.

    You may want to search this site a...

  • RE: SSIS deployment

    bozworth hollinz (7/6/2009)


    ah, found this nifty link in relation to the dynamic connections in SSIS

    http://www.sqlservercentral.com/articles/Video/64262/

    Just curious, does anyone use the SQL table for storing their configurations?

    We also use a...

  • RE: SQL Split query

    Mario Garcia (7/6/2009)


    I have used a function to parse data. It can be altered some to fit your needs.

    You may want to search this site a bit. You...

  • RE: SSIS deployment

    We haven't moved to a production environment yet, but what I am curious about is your comment about modifying meta-data in your packages. What meta-data did you have to...

  • RE: Composite primary key & auto increment problem

    GilaMonster (7/6/2009)


    Lynn Pettis (7/5/2009)


    I concur, your db design is flawed, and fails the 3NF.

    It's violating BCNF if I'm not mistaken. There's no inter-data dependency (so passed 3NF) but there is...

  • RE: Add column at ordinal position programmatically

    WayneS (7/5/2009)


    Lowell (7/5/2009)


    I slapped together a stored proc sp_GetDDL that returns the table DDL, complete with indexes ,defaults, everything...there's a function version as well; that would probably work just fine...

  • RE: SQL brian teaser...

    Digs (7/5/2009)


    Every one is a comedian.

    Life of Brain ! ( I am kidding )..

    A little humor helps a bit...

    With that, though, Jeff really wasn't kidding when he asked you to...

  • RE: SQL brian teaser...

    Jeff Moden (7/5/2009)


    Lynn Pettis (7/5/2009)


    Now, one last little ribbing. You spelled BRAIN incorrectly in you post header. 😛

    Heh... Picky, picky, picky...

    Hey, I could have said something at the beginning but...

  • RE: SQL brian teaser...

    Now, one last little ribbing. You spelled BRAIN incorrectly in you post header. 😛

  • RE: SQL brian teaser...

    Digs (7/5/2009)


    Thanks the out put was

    1A10

    2B20

    3C30

    Where did the column 'ItemID' come from, have you made changes to the 'DelimitedSplit' function, by allowing and 'Identitiy field ' (increment at 1) ....

  • RE: SQL brian teaser...

    You have much to learn padawan.

    Here:

    declare @Str1 varchar(8000),

    @Str2 varchar(8000),

    @Str3 varchar(8000);

    set @Str1 = '1,2,3';

    set @Str2...

Viewing 15 posts - 19,966 through 19,980 (of 26,490 total)