My Work
My Blogs
Hotlinks
Tag Archives: SQL
Today I took 30 minutes to save hours
UPDATE – 1/6/2011 : Since writing this post I have bundled this entire reset process into a single windows batch file. In addition to restoring my database, I also have to remove temp files from my server, so it was … Continue reading
Posted in database, development, SQL, tips and tricks
Tagged automation, backup, bat, batch, batch file, cli, cmd, command line, cursor, DECLARE, del, exec, fetch, fetch_status, information_schema, kill, restore, sproc, SQL, sqlcmd, sys, tsql, workflow
Leave a comment
Selecting random ids using TOP and a CTE
While testing visualizations in a Flex application, I needed to do some underlying data cleanup in SQL Server. One of my tasks was to manually update an entity table and set the status column to one of three possibilities. Status … Continue reading
Posted in database, SQL, tips and tricks, tsql
Tagged common table expression, cte, mssqlserver, SQL, sql server, SQLSERVER, top, tsql
Leave a comment
Use SQL to insert a label in front of a DataBound list
Here’s a clever little solution I would like to add to the book of ‘get it done’. While this particular example uses ASP.NET controls, this concept really applies to any language that supports DataBinding to a control. The base concept … Continue reading
