Forum Replies Created

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

  • 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...

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

    Jeff Moden (2/22/2016)


    MMartin1 (2/22/2016)


    Are there industry standard documentation that specifically addresses the correct way to handle this?

    The only one I know is that you must do requirements gathering from your...

  • RE: thinking about Procedure vs trigger

    I would point you to Jeff Moden post and see his link on how to post code problems. It would help us to better help you if you read through...

  • RE: Connection to AS from Excel problem

    You can also check with IT that there is no obscure group policy that prohibits these connections. Though more likely I would see that the service is running on the...

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

    Are there industry standard documentation that specifically addresses the correct way to handle this?

    The only one I know is that you must do requirements gathering from your team/client on how...

  • RE: Count of Records in a Table by Military Time.

    Here is what I came up with

    if object_id('#temp2') is not null

    drop table #temp2;

    create table #temp2 (rowNum tinyint, timein int)

    insert into #temp2

    select 1, '0800' union all...

  • RE: Count of Records in a Table by Military Time.

    cast(replace(left(cast((timein/100) as varchar(5)),2),'.','') as int) as hour_ini

    If you are doing timein/100 , isnt the timein column already in integer format? It seems you are converting from integer to string and...

  • RE: case when error in sqlserver

    updateadmin

    set [add]= CASE WHEN uname = 'jain' THEN 1 ELSE [add] END

    ,[ADD] = CASE WHEN uname='baiju' THEN 1 ELSE [edit] END

    whereuname IN ('jain', 'baiju')

    This only gets the unames...

  • RE: thinking about Procedure vs trigger

    example 1

    application have to get data

    procedure in application with timer with parameter will select 1row from Table1

    Why only select one row? Why table1 only? I still dont understand the full...

  • RE: Sub query where clause returns nothing

    Does this return anything that looks like what you may want ?

    select t1.[StockCode], t1.[SalesOrder], t1.[SalesOrderLine], t1.[LotNumber], t1.[Customer],

    t2.[ShipDate]

    --from table t1

    from (select [StockCode], [SalesOrder], [SalesOrderLine], [LotNumber], [Customer]

    from

    where...

  • RE: Sub query where clause returns nothing

    spin (2/17/2016)


    Thanks for the replies..

    perhaps i should have given my final expectations...

    i have 2 tables which i'm trying to join. I know the lot exists under the conditions in the...

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