A DBA kept creating database users by hand. Here is a simple PowerShell and SMO script to create a user with read rights on a database.
SQL SERVER – Simple Example of BCP Command Line Utility
Need to export table data fast? A step by step, simple example of the BCP Command Line Utility, from finding bcp.exe to running the export.
SQL SERVER – SSMS Trick – Switching Columns in Grid Output
Can you reorder columns in SSMS grid output without rewriting the query? A trick from Vinod Kumar’s user group session that surprised me.
SQL SERVER – Hidden SSMS Gem: Find Dialog’s Unknown Functionality
At a Bangalore user group meet, Vinod Kumar showed a Hidden SSMS Gem: something the Find dialog can do that I never knew in years of using it.
PowerShell – Reading Tables Data Using Script
Read-SqlTableData is a PowerShell cmdlet for reading tables data from SQL Server without writing a query. Here is how I tried it on my box.
SQL SERVER – How to Join a Table Valued Function with a Database Table
I use APPLY to Join a Table Valued Function with rows from another table. The example passes each customer’s delivery city.







