Using SSMS to Script Out Data

A while back, I saw the following tweet mentioning that you can’t script out data from SQL Server tables. https://twitter.com/cliff_77/statuses/2521180719 It turns out, though, that you can do this.  And as long as you are using SQL Server Management Studio 2008 or higher, you have access to the tools necessary.  To demonstrate, I’ll walk through the steps … Continue reading Using SSMS to Script Out Data

Troubleshooting Permission Issues with CREDENITIALS

I keep hearing this story and similar variations… ”On a dark and stormy night, I developed a SQL Server Integration Services (SSIS) package.  It worked wonderfully on my desktop development environment.  All the files were properly accessed and the data was processed in a magnificent matter.” ”But suddenly I deployed the SSIS package to production … Continue reading Troubleshooting Permission Issues with CREDENITIALS

UPDATE – ORDER BY and Deadlocking

I was working on a deadlocking issue a few days ago at a client  The transaction that  was continuously getting deadlocked utilized three SQL statements to checkout and return rows from a queue for the client’s application. Before going into the problem here’s a little code to setup the tables for the examples: The SQL … Continue reading UPDATE – ORDER BY and Deadlocking

Find Duplicate Foreign Keys

A few weeks back I was working on a process that would utilize foreign keys to crawl from table to table to export data from a production database to an archive database.  More on some of what went into that process probably at some point in the future. When the project was released to production … Continue reading Find Duplicate Foreign Keys