SQL Server Conversion error numeric to varchar : One server return an error and other server does not return an error -
i have stored procedure has
invalid conversion error numeric varchar.
this wasn't give error message despite having same issue in stored procedure. after server's vm host failure on yesterday, same stored procedure gave conversion error. restored backup in different sql server , sp not give error despite having conversion error.
- how behave differently in 2 servers?
- is there possibility automatically change sql server's default settings after vmware host failure ?
your's comments highly appreciated on this
you can use transaction management in store procedure manage transaction code , control try block. when occur error rollback transaction , rise error you
begin try begin transaction sql statement.....; commit transaction end try begin catch catach statement....; end catch
Comments
Post a Comment