Skip to main content

Capturing STDERR output from SQLCMD.exe

Today while working with a .bat file full of SQLCMDs with really verbose output, I wanted just to capture error messages that were being sent to STDERR without changing the .sql files. I know how to capture/redirect handles in a variety of programming languages, but I haven’t tried to do this in a windows command […]

Architecting Service Broker Applications

Microsoft have released a whitepaper on Architecting SQL Server 2005 Service Broker Applications. The whitepaper focuses on when its appropriate to use Service Broker, design aspects for message flow and processing, availability, and infrastructure. I think its an excellent view of Service Broker implementation from a medium-high level, with discussion of the methods used, without […]

SQLIOSim Tool Released

Microsoft have released their SQLIOSim Tool for stress testing IO subsystems. Different from the SQLIO tool which is tests IO throughput. The tool is designed to simulate the effects SQL Server would have on disk subsystems. It includes options for testing multiple files; random OLTP style queries; read aheads; bulk inserts; checkpoints; rollbacks; backup; sort; […]

Count the Occurrence of a Phrase or Word in a Column (SQL Server 2005)

Simple little bit of code that will show you the number of times the value of @PhraseOrWordToCount is found in TextColumn. SELECT (LEN(TextColumn) – LEN(REPLACE(TextColumn, @PhraseOrWordToCount, ”)) / LEN(@PhraseOrWordToCount)) AS Occurrence FROM dbo.MyTable I noticed this on Simon Sabin’s blog, I think it has more applications than just FullText searches so I thought I’d do […]

Moving a TFS V1.0 Sharepoint Site

Continuing on with [story:sqlserver2005-mirroring-tfs]. If you needed to make changes to your TFS Sharepoint deployment, v1.0 options are very limited. Microsoft do have a TechNote on configuring TFS to use a Remote SharePointServer. The good news is that the next version should have a lot more configuration options.