Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Update stored procedure and Update Trigger ? Conflict

Status
Not open for further replies.

LTusing

Technical User
Oct 5, 2005
20
US
I have an update trigger for a table and a VB command procedure which calls an update sql proc for editing of table fields.

I am receiving an error message when updating fields noting that database is not available. However, if I delete the update trigger, and then populate the update command the update will occur, although I still receive the same message, 'unable to open database'. I am not sure of what would cause this problem and requesting your input. Thank you!
 
Instead of running your sql command from VB, print it to the debug window. Then use Query Analyzer to run the statement and see what results you get. If everything is okay, then back in VB, when the error occurs, look at not just the VB error object but also the ADO Connection.Errors collection, examining each ADO error. Often any errors past the first one are more informative.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top