Tree traversal data structure
Tree traversal is a systematic way of ordering the nodes of a tree. When you are going throw three traversal structure, you will visit each node exactly once. I use this method in work a few years ago...
View ArticleTree traversal data structure – stored procedures
In the first part of this article I wrote about tree traversal database structure. Now I want to show you how to prepare all stored procedures and triggers to be able to work with it effectively. From...
View ArticleExecute dynamic SQL in MSSQL
I hit this need when I was developing own custom module into Commerce Server. Commerce Server have all tables separated into catalogs. Catalog is group of tables which contains records for particular...
View ArticleOptimised way how to get country by IP
Some time ago I was developing project what reports all action of user on web site. I hit big number of problems, mainly performance problem. Biggest site had around 40,000 unique users each day. And...
View ArticleImport CSV into MSSQL database
This is really common task in any database project. You always need to get initial data into database. Maybe most common file format is CSV. We have CSV file in drive C: with name import.csv with...
View Article