Programming Code Examples

How Fill Factor Can Affect Performance

Fill factor determines the percentage of space to leave open for new data added in an index. Changing the fill factor value from the default of 0 (no space left open) can help in rare cases with performance problems. In...

SQL Backup to Multiple Files

I recently had a project that required uploading a large database to an FTP server. Sounds simple enough except that each folder on the FTP server had a size limit on file uploads. Uploading one database backup that...

Truncate vs Delete in SQL Server

There is always a new beginning when we get rid of the obsolete /unused /wrong data . True to the saying ‘To err is human’ , we always come across some data correction in our tables .Its always quite frustrating to see...

Methods to find Table Structure in SQL

Most of the times while working with SQL server ,we are definitely dealing with lots of tables and it is quite straight forward that the data in SQL server are stored in the form of tables .Then it is pretty necessary...

Fun with Commenting codes in SQL Server

If a working code is interesting then a code that doesn’t work is much fascinating . I have got one question . Where does commenting using – – or /* */ doesn’t work in SQL server? It is pretty good question to think ...

C# Comments

C# comments (or comments in any programming language, for that matter) are pieces of text that you add to a program in order to communicate something to a human reader. That’s pretty much it. The compiler ignores...

PHP echo variable with HTML tags

How to use HTML tags in PHP echo? Example 1: This example demonstrates that how HTML tags and variable can be used in  PHP echo to display the result. <!DOCTYPE html> <html> <body> <?php $name =...