Tag

Database

SQL Server Do's And Dont's

So, you are now the leader of a SQL Server based project and this is your first one, perhaps migrating from Access. Or maybe you have performance problems with your SQL Server and don’t know what to do next. Or maybe you simply want to know of some design guidelines…

Advance SQL Injection

There are a lot of web site attacking method now a days, one of the most attacking method that we can easily found is the SQL Injection. First of all, before you know about the SQL Injection, you may need to know what is SQL. Structured Query Language (‘SQL’) is…

Insert multiple record into table

In SQL, basically there are two ways to Insert data into a table; one is insert it one row per time, another way is insert multiple rows at a times. For the first method (insert one row per time) is the most common way to insert data into database that…

Get the number of row in database table

Normally to get the number of row for a particular table, where we will do is as the following query: select count(*) from Table_name Yes, you may get your result very fast if your table is very small, but if your table is more then 100k rows, then you may…

MS SQL Server – Index Optimization checklist

I believe all the DBA know that how important is “Index” in the database if you would like to optimize the database server performance. It maybe a pain for your server if you create the index wrongly. Here are some check lists on the index optimization that you should bear…