-->
SQL Clone
SQLServerCentral is supported by Redgate
 
Log in  ::  Register  ::  Not logged in
 
 
 

Ed Elliott's Sql Developer Blog

Ed is a Sql developer who has a mixed background in support, as a dba and as a developer working with a number of languages c, c#, vb, go, assembly with a variety of technologies and is currently trying to make the sql developer community a little bit more agile, one build step at a time!

Azure ARM template function internals

I have been working with azure arm functions for quite a while and they are exceptionally useful but also quite a pain to work with, visualizing what it is that the functions will resolve to is often hard.

If you haven't used an ARM template, ARM templates are JSON documents…

Read more

0 comments, 249 reads

Posted in Ed Elliott's Sql Developer Blog on 18 December 2017

xSQLServer is dead long live SqlServerDsc

I have had a problem with DSC in Azure Automation for a few months now, there was a change made to the xSqlServer DSC resource which meant that the paths internally were too long to be compiled on Azure Automation, I don't even really want to think why because the…

Read more

0 comments, 166 reads

Posted in Ed Elliott's Sql Developer Blog on 15 December 2017

What The Tool? Multiple choice quiz to help you choose a tool for SQL Server

There are a few different choices for tools to use when it comes to SQL Server, while the "experienced" amongst us have used query analyzer, enterprise manager and probably ssms it isn't always clear what tool you should use. If you consider sql operations studio and vscode it is a…

Read more

0 comments, 222 reads

Posted in Ed Elliott's Sql Developer Blog on 14 December 2017

My Azure ARM template development workflow

Writing infrastructure as code is pretty nice and I enjoy the declarative approach of defining what you want and letting the tooling take care of the how. I guess this is because of my background as a SQL developer.

What I don't like so much is the development experience and…

Read more

0 comments, 1,025 reads

Posted in Ed Elliott's Sql Developer Blog on 13 December 2017

ARMED - Where is the source?

ARMED, where is the source?

For quite a few years I’ve been putting everything I wrote on github and made most of it open source with a permissive license like MIT or Apache2. If anyone asked then I would be happy to change any licenses, whatever they wanted but with…

Read more

0 comments, 147 reads

Posted in Ed Elliott's Sql Developer Blog on 9 December 2017

ARMED - ARM resource dependency graph inside VSCode

I think the title sums it up, I have published a new version of ARMED the arm helper extension for VSCode.

This version includes the ability to see a graph of the resources and how they relate to each other:

There are a couple of limitations at the moment this…

Read more

0 comments, 186 reads

Posted in Ed Elliott's Sql Developer Blog on 8 December 2017

ARMED - Azure ARM VS Code extension

I have been working with ARM templates for a little while and have found it really annoying to test functions inside the templates, you see if you have an ARM template it is a JSON document made up of lots of key/values like:

{"name": "a_name"}

but it is slightly more…

Read more

0 comments, 981 reads

Posted in Ed Elliott's Sql Developer Blog on 6 December 2017

Azure Virtual Machine + Premium Disk Throughput Calculator

I keep having to refer to the virtual machine size page and the disks pricing page to work out how best to stripe disks for whichever type of virtual maching in Azure to work out what sort of throughput we can get so I thought I would save myself some…

Read more

0 comments, 132 reads

Posted in Ed Elliott's Sql Developer Blog on 2 December 2017

Fixing SQL AG Routing "Cannot find host" using packet analysis (and a spell checker)

I was setting up an availability group listener recently and when I tried to connect to the listener I got an error message to say "The host cannot be found" after the usual 15 seconds connection delay.

I checked the usual thing like TCP was enabled on the replicas and…

Read more

0 comments, 143 reads

Posted in Ed Elliott's Sql Developer Blog on 30 November 2017

"the input device is not a TTY" error running docker on VSTS build agent

I have been playing around with including all my build dependencies in docker for windows lately and had a build that kept giving me this error in the build log:

"the input device is not a TTY. If you are using mintty, try prefixing the command with 'winpty'"

The command…

Read more

0 comments, 202 reads

Posted in Ed Elliott's Sql Developer Blog on 22 November 2017

How do I use VSTS variables in YAML CI Build definitions?

Hey, VSTS YAML builds are my new favorite thing, by like a million miles.

If you have a yaml build definition ( .vsts-ci.yml ) and you want to use one of the build variables then it isn't totally clear how to include them in a definition (it hasn't been out…

Read more

0 comments, 235 reads

Posted in Ed Elliott's Sql Developer Blog on 21 November 2017

You have your database in source control now what?

This post is for a specific type of person if you are:

  • New to source control
  • Are getting started on your path to the continuous delivery nirvana
  • Have been able to get your database into some sort of source control system
  • Have more than one person checking in code to…

Read more

0 comments, 161 reads

Posted in Ed Elliott's Sql Developer Blog on 16 November 2017

Running any AzureRM powershell command tells you to "Run Login-AzureRmAccount to login." even though you are logged in!

Every AzureRM command I was running I would get an error message telling me to login, I then did a login, checked that I had the right subscription and I was still getting the error message - after logging in 7 times I figured that maybe there was something else…

Read more

0 comments, 122 reads

Posted in Ed Elliott's Sql Developer Blog on 15 November 2017

Watching for powershell changes and running Invoke-Pester

It seems like more and more recently I have been writing powershell and typescript rather than c# and t-sql and there are quite a few things to like about the tools for both of these (typescript and powershell). One thing I really like with typescript and javascript in general is…

Read more

0 comments, 126 reads

Posted in Ed Elliott's Sql Developer Blog on 14 November 2017

SSDT How To Fix Error SQL17502

TLDR:

If you build an SSDT project you can get an error which says:

"SQL71502: Function: [XXX].[XXX] has an unresolved reference to object [XXX].[XXX]."

If the code that is failing is trying to use something in the "sys" schema or the "INFORMATION_SCHEMA" schema then you need to add a database…

Read more

0 comments, 202 reads

Posted in Ed Elliott's Sql Developer Blog on 6 November 2017

A virtualized CPU forced me to eat my lunch early, every day, for weeks

I worked one particular contract where I was forced to take my lunch at 11:35 every day, and it was all virtualisations fault!

To set the scene it was a company who wasn't really used to having developers, they had a load of SQL analysts and some mainframe developers but…

Read more

0 comments, 3,170 reads

Posted in Ed Elliott's Sql Developer Blog on 21 October 2017

Where do you install tSQLt?

The question of where to install tSQLt is probably the most common question I get when I talk about unit testing T-SQL, so much so that I thought that it would be a good topic for a blog. I mention tSQLt in the title, but this covers all unit test…

Read more

0 comments, 542 reads

Posted in Ed Elliott's Sql Developer Blog on 19 October 2017

tSQLt Test Adapter for Visual Studio 2017

So Visual Studio 2017 has been released a while and I had created a version of the test adapter (which lets you run tSQLt tests from within Visual Studio with SSDT, ReadyRoll or just plan sql scripts using the test window but I held off on pushing it to the…

Read more

0 comments, 189 reads

Posted in Ed Elliott's Sql Developer Blog on 3 October 2017

Learn how to unit test SQL Server T-SQL code

A free email course on how to use tSQLt including the technical aspects of writing unit tests AND the art of writing repeatable, useful unit tests for even the most complicated T-SQL code

UPDATE: I thought that if I got a certain number by October 1st I would run the…

Read more

0 comments, 245 reads

Posted in Ed Elliott's Sql Developer Blog on 5 September 2017

SSIS ForEach Enumerator File Order

I saw on slack recently a question about how the ssis file enumeraror orders (or more specifically doesn't order) files. I have been thinking about ssis quite a lot lately and whil I am in no hurry to start using it day to day it is quite an interesting tool.

Read more

0 comments, 156 reads

Posted in Ed Elliott's Sql Developer Blog on 1 September 2017

Older posts