Forum Replies Created

Viewing 15 posts - 5,806 through 5,820 (of 9,399 total)

  • RE: SET 1 symbol instead whole string in varchar value

    Instead of using:

    DECLARE @a int;

    SET @a = 52;

    DECLARE @str nvarchar;

    EXEC @str = TwoDigitsNumber @a;

    SELECT @str;

    GO

    Use:

    DECLARE @a int;

    SET @a = 52;

    DECLARE @str nvarchar(20);

    EXEC @str = TwoDigitsNumber @a;

    SELECT @str;

    GO

  • RE: SET 1 symbol instead whole string in varchar value

    koles2004 (6/12/2015)


    I use nvarchar(20) everywhere, but it doesn't help (

    When you call your function, you're using the following line to declare your variable:

    DECLARE @str nvarchar;

    The function may return properly, but...

  • RE: SET 1 symbol instead whole string in varchar value

    Phil hit the nail on the head. With a declared variable, if you don't specify a size for your string, the default length is 1.

  • RE: Today's Random Word!

    crookj (6/12/2015)


    Ed Wagner (6/12/2015)


    BWFC (6/12/2015)


    Eirikur Eiriksson (6/12/2015)


    Ed Wagner (6/12/2015)


    crookj (6/12/2015)


    Ed Wagner (6/12/2015)


    BWFC (6/12/2015)


    djj (6/12/2015)


    BL0B_EATER (6/12/2015)


    Eirikur Eiriksson (6/11/2015)


    TomThomson (6/11/2015)


    Ed Wagner (6/11/2015)


    djj (6/11/2015)


    eccentricDBA (6/11/2015)


    Eirikur Eiriksson (6/11/2015)


    Ed Wagner (6/11/2015)


    crookj (6/11/2015)


    ZZartin (6/11/2015)


    Bottle

    Rum

    Running

    quirky

    Qt

    cutie

    QT?

    One Way

    Communication

    Cycle

    Motorcycle

    Emptiness

    Void

    Null

    Not

    Logical

    Captain

    Admiral

    rear...

  • RE: Today's Random Word!

    BWFC (6/12/2015)


    Eirikur Eiriksson (6/12/2015)


    Ed Wagner (6/12/2015)


    crookj (6/12/2015)


    Ed Wagner (6/12/2015)


    BWFC (6/12/2015)


    djj (6/12/2015)


    BL0B_EATER (6/12/2015)


    Eirikur Eiriksson (6/11/2015)


    TomThomson (6/11/2015)


    Ed Wagner (6/11/2015)


    djj (6/11/2015)


    eccentricDBA (6/11/2015)


    Eirikur Eiriksson (6/11/2015)


    Ed Wagner (6/11/2015)


    crookj (6/11/2015)


    ZZartin (6/11/2015)


    Bottle

    Rum

    Running

    quirky

    Qt

    cutie

    QT?

    One Way

    Communication

    Cycle

    Motorcycle

    Emptiness

    Void

    Null

    Not

    Logical

    Captain

    Admiral

  • RE: Today's Random Word!

    crookj (6/12/2015)


    Ed Wagner (6/12/2015)


    BWFC (6/12/2015)


    djj (6/12/2015)


    BL0B_EATER (6/12/2015)


    Eirikur Eiriksson (6/11/2015)


    TomThomson (6/11/2015)


    Ed Wagner (6/11/2015)


    djj (6/11/2015)


    eccentricDBA (6/11/2015)


    Eirikur Eiriksson (6/11/2015)


    Ed Wagner (6/11/2015)


    crookj (6/11/2015)


    ZZartin (6/11/2015)


    Bottle

    Rum

    Running

    quirky

    Qt

    cutie

    QT?

    One Way

    Communication

    Cycle

    Motorcycle

    Emptiness

    Void

    Null

    Not

  • RE: Finding / getting in touch with recruiters?

    Jason, the local PASS chapter is called SPID. It meets on the second Tuesday of the month at the Microsoft office in Southfield and starts at 6:00. It's...

  • RE: The Rename Game

    Joel Ewald (6/12/2015)


    It depends on the business value and cost.

    Agreed. Risk versus reward has to evaluated.

  • RE: The Rename Game

    Ed Wagner (6/12/2015)


    I don't generally rename tables, columns, etc. once they're in production. There are just too many things that reference it.

    Procedures are simpler to rename, but they have...

  • RE: The Rename Game

    I don't generally rename tables, columns, etc. once they're in production. There are just too many things that reference it.

    Procedures are simpler to rename, but they have to be...

  • RE: What will happen with below code???

    The question had several things to look at and consider. Nice.

  • RE: Today's Random Word!

    BWFC (6/12/2015)


    djj (6/12/2015)


    BL0B_EATER (6/12/2015)


    Eirikur Eiriksson (6/11/2015)


    TomThomson (6/11/2015)


    Ed Wagner (6/11/2015)


    djj (6/11/2015)


    eccentricDBA (6/11/2015)


    Eirikur Eiriksson (6/11/2015)


    Ed Wagner (6/11/2015)


    crookj (6/11/2015)


    ZZartin (6/11/2015)


    Bottle

    Rum

    Running

    quirky

    Qt

    cutie

    QT?

    One Way

    Communication

    Cycle

    Motorcycle

    Emptiness

    Void

  • RE: Today's Random Word!

    djj (6/11/2015)


    eccentricDBA (6/11/2015)


    Eirikur Eiriksson (6/11/2015)


    Ed Wagner (6/11/2015)


    crookj (6/11/2015)


    ZZartin (6/11/2015)


    Bottle

    Rum

    Running

    quirky

    Qt

    cutie

    QT?

  • RE: help in making a query is required

    There's a duplicate post at http://www.sqlservercentral.com/Forums/Topic1693743-3077-1.aspx with a solution that worked.

  • RE: help in making query

    drew.allen (6/11/2015)


    Also, IMNSHO you should almost never use spaces in column or table names.

    +1000.

    Is this homework? I'm asking because you have things in your OP that don't make sense....

Viewing 15 posts - 5,806 through 5,820 (of 9,399 total)