Results 1 to 2 of 2

Thread: Stored Proceedures

  1. #1

    Thread Starter
    Junior Member
    Join Date
    May 1999
    Location
    Duluth
    Posts
    16

    Post

    Hello,

    I was wondering if anyone could tell me why my stored procedure that has updates to a table is not updating. My code looks like this:

    Dim rs As New ADODB.Recordset
    Dim conn As New ADODB.connection
    Dim cn As New ADODB.Command
    frmMaster.MousePointer = vbHourglass

    conn.Open "Provider=SQLOLEDB.1;Password=opsmill;Persist Security Info=True;User ID=millops;Initial Catalog=accum_orders;Data Source=CLQ_MILL_REPLIX"
    Set cn.ActiveConnection = conn
    cn.CommandType = adCmdStoredProc
    cn.CommandText = "accum_net_prod"
    cn.CommandTimeout = 900
    cn.Execute(adAffectAll)
    frmMaster.MousePointer = vbDefault
    conn.Close
    MsgBox ("Running the procedure is complete")

    It runs without any errors but the tables are not being update. I appreciate any help given. Thanks


  2. #2
    Lively Member
    Join Date
    Jan 1999
    Posts
    82

    Post

    Hi,

    Does your stored procedure work from the database itself? If you are not getting any errors then either your stored procedure is wrong or your user does not have the permission to do what you are asking it to do.

    HTH,

    Preeti

Posting Permissions

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



Click Here to Expand Forum to Full Width