Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Defensive database programming- robust code with T-SQL?

In the application development there is a concept of defensive programming. How to implement defensive programming techniques and writing robust code using Transact-SQL?

like image 648
juur Avatar asked Jun 30 '26 11:06

juur


1 Answers

  • Simple Talk...
  • ...books
  • SQL Server Central
  • Alexander Kuznetsov (who is SO user AlexKuznetsov)

More generally

  • Understand TRY..CATCH and error handling
  • Datatype safety (no number compare against nvarchar for example)
  • Understand transactions
  • Consider stored procedures
  • Understand SQL injection
like image 63
gbn Avatar answered Jul 03 '26 03:07

gbn