Forum Replies Created

Viewing 15 posts - 76 through 90 (of 373 total)

  • RE: error:The parameterized query '(@param1 int,@Paramout int OUTPUT)' expects the parameter '@Paramout', which was not supplied.

    What is the error message you are receiving?

    Kurt

    Kurt W. Zimmerman
    SR DBA
    Lefrak Organization
    New York, NY

    http://www.linkedin.com/in/kurtwzimmerman

  • RE: I No Longer Have Access to My DB and I'm a DBCreator!

    Hummm... If I knew this was 2012 specific then I would have probably not attempt to run it. Here is my result when running it in SS2K8R2

    --run this in...

    Kurt W. Zimmerman
    SR DBA
    Lefrak Organization
    New York, NY

    http://www.linkedin.com/in/kurtwzimmerman

  • RE: Options for storing .jpg files on SQL Server 2008 R2

    Sean Lange (1/21/2014)


    Another option is to store the images in a varbinary(max) column. There are advantages and disadvantages to any of these options.

    Kurt mentioned something about storage. Honestly, the storage...

    Kurt W. Zimmerman
    SR DBA
    Lefrak Organization
    New York, NY

    http://www.linkedin.com/in/kurtwzimmerman

  • RE: Options for storing .jpg files on SQL Server 2008 R2

    Although I've never had the opportunity to store .JPGs in a database the construct you are looking for is FILESTREAM. I'd suggest you read up on it in BOL.

    One...

    Kurt W. Zimmerman
    SR DBA
    Lefrak Organization
    New York, NY

    http://www.linkedin.com/in/kurtwzimmerman

  • RE: How to check wheter a value is whole number or in fraction

    Back before we had all of these fancy functions I used this method:

    DECLARE @number AS NUMERIC(4,2) ; SELECT @number = 2.99;

    print @number;

    if cast(@number as int) = @number

    begin

    Print 'whole number'

    end

    else

    print 'has...

    Kurt W. Zimmerman
    SR DBA
    Lefrak Organization
    New York, NY

    http://www.linkedin.com/in/kurtwzimmerman

  • RE: Cursor fetch loops endlessly

    Lynn Pettis (1/10/2014)


    If you are routinely using cursors in your production code you are more than likely doing things wrong. Cursors should be avoided for most database activity. ...

    Kurt W. Zimmerman
    SR DBA
    Lefrak Organization
    New York, NY

    http://www.linkedin.com/in/kurtwzimmerman

  • RE: how to differentiate between two tables sharing the same name but belonging to different databases

    GilaMonster (1/13/2014)


    The only time I'll use three-part naming is when I know that I need to be crossing databases. Otherwise 2-part naming's fine.

    I agree with you Gail. Sprocs that...

    Kurt W. Zimmerman
    SR DBA
    Lefrak Organization
    New York, NY

    http://www.linkedin.com/in/kurtwzimmerman

  • RE: How to get net sales from these table?

    What code do you have so far? Maybe I can assist your issues.

    Kurt

    Kurt W. Zimmerman
    SR DBA
    Lefrak Organization
    New York, NY

    http://www.linkedin.com/in/kurtwzimmerman

  • RE: Today's Random Word!

    Revenant (1/9/2014)


    whereisSQL? (1/9/2014)


    crookj (1/9/2014)


    WOTD - Tautological

    Redundant

    fail-safe

    dead-man

    Kurt W. Zimmerman
    SR DBA
    Lefrak Organization
    New York, NY

    http://www.linkedin.com/in/kurtwzimmerman

  • RE: How To make code for these Table?

    What do you have so far? It may be easier to see what you are developing and to see your issue.

    Kurt

    Kurt W. Zimmerman
    SR DBA
    Lefrak Organization
    New York, NY

    http://www.linkedin.com/in/kurtwzimmerman

  • RE: Convert SQL Server Date to DD/MM/YY

    Your first post indicated you wanted a 2 digit year. Your solution provides you a 4 digit year. Just saying.

    Kurt

    Kurt W. Zimmerman
    SR DBA
    Lefrak Organization
    New York, NY

    http://www.linkedin.com/in/kurtwzimmerman

  • RE: Convert SQL Server Date to DD/MM/YY

    I came up with something like this:

    declare @SSDate datetime = '01/22/2001'

    declare @CharSSDate varchar(10)

    set @CharSSDate = right('0' + cast(MONTH(@SSDate) as varchar(2)),2) + '/' + right('0' + cast(DAY(@SSDate) as varchar(2)),2) +...

    Kurt W. Zimmerman
    SR DBA
    Lefrak Organization
    New York, NY

    http://www.linkedin.com/in/kurtwzimmerman

  • RE: Today's Random Word!

    Ed Wagner (1/6/2014)


    Revenant (1/6/2014)


    Kurt W. Zimmerman (1/6/2014)


    JAZZ Master (1/6/2014)


    crookj (1/6/2014)


    BWFC (1/6/2014)


    racing

    Ben

    Big

    Data

    Point

    Time

    jiffy

    Kurt W. Zimmerman
    SR DBA
    Lefrak Organization
    New York, NY

    http://www.linkedin.com/in/kurtwzimmerman

  • RE: Today's Random Word!

    JAZZ Master (1/6/2014)


    crookj (1/6/2014)


    BWFC (1/6/2014)


    racing

    Ben

    Big

    Data

    Kurt W. Zimmerman
    SR DBA
    Lefrak Organization
    New York, NY

    http://www.linkedin.com/in/kurtwzimmerman

  • RE: select YearMonth only

    Is this something you are looking for?

    declare @InDate datetime = getdate()

    declare @sInDate varchar(20)

    set @sInDate = cast(YEAR(@InDate)as varchar) + '-' + left(CONVERT(varchar(20),@indate, 100),3)

    Kurt W. Zimmerman
    SR DBA
    Lefrak Organization
    New York, NY

    http://www.linkedin.com/in/kurtwzimmerman

Viewing 15 posts - 76 through 90 (of 373 total)