When using Invokve Expression sqlcmd -i script.sql it seems to only display the first 2 lines returned.
When I run in Query Analyser the script it returns:
(2 rows affected) Changed database context to 'ShopStore'. (5 rows affected) Changed database context to 'ShopStore'.
However from powershell I only get:
(2 rows affected) Changed database context to 'ShopStore'.
YET, the whole thing is being run, I can see this by playing with results. Why is this?