-
Archives
- November 2023
- July 2023
- June 2023
- March 2023
- February 2023
- October 2022
- July 2022
- June 2022
- May 2022
- April 2022
- March 2022
- February 2022
- January 2022
- December 2021
- November 2021
- October 2021
- September 2021
- August 2021
- June 2021
- May 2021
- March 2021
- February 2021
- November 2020
- October 2020
- September 2020
- August 2020
- July 2020
- June 2020
- April 2020
- March 2020
- February 2020
- January 2020
- December 2019
- November 2019
- October 2019
- September 2019
- July 2019
- June 2019
- April 2019
- March 2019
- February 2019
- January 2019
- December 2018
- November 2018
- October 2018
- September 2018
- August 2018
- July 2018
- June 2018
- May 2018
- April 2018
- March 2018
- February 2018
- January 2018
- December 2017
- November 2017
- October 2017
- September 2017
- August 2017
- July 2017
- June 2017
- May 2017
- April 2017
- January 2017
- December 2016
- November 2016
- October 2016
- August 2016
- July 2016
- April 2016
- March 2016
- February 2016
- January 2016
- December 2015
- November 2015
- September 2015
- July 2015
- June 2015
- May 2015
- April 2015
- March 2015
- January 2015
- November 2014
- October 2014
- September 2014
- August 2014
- June 2014
- April 2014
- March 2014
- February 2014
- January 2014
- December 2013
- November 2013
- October 2013
- September 2013
- August 2013
- July 2013
- April 2013
- March 2013
- January 2013
- December 2012
- November 2012
- October 2012
- September 2012
- August 2012
- July 2012
- June 2012
- May 2012
- April 2012
- February 2012
- November 2011
- October 2011
- August 2011
- July 2011
- May 2011
- April 2011
- March 2011
- February 2011
- January 2011
- December 2010
- November 2010
- October 2010
- August 2010
- June 2010
- April 2010
- March 2010
- February 2010
- January 2010
- December 2009
- November 2009
- October 2009
- September 2009
- August 2009
- July 2009
- June 2009
- May 2009
- April 2009
- March 2009
- February 2009
- January 2009
-
Meta
Category Archives: SQL Server
Simple SQL to count related records
Here is a basic example of how to use a subquery to return a total count of records. This is particularly useful to show an aspect related to some info that you are working with. This example would count the … Continue reading
Posted in Programming, SQL Server
Leave a comment
Updating nullable DataTable columns
While NULL is a standard feature and business-as-usual in the SQL world, and likewise null objects are common in the C# world, the concept of NULL and null are completely different things and the translation is easily forgotten. This is … Continue reading
Posted in C#, Programming, SQL Server
Leave a comment
Sort a DataTable
I first noticed this technique here: https://www.codeproject.com/Questions/219205/How-To-Sort-Datatable-in-csharp-net More Juicy goodness here: https://social.msdn.microsoft.com/Forums/vstudio/en-US/87a64069-e78c-4930-a751-d2be7f1e7b50/how-to-sort-datatable?forum=csharpgeneral private void FillSessionChecklistboxForAttendees(CheckedListBox clb, string session_id) { MesQueries.TrainingAdmin ta = new MesQueries.TrainingAdmin(_mq); ta._queryMode = MesQueries.TrainingAdmin.QueryModes.AttendeesForSession; ta.session_id = session_id; DataTable dtAttendees = _mq.GetContentDataTable(ta); Creativity is simply at the bay … Continue reading
Posted in C#, Programming, SQL Server
Leave a comment
Linkdump: DBA: DBs + SCS
Databases and Sourcecode Control Systems A strategy for implementing database source control Synch and compare DBs How to automatically compare and synchronize SQL Server data Azure getting started demo: https://azure.microsoft.com/en-us/get-started/webinar/?mkt_tok=eyJpIjoiWkdZM056azFZVEUwTWpKaiIsInQiOiJmeDlnd3ZUWlwvNTZFemlQb3VNQzJkZHhLWFRidnR4QllzcmxrN011ajBUMWRCdUxoUDhcL2VjbDNPN3dneTdnZ1lUZ0JmeUNBanRCZmpyUFhmVUxIWmxkMk1ka2tIb0I0RVwvZ2Z5UmdPRnlZd1wvclFuU2Q1dFNxOW5GQUg2bnNkSlhJNFpwYjUxSVwvbHZ5VUJHdmg3bVl6RUVjdnV2NmVjTjRnVkFsaVJGbmxoST0ifQ%3D%3D Price This is what sets the tone for the type … Continue reading
Posted in Business, Linkdump, SQL Server, System/DB Administration
Leave a comment
Hazards of SQL SELECT DISTINCT
Although SQL’s DISTINCT keyword creates a list of unique values like usernames or route steps, it’s dangerous in practice. It can: mask actual duplicates – which can mean entered data might be recorded under the wrong entry (or the right … Continue reading
Posted in Programming, SQL Server
Leave a comment
Linkdump: BIML, BI, Elastisearch-Kibana, SS Interviews, Data protection
BIML Business Markup Language https://www.mssqltips.com/sqlservertutorial/9089/introduction-to-the-biml-language/ BI – Logi Analytics. Responsive design, Dashboard design https://www.logianalytics.com/art-responsive-design-dzone-archive/ http://go.logianalytics.com/webinar-art-of-dashboard-design.html?mkt_tok=eyJpIjoiTkRJMk56aGpNamd6TkRreiIsInQiOiJSM05kQXBCaTM2SzF5UVBDazhMVGhBdmlFSE1CYU5TdjRKWStPMVwvcktSdWk0RTV1djRLUm1kYU9Bc2xJT0NRVDJOZG9PWkVhOXoyb1VBcG1jQTNtMXZLMWk0VDc4a09IRzdOSlVuNzVDVGVBWE5xUDFzajFwUnpPMEJVczBqV1oifQ%3D%3D Helping your BI Consultant be successful: http://www.sqlservercentral.com/blogs/data-savvy/2018/01/30/ten-ways-to-help-your-bi-consultant-be-successful/?utm_source=SSC&utm_medium=pubemail Vagrant Command line interface: https://www.vagrantup.com/docs/cli/ Elastisearch and Kibana Client guide: https://www.elastic.co/guide/en/elasticsearch/client/index.html Downloads: https://www.elastic.co/content-pack Getting started: https://www.elastic.co/webinars/getting-started-elasticsearch?baymax=rtp&elektra=docs&storm=top-video&iesrc=ctr Forums: https://discuss.elastic.co/?ultron=es-get-started&blade=touch&hulk=email&mkt_tok=eyJpIjoiTlRCak16WTVNalZrWVdFeSIsInQiOiIxR3BlcW5HZ3IxRDdrbytSRnZpZ3JOcTZaMlNoUkZoTGdFU3VWTU5FMTNDaW5LdzNLTG9VMHhpZm5jek9mVEhCdmNENEo3S3ZqSjJHS3U5RTJKM1JHRk1OaGh3bUdUdk82Tks3Z1YyaFwvVXdGOFwvXC9sR3dFQlBGbUI1aTRwUm5PUSJ9 SS Interview Interview – … Continue reading
Linkdump: Various learnings: SD, JS. SS/BI/BD
premium 10 books every web developer should read to increase their software IQ Backtracking algorithmic approach: http://blog.dailycodingproblem.com/an-introduction-to-backtracking/?utm_campaign=News%20on%20Monday&utm_source=hs_email&utm_medium=email&utm_content=60133300&_hsenc=p2ANqtz-8wUu0X1MNw7Ka4qWf8k5TgFDmfpiT6ecVsss07oZuypsu4t3kozhxperXdqM_8hp9YYaZbrEcMBuo2C-2sH3Y7QNx1iGWGWHqcJCplbP3RRpSbZ5c&_hsmi=60133300 Javascript framework Comparison: https://javascriptreport.com/js-frameworks-fastest/?utm_campaign=News%20on%20Monday&utm_source=hs_email&utm_medium=email&utm_content=60133300&_hsenc=p2ANqtz-8wUu0X1MNw7Ka4qWf8k5TgFDmfpiT6ecVsss07oZuypsu4t3kozhxperXdqM_8hp9YYaZbrEcMBuo2C-2sH3Y7QNx1iGWGWHqcJCplbP3RRpSbZ5c&_hsmi=60133300 Inferno Javascript framework: https://infernojs.org And moreover they sell a segment cheap cialis http://www.solboards.com/cialis-1455.html of medicines which don’t need doctor’s … Continue reading
Posted in Business Intelligence, Linkdump, Programming, SQL Server
Leave a comment
T-SQL: Trim after newline / carriage return
USE [db_mes_sandbox] GO EXEC [dbo].[usp_CompleteHierarchy3] @pSerial_number = N’110160766′, @pFlag_IncludeCcaComponents = 0, @pFlag_IncludeReplacedParts = 0, @pDebug = 1 GO SELECT product_id ,name ,revision This misalignment is not really good for the baby’s development cialis 10 mg http://www.jealt.mx/cialis-8971 inside the womb because … Continue reading
Posted in SQL Server
Leave a comment
Meltdown and Spectre patches, via SQLServerCentral
http://www.sqlservercentral.com/articles/SQL+Server/166822/?utm_source=SSC&utm_medium=pubemail This is because of the fact that sildenafil ( levitra price in india), vardenafil (levitra), and levitra 10 mg (cute-n-tiny.com) all function by inhibiting PDE5, ‘s pharmacologic distinction is its extended fifty percent-everyday living (17.50 several hours) – in … Continue reading
Posted in Linkdump, SQL Server, System/DB Administration
Leave a comment
SQL Server diagnostics notes
This week’s amusement: performance of a recently-implemented Stored Procedure dropped and dropped to intolerable levels. This system cannot be easily upgraded. Significant fragmentation is involved. Memory pressure is involved. Inserts to table variables in multiple stored procs are involved. This … Continue reading
Posted in Linkdump, Programming, SQL Server, System/DB Administration
Leave a comment