Forum Replies Created

Viewing 15 posts - 196 through 210 (of 434 total)

  • RE: How to add leading zeros?

    take the quotes off the ends

    =RIGHT(TEXT(A1, "0000000"), 7)

  • RE: Truncation of Output Variable

    Sorry I forgot to put this after the exec statement

    print @theoutput

    I don't get the stuff in the messages tab that you do but the print statement will return the output...

  • RE: Truncation of Output Variable

    To narrow this down..

    can you create this procedure

    create procedure dbo.stp_testovlimit

    @myinput varchar(50),

    @myoutput varchar(50)output

    as

    select @myoutput = @myinput

    select @myinput

    --and run this

    begin

    declare @theoutput varchar(50)

    exec stp_testovlimit 'The quick brown fox jumped over the lazy...

  • RE: Truncation of Output Variable

    wasn't this part of the SP

    SELECT ISNULL(Description, '') AS Description

    FROM JudicialServicesPersonnelTypes

    WHERE PersonnelType = @PersonnelType

    and returned the whole value? Is this just happenning with output variables?

  • RE: Truncation of Output Variable

    ok so what version of SQL (7 or 2000) what is the OS and waht are the SPs for both?

  • RE: Nested While within an If statement

    I added 2 ENDs

    one right before the ELSE and one at the very end.

    I tried to space it out so it was legible but the spaces got removed from the...

  • RE: Difference between 2000 and 2005 for text data type!!!

    Why wouldn't you use join synatx?

  • RE: Nested While within an If statement

    Every Begin needs and END

    If (expr goes here)

    BEGIN

    WHILE Var1 < Var2

    ...

  • RE: Truncation of Output Variable

    Just for S&G what happends if you declare the output as char(100) instead of char(50)?

  • RE: Conversion Error

    usually this is caused by an errant space in the cell.

    First you can try trimming the data before you cast it.

    To find the row with the issue try...

  • RE: Truncation of Output Variable

    In QA under Tools-ptions-results, what is your max characters per column set at?

    If you run

    select 'Retired Supreme Court Associate Justice'

    what do you get?

  • RE: Indexing question

    Matt- At one point in time the table allowed for a formatted phone number xxx-xxx-xxxx. It is not used so I think could change it to char(10) or numeric....

  • RE: Indexing question

    Sergiy, I looked up hash joins in BOL and while there were good descriptions there were no examples. I did write a version of the query that got rid...

  • RE: Indexing question

    I'm not sure I explained the process well since I started with an abstract question and now we are moving to my specific issue. Here we go.

    We have a...

  • RE: Indexing question

    The DNC comes as a flat text file of telephone numbers. We have to match it up against our database of customers and mark them as unable to call...

Viewing 15 posts - 196 through 210 (of 434 total)