Delete all tables in sql database
Hi all, Recently I encountered a bizarre request, I had to delete all the tables from an Sql database. The reason is even more bizarre. The client had a system auto creating them without making sure if...
View ArticleNumber of open connections SQL server
Hi all, Normally, when you’re coding on a website or a system you’re probably using connection to an SQL server database. When you are the coder or you are a consultant coming to a company to check the...
View ArticleIsDBNull generic shortcut function
Hey all, If you’re working with data from an SQL database or from any other database for that matter you probably know the exception cause by calling the reader["columnName"] This exception is...
View ArticleExecute a T-Sql statement on all Databases – Sql Server
Sometimes, you may want to execute a single statement (t-sql) on all of your databases. I had this issue about a week ago, I needed to change my users table on all databases. Because all of my tables...
View ArticleBackup all databases (SQL Express) with a single T-Sql
I’m using SQL Express 2008 for development on my development machines, I’m saving the full version for the servers and not on development. One of the things I often see when people talk about the...
View Article
More Pages to Explore .....