Results 1 to 2 of 2

Thread: [Microsoft][ODBC SQL Server Driver]Timeout expired

  1. #1
    Mike Thomason Guest

    [Microsoft][ODBC SQL Server Driver]Timeout expired

    Thank you to all who reply to this perplexing question.
    Mike

    Database \VMFGSRVRVMFG is SQL 2000 Std.
    Database \NT002P_GL is SQL 7.0.
    All SQL versions are at the current SP levels.

    I receive the timeout message when I am in EM,
    database,VMFG(database), Views, Open View, Return All
    Rows. I can successfully run the code in QA. I believe I
    am running up against a time parameter in SQL Server. I
    have reviewed all time parameters that I can find.
    However, I still receive the error. What parameters should
    I be looking at? I am attempting to create a view with the
    following code:
    --------------
    CREATE view uv_olap_adj_co_profit as
    select customer.id as customer_number,
    customer.name as customer_name,
    customer_order.salesrep_id as salesperson,
    isnull(customer.country, 'USA&#39 as country,
    '7' as business_unit,
    customer_order.order_type as order_type,
    uv_olap_co_profit.customer_order,
    uv_olap_co_profit.work_order,
    uv_olap_co_profit.close_date,
    uv_olap_co_profit.period_year,
    uv_olap_co_profit.gl_period,
    isnull((uv_olap_co_profit.billing + ut_man_adj.billing)
    *ut_fin_adj.billing,
    uv_olap_co_profit.billing*ut_fin_adj.billing) as billing,
    isnull((uv_olap_co_profit.material_cost +
    ut_man_adj.material)*ut_fin_adj.material,
    uv_olap_co_profit.material_cost*ut_fin_adj.materia l) as
    material,
    isnull((uv_olap_co_profit.labor_cost + ut_man_adj.labor)
    *ut_fin_adj.labor,
    uv_olap_co_profit.labor_cost*ut_fin_adj.labor) as labor,
    isnull((uv_olap_co_profit.burden_cost + ut_man_adj.burden)
    *ut_fin_adj.burden,
    uv_olap_co_profit.burden_cost*ut_fin_adj.burden) as
    burden,
    uv_olap_co_profit.service_cost as service
    from uv_olap_co_profit,
    ut_man_adj,
    ut_fin_adj,
    customer_order,
    customer
    where uv_olap_co_profit.customer_order *=
    ut_man_adj.cust_order_id and
    uv_olap_co_profit.work_order *= ut_man_adj.work_order and
    uv_olap_co_profit.period_year = ut_fin_adj.year and
    uv_olap_co_profit.customer_order = customer_order.id and
    customer_order.customer_id = customer.id and
    (customer_order.salesrep_id = 'LABELAIREP' or
    customer_order.salesrep_id = 'OMOHUNDR' or
    customer_order.salesrep_id = 'EGGERSR&#39
    union all
    select customer.id as customer_number,
    customer.name as customer_name,
    customer_order.salesrep_id as salesperson,
    isnull(customer.country, 'USA&#39 as country,
    customer.user_2 as business_unit,
    customer_order.order_type as order_type,
    uv_olap_co_profit.customer_order,
    uv_olap_co_profit.work_order,
    uv_olap_co_profit.close_date,
    uv_olap_co_profit.period_year,
    uv_olap_co_profit.gl_period,
    isnull((uv_olap_co_profit.billing + ut_man_adj.billing)
    *ut_fin_adj.billing,
    uv_olap_co_profit.billing*ut_fin_adj.billing) as billing,
    isnull((uv_olap_co_profit.material_cost +
    ut_man_adj.material)*ut_fin_adj.material,
    uv_olap_co_profit.material_cost*ut_fin_adj.materia l) as
    material,
    isnull((uv_olap_co_profit.labor_cost + ut_man_adj.labor)
    *ut_fin_adj.labor,
    uv_olap_co_profit.labor_cost*ut_fin_adj.labor) as labor,
    isnull((uv_olap_co_profit.burden_cost + ut_man_adj.burden)
    *ut_fin_adj.burden,
    uv_olap_co_profit.burden_cost*ut_fin_adj.burden) as
    burden,
    uv_olap_co_profit.service_cost as service
    from uv_olap_co_profit,
    ut_man_adj,
    ut_fin_adj,
    customer_order,
    where uv_olap_co_profit.customer_order *=
    ut_man_adj.cust_order_id and
    uv_olap_co_profit.work_order *= ut_man_adj.work_order and
    uv_olap_co_profit.period_year = ut_fin_adj.year and
    uv_olap_co_profit.customer_order = customer_order.id and
    customer_order.customer_id


  2. #2
    MAK Guest

    [Microsoft][ODBC SQL Server Driver]Timeout expired (reply)

    I came in to this situation before. create index on the view or table where u r querying thru EM.

    it will work like a champ.




    ------------
    Mike Thomason at 5/29/2002 1:27:59 PM

    Thank you to all who reply to this perplexing question.
    Mike

    Database \VMFGSRVRVMFG is SQL 2000 Std.
    Database \NT002P_GL is SQL 7.0.
    All SQL versions are at the current SP levels.

    I receive the timeout message when I am in EM,
    database,VMFG(database), Views, Open View, Return All
    Rows. I can successfully run the code in QA. I believe I
    am running up against a time parameter in SQL Server. I
    have reviewed all time parameters that I can find.
    However, I still receive the error. What parameters should
    I be looking at? I am attempting to create a view with the
    following code:
    --------------
    CREATE view uv_olap_adj_co_profit as
    select customer.id as customer_number,
    customer.name as customer_name,
    customer_order.salesrep_id as salesperson,
    isnull(customer.country, 'USA&#39 as country,
    '7' as business_unit,
    customer_order.order_type as order_type,
    uv_olap_co_profit.customer_order,
    uv_olap_co_profit.work_order,
    uv_olap_co_profit.close_date,
    uv_olap_co_profit.period_year,
    uv_olap_co_profit.gl_period,
    isnull((uv_olap_co_profit.billing + ut_man_adj.billing)
    *ut_fin_adj.billing,
    uv_olap_co_profit.billing*ut_fin_adj.billing) as billing,
    isnull((uv_olap_co_profit.material_cost +
    ut_man_adj.material)*ut_fin_adj.material,
    uv_olap_co_profit.material_cost*ut_fin_adj.materia l) as
    material,
    isnull((uv_olap_co_profit.labor_cost + ut_man_adj.labor)
    *ut_fin_adj.labor,
    uv_olap_co_profit.labor_cost*ut_fin_adj.labor) as labor,
    isnull((uv_olap_co_profit.burden_cost + ut_man_adj.burden)
    *ut_fin_adj.burden,
    uv_olap_co_profit.burden_cost*ut_fin_adj.burden) as
    burden,
    uv_olap_co_profit.service_cost as service
    from uv_olap_co_profit,
    ut_man_adj,
    ut_fin_adj,
    customer_order,
    customer
    where uv_olap_co_profit.customer_order *=
    ut_man_adj.cust_order_id and
    uv_olap_co_profit.work_order *= ut_man_adj.work_order and
    uv_olap_co_profit.period_year = ut_fin_adj.year and
    uv_olap_co_profit.customer_order = customer_order.id and
    customer_order.customer_id = customer.id and
    (customer_order.salesrep_id = 'LABELAIREP' or
    customer_order.salesrep_id = 'OMOHUNDR' or
    customer_order.salesrep_id = 'EGGERSR&#39
    union all
    select customer.id as customer_number,
    customer.name as customer_name,
    customer_order.salesrep_id as salesperson,
    isnull(customer.country, 'USA&#39 as country,
    customer.user_2 as business_unit,
    customer_order.order_type as order_type,
    uv_olap_co_profit.customer_order,
    uv_olap_co_profit.work_order,
    uv_olap_co_profit.close_date,
    uv_olap_co_profit.period_year,
    uv_olap_co_profit.gl_period,
    isnull((uv_olap_co_profit.billing + ut_man_adj.billing)
    *ut_fin_adj.billing,
    uv_olap_co_profit.billing*ut_fin_adj.billing) as billing,
    isnull((uv_olap_co_profit.material_cost +
    ut_man_adj.material)*ut_fin_adj.material,
    uv_olap_co_profit.material_cost*ut_fin_adj.materia l) as
    material,
    isnull((uv_olap_co_profit.labor_cost + ut_man_adj.labor)
    *ut_fin_adj.labor,
    uv_olap_co_profit.labor_cost*ut_fin_adj.labor) as labor,
    isnull((uv_olap_co_profit.burden_cost + ut_man_adj.burden)
    *ut_fin_adj.burden,
    uv_olap_co_profit.burden_cost*ut_fin_adj.burden) as
    burden,
    uv_olap_co_profit.service_cost as service
    from uv_olap_co_profit,
    ut_man_adj,
    ut_fin_adj,
    customer_order,
    where uv_olap_co_profit.customer_order *=
    ut_man_adj.cust_order_id and
    uv_olap_co_profit.work_order *= ut_man_adj.work_order and
    uv_olap_co_profit.period_year = ut_fin_adj.year and
    uv_olap_co_profit.customer_order = customer_order.id and
    customer_order.customer_id


Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •