Exporting VARCHAR MAX and NVARCHAR MAX to CSV
Learn how to deal with commas and new lines in CSV files that are destined for Excel. Use the REPLACE command to clean up your outfiles.
Read articleTechnical writing
52 articles, newest first. Browse by subject from the topic list.
Learn how to deal with commas and new lines in CSV files that are destined for Excel. Use the REPLACE command to clean up your outfiles.
Read articleWhen importing data from CSVs into Excel, some dates are not recognized as dates. Learn how to convert these dates to real Excel dates.
Read articleFind the IP addresses of running Hyper-V virtual machines from a single PowerShell command.
Read articleDisplay a PostgreSQL function definition from a psql prompt with pg_get_functiondef.
Read articleQuery pg_stat_activity to list active PostgreSQL sessions and connection details.
Read articleList MongoDB users, their databases, and assigned roles from the shell.
Read articleHere are a few date formats that I've found useful over the years.
Read articleDiscover how to find and examine the SQL Server Reporting Services log file.
Read articleThis month's TSQL Tuesday is hosted by Shane O’Neill (B/T). The challenge this month is to write about “Dipping back into the cookie jar” or using the memories of a past challenge or…
Read articleThis snippet is so nice, I'm posting it again! I've utilized the script below at least once a week, for either reports, or working with large data sets.
Read articleList all active directory groups for members of a target active directory group via Powershell script.
Read articleSee how to use built in stored procedures to grow the WorldWideImporters SQL Server database with new, current data.
Read articleI've written the script below at least once a month, for either reports, or working with large data sets.
Read articleI was recently asked if it is possible to display the results of a query / stored procedure in an SSIS Message box. The answer is Yes, with a bit of C#.
Read articleLearn how to recover the Report Data tab in SQL Server Reporting Services (SSRS)
Read articleYou can use a VB or C# message box to view the current value of a variable. No more guessing!
Read articleFor all the power of SQL Server, some things a still missing.
Read articleLearn how to enable .NET CLR on SQL Server.
Read articleIncorrect Syntax near go. We've all gotten this error before, but why does this happen? Watch a video explaining why you cannot use GO inside of sp_executesql
Read articleLearn where SQL Server Profiler saves your Templates.
Read articleLearn how to add a date printed and a page count in the footer of your SSRS report. Even if you have errors with Globals!OverallTotalPages.
Read articleLearn how to use SQL Server's CTEs to display results in a horizontal format instead of the standard vertical format.
Read articleLearn how to use excel to extract numbers from strings.
Read articleI recently had to use back end data from SQL Server to deliver several reports in excel.
Read articleDateDiff is a great tool in SQL Server. But you have to extend DateDiff a bit to get things in a nicer format, such as HH:MM:SS.
Read articleIf you're like me, you like using descriptive variable, procedure and function names.
Read articleReset and verify IDENTITY values in SQL Server using DBCC.
Read articleEveryone is worried about their database size. Even though storage is relatively cheap, if your database is growing linearly or exponentially, you're going to run into issues down the road.
Read articleUse SQL Server DMVs to find a table's IDENTITY Column. The SQL Server DMVs sys.objects and sys.columns contain valuable information that can identify IDENTITY Columns.
Read articleLearn about line breaks when creating dynamic SQL.
Read articleLearn how to get your remote desktop back to full screen after Minimization
Read articleIf your PC came with Windows 7, chances are you already have Windows Media Center installed.
Read articleThe other day, I needed to pull some data from an Oracle server on our network.
Read articleRecently, I had a request to calculate the distance between 2 GPS coordinates.
Read articleWhile working on a large project, I found that the queries were running slower and slower as the days went on.
Read articleOne of the databases I work with runs a ton of updates overnight and in the early morning.
Read articleI'll be the first to say, the switch from DTS to SSIS was painful.
Read articleSometimes, the easiest and quickest way to get data into SQL Server is to simply use an INSERT statement.
Read articleToday begins the series on importing data into SQL Server 2005/2008 using the various built in tools.
Read articleFrom time to time you will run into a case where you need to store computed columns in your SQL Server tables.
Read articleLearn how to fix the error “Could not install the custom actions” message
Read articleThere are times when you need to audit user permissions to ensure that things aren't getting inserted, over-written, or deleted.
Read articleSeveral of my DTS jobs require processing a file and then archiving the file.
Read articleLearn how to delete DTS packges using TSQL
Read articleThanks to the team at TechRepublic.com and BOL, I have used CTEs to delete duplicates with ease in SQL Server 2005 and higher.
Read articleNow, you can use ActiveX to check the age of a file before proceeding. The code assumes that you have already assigned the file location elsewhere in the DTS Package
Read articleFrom time to time, you will need to dynamically set a variable in the middle of your DTS packages.
Read articleLearn how to use ActiveX to dynamically change a query.
Read articleHere are a few useful code fragments that I use all the time.
Read articleDid you create a table, only to find that you need to add a check constraint?
Read articleWell, you knew exactly what you needed when you created a table.
Read articleLet's say you are importing data from a flat file to SQL Server via DTS.
Read article