Forum Replies Created

Viewing 15 posts - 571 through 585 (of 1,241 total)

  • RE: Help creating a SP

    SELECT @ORDER_NUMBER = i.ORDER_NUMBER, @ID = i.ST_ID, @Name = i.FULL_NAME, @Timestamp = i.ORDER_DATE

    from inserted i

    This above will fail whenever the application inserted more than one row as part of...

  • RE: Mid result in ssrs

    elamranii (3/7/2016)


    I put this but still getting an error:

    CDBL(MID(Fields!PRE_LAB_VAL.Value,INSTR(Fields!PRE_LAB_VAL.Value,"=")+1,INSTRREV(Fields!PRE_LAB_VAL.Value,"=") - INSTR(Fields!PRE_LAB_VAL.Value,"=")+1))

    Thank you.

    First , just to explain >

    CDBL(

    MID(

    Fields!PRE_LAB_VAL.Value,/* column to look in */

    INSTR(Fields!PRE_LAB_VAL.Value,"=")+1,/* position in the string to begin at */

    INSTRREV(Fields!PRE_LAB_VAL.Value,"=")...

  • RE: TRY_CONVERT large numbers

    Hugo Kornelis (3/4/2016)


    MMartin1 (3/2/2016)


    Without the try_convert function built in, I just did a simple

    select convert(varchar(1), 234523); and got back the asterisk. What the meaning was when deciding to do...

  • RE: TRY_CONVERT large numbers

    Without the try_convert function built in, I just did a simple

    select convert(varchar(1), 234523); and got back the asterisk. What the meaning was when deciding to do this, I do...

  • RE: Update value in table if value exists more than specified

    This does make more sense. How do you handle situations when all professors are maxed out and can take no more assignments? Create a new professor? If you provide create...

  • RE: Update value in table if value exists more than specified

    I would still not mind knowing how this applies to a real world situation. Or are we just solving a fun programming problem? I read you that you want us...

  • RE: Update value in table if value exists more than specified

    Raxter (2/25/2016)


    This is dummy data. I can not post the actual production data. The idea is that if a certain value is in the table more than a certain number...

  • RE: LAst date's for past 3 months

    Jeff Moden (2/24/2016)


    MMartin1 (2/24/2016)


    sharonsql2013 (2/23/2016)


    How can I show last days for past 3 months say..

    Jan 2016 (2016-01-31 23:59:59.000)

    , Dec 2015

    and Nov. 2015

    Need to be dynamic as it...

  • RE: Scrubbing Data - Good idea or bad idea?

    TeraByteMe (2/24/2016)


    Thanks for all the advice. They all would work well if there was any form of procedure and accountability in the company I work with.

    I started the job almost...

  • RE: LAst date's for past 3 months

    sharonsql2013 (2/23/2016)


    How can I show last days for past 3 months say..

    Jan 2016 (2016-01-31 23:59:59.000)

    , Dec 2015

    and Nov. 2015

    Need to be dynamic as it will change with...

  • RE: Update value in table if value exists more than specified

    They both need to be listed in the database 5 times each based on the specified value of 'BreedListed' that is = 5

    Why not both be 7, or three? What...

  • RE: SSIS Ado.net connection Update SQL

    bwinchester (2/14/2016)


    I understand what you are saying and I agree. I'm my situation, I am updating product information on a remote sql server with data from a local sql...

  • RE: Difference between sys.objects & sys.all_objects

    From MSDN >

    sys.objects

    Contains a row for each user-defined, schema-scoped object that is created within a database, including natively compiled scalar user-defined function.

    Notice it says "within a database."

    Further,

    sys.all_objects

    Shows the UNION of...

  • RE: How to find account number of bank from given records in table

    We cannot use extra columns in file.

    Maybe the person or persons that made this decision and decided to put you as the implementer should take on the task themselves.

    If...

  • RE: How to find account number of bank from given records in table

    ChrisM@Work (2/18/2016)


    Nikku (2/18/2016)


    Hi All

    I have two tables t1 & t2 which contains the same records. t1 is for bank1 & t2 is for bank2

    i.e t1

    accno name balance

    001000 a...

Viewing 15 posts - 571 through 585 (of 1,241 total)