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.

  1. how behave differently in 2 servers?
  2. 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

Popular posts from this blog

angularjs - ADAL JS Angular- WebAPI add a new role claim to the token -

php - CakePHP HttpSockets send array of paramms -

node.js - Using Node without global install -