Justin Cooney

Web Development Tips and Examples

Category: SQL Tips

  • When you are working with Active Directory on your network, then it can be difficult to get a clear picture for how your particular instance of Active Directory is structured. I’ve been writing T-SQL LDAP queries using ADSI OPENQUERY and have been having fun trying to find where some of the values I’m looking for are…

  • In this article  I will expand on an article I wrote earlier about how to search through all of the columns in each table in your database for a particular piece of information. In the example in this article I have: Modified my previous example query to search through columns of all datatypes rather than…

  • If you have several different versions of the same database then you will want to be able to check for differences in the objects between the databases. You can quickly and easily do so using SQL Server’s sys.objects or if you are specifically looking up stored procedures, SQL Server’s sys.procedures system views. Let’s take an example use case…