Friday, June 17, 2011
SQL Server 2008 and 2008 R2 Integration Services - Consuming Web Services Using Script Task
http://www.databasejournal.com/features/mssql/sql-server-2008-web-services-script-task.html
Monday, May 9, 2011
Use ACE Drivers and PowerShell to Talk to Access and Excel
http://blogs.technet.com/b/heyscriptingguy/archive/2011/05/04/use-ace-drivers-and-powershell-to-talk-to-access-and-excel.aspx
Thursday, May 5, 2011
Obtaining Identity Column Values in SQL Server
http://www.databasejournal.com/features/mssql/article.php/3931466/Obtaining-Identity-Column-Values-in-SQL-Server.htm
Tuesday, May 3, 2011
SQL Server Foreign Key Update and Delete Rules
http://www.mssqltips.com/tip.asp?tip=2365
Thursday, September 2, 2010
How Old Are Your Database Statistics?
http://www.sqlservercentral.com/blogs/glennberry/archive/2010/8/30/how-old-are-your-database-statistics_3F00_.aspx
Wednesday, May 19, 2010
Geocode Addresses in T-SQL
- Means to interoperate with web-based mapping services
- Means to interoperate with GPS devices
- Makes it possible to calculate distance between addresses
- Makes geospatial analysis possible (i.e. identifying geographically similar addresses, etc.
- Compact way to represent a geographical location
- And more...
Monday, April 26, 2010
Map IP Address to a Geographical Location
Wednesday, April 21, 2010
Reporting Services Disaster Recovery
Friday, January 29, 2010
Laying out SQL Code
Friday, January 15, 2010
Database Indexing Development Lifecycle...Say What?
Monday, January 4, 2010
Using SSIS to zip files and email the zipped files
Thursday, July 9, 2009
Map IP Address to a Geographical Location
Thursday, June 18, 2009
Use Backup/Restore to Minimize Upgrade Downtimes
As a SQL Server professional, at some point in your career, you will need to upgrade between versions of SQL Server, or move a database from an older server onto a newer one. There are quite a few different ways to go about doing this, the most common being; Detach/Copy/Attach and Backup/Restore. When downtime is acceptable, either of these methods can get the job done, the only caveat being that if you are performing a upgrade to a newer version of SQL Server and you decide to use Detach/Copy/Attach to upgrade the databases that you still should take a backup of the database before moving it so that you have a point to fall back top. Once you attach the database files to the newer version they will be upgraded internally and will no longer be able to be used on the older version.
If time is of the essence during the migration, and downtime must be minimized, the best approach will depend on the size of the database being upgraded. For a database that is under 4GB in size, it may be acceptable to still do a Detach/Copy/Attach move of the database, but for a database that is 40GB in size, the time it takes to copy the files to the newer server could exceed the allowable downtime for the system. If the database is 400GB, it will most certainly take to long to move the database by Detach/Copy/Attach. In this case the best path to migration/upgrade is to work with Backup/Restore.
Thursday, June 4, 2009
Calling a Web Service from within SQL Server
Backup Monitoring and Reporting
Wednesday, May 20, 2009
Creating a recycle bin for SQL Server 2005\2008
Recently while being shown around Oracle 10G (yes I said the 'O' word) I noticed that this product has a recycle bin. This recycle bin which stores only dropped tables falls under the Oracle flashback technology umbrella.
I was pretty sure I could do the same in SQL server using DDL triggers and schemas and prevent accidental drops of other objects as well. This article is the result of that challenge.
In a nutshell the SQL Server recycle bin is a combination of two schemas which act as bins (recycle bin and trash can) and a DDL trigger which determines which bin to place the dropped object (which is not dropped but renamed). A stored procedure (sp_undrop) is used to revert the object to its original name and schema.
Tuesday, April 28, 2009
Comparison of Dates in SQL
Thursday, April 9, 2009
Collecting performance counters and using SQL Server to analyze the data
Wednesday, April 8, 2009
Database level permissions for SQL Server 2005 and 2008
SQL Server 2005 introduced a new concept to SQL Server security and permissions: securables. Securables are anything within SQL Server that can have a permission assigned. One such securable is the database.
Tuesday, April 7, 2009
Exploring SQL Server 2008’s Filtered Indexes
One of the most interesting features in SQL Server 2008 is filtered indexes. Let’s start with a quick explanation and then dig into the details and results.
A filtered index is simply an index with a WHERE clause. For example, if you have a table where a date is NULL in 90% of the records but you need to be able to find only records with a non-NULL date, a filtered index will have only the 10% that are not NULL.
It can be very useful for saving space, saving index maintenance costs, and making queries run faster. However, it is important to understand under whatcircumstances it will make your query faster.
