tsql - Limiting the number of updated/deleted rows in SQL Server Management Studio -


it easy make mistakes when comes update , delete statements in sql server management studio. can delete way more want if had mistake in where condition or, worse, delete whole table if mistakenly write expression evaluates true time.

is there anyway disallow queries affects large number of rows within sql server management studio? know there feature in mysql workbench, couldn't find in sql server management studio.

no.

it responsibility ensure that:

  • your data backed up, can restore data after making inadverdent changes.
  • you not writing new query scratch , executing directly on production database without testing first.
  • you execute query in transaction, , review changes before committing transaction.
  • you know how filter query avoid issuing delete/update statement on entire table. if in doubt, issue select * or select count(*)-statement first, see records affected.
  • you don't rely on silly feature in front-end might save @ times, screw on @ other times.

Comments

Popular posts from this blog

java - Oracle EBS .ClassNotFoundException: oracle.apps.fnd.formsClient.FormsLauncher.class ERROR -

c# - how to use buttonedit in devexpress gridcontrol -

nvd3.js - angularjs-nvd3-directives setting color in legend as well as in chart elements -