SQL Server AdventureWorks2014 InstallationYou may wish to install a sample database from Microsoft called Adventure Works 2014. The reason you may […] March 5, 2017 in SQL Server tagged sql / sample by Mike
Transform an XML Document’s Attributes into ElementsIf you have an XML document that uses attributes only, you can easily transform that document into a […] March 4, 2017 in SQL Server tagged xml by Mike
SQL Server Select Table with Parameter in SprocThis post shows you how to run a SELECT query in a stored procedure that takes as a […] March 4, 2017 in SQL Server tagged T-SQL / dynamic by Mike
SQL Server T-SQL RowcountMicrosoft’s T-SQL has a global variable called @@ROWCOUNT that returns the number of rows affected by the last […] March 2, 2017 in SQL Server by Mike
SQL Server bcp errorYou may get the following error while running a SQL Server command xp_cmd. Please refer to the previous […] March 1, 2017 in SQL Server tagged bcp / xp_cmdshell by Mike
SQL Server Exporting Data Programatically with bcp and xp_cmdshellMany times you may find that you need to take some data in a table or tables and […] February 28, 2017 in SQL Server tagged bcp / xp_cmdshell / output / file / sql by Mike
SQL Server Exporting a Table to a Text File Part ...This post continues from the first part. In this example the directory has a space in it so […] February 27, 2017 in SQL Server tagged export / file / sql / table by Mike
SQL Server Exporting a Table to a Text FileThis post describes how to export a SQL Server table to a text file using a stored procedure. […] February 27, 2017 in SQL Server tagged sql / bcp / xp_cmdshell by Mike
SQL Server char and varchar Data TypesCHAR is a fixed-length, non-Unicode string data. n defines the string length and must be a non-fractional value […] February 24, 2017 in SQL Server tagged sql / T-SQL / strings / char / varchar by Mike
SQL Server right() function with cast()The right() function returns the right part of a character string with the specified number of characters. It […] February 23, 2017 in SQL Server tagged sql / cast / right by Mike
SQL Server UNION and UNION ALLThe UNION, EXCEPT and INTERSECT operators are relational operators that combine rows from the results sets of two […] February 23, 2017 in SQL Server tagged sql by Mike
SQL Server CLR AssembliesCLR stands for Common Language Runtime. This blog post is about writing SQL Server stored procedures and functions […] February 20, 2017 in SQL Server tagged functions / clr / C# / assembly / T-SQL / procedure / SQL Server CLR by Mike