Forum Replies Created

Viewing 11 posts - 286 through 297 (of 297 total)

  • RE: SQL Statement not displaying results with zero value

    It occurs to me that there may not be an Exhibit_Discount record for products where the discount is zero. If that's the case, you'll need a left outer join to...

  • RE: Shopping Cart Status Change

    You could do something like the following to update the Cart status after each update of an order item.

    update Cart

    set Status = OverallStatus

    from Cart inner join

    (Select Cart2.CartNumber,

    case when sum(Orders.PickStatus) =...

  • RE: Execute Permission Problem on Stored Procedure

    Sorry, yes I did check for triggers and there aren't any (not visible to my login anyway - I'll ask a server admin to check for me).

  • RE: Execute Permission Problem on Stored Procedure

    The stored procedure really is in the same database as the tables; most of our stored procedures use the 3-part name because some operate across more than one database and...

  • RE: Execute Permission Problem on Stored Procedure

    The table(s) and stored procedure are definitely in the same database and that is the same database specified by the application when it opens the connection. We've tried explicitly granting...

  • RE: Execute Permission Problem on Stored Procedure

    Thanks for your response. The error we're getting is shown in the attachment; not much detail as it's being displayed by an old VB6 program. The stored procedure just does...

  • RE: Execute Permission Problem on Stored Procedure

    No, it's a member of the db_datareader role and the only other permission is the Execute on dbo.

  • RE: Need to write a select query to pull required data from 3 tables.

    This works with the data provided.

    Selectdistinct

    a.EmplID,

    Case when c.EmpID is null then b.Designation else c.Designations End as [Role]

    from #EmpIDs a

    inner join #EmpRoles b on a.EmplID = b.EmpID

    left outer join #LatestRoles c...

  • RE: VBS - ADODB 3709 error

    My 2 penn'orth; I think the error you're getting is from an attempt to execute the stored proc with a connection that isn't open so you're not seeing the message...

  • RE: Avoiding Cursors

    We need to copy some columns for new and amended clients from an in-house database to a 3rd-party one. The original process involved copying the data to an intermediate database...

  • RE: Slow Query Issue...

    I would try;

    select distinct top 100

    i.invoice_id, i.buyer_code, i.submit_time, i.request_id

    from

    dbo.invoice i

    inner join dbo.invoice_adj ia on i.invoice_id = ia.invoice_id and ia.amount !=0

    left outer join dbo.invoice_detail iad on i.invoice_id = iad.invoice_id

    left...

Viewing 11 posts - 286 through 297 (of 297 total)