{"action":"closed","issue":{"url":"https://api.github.com/repos/SharpeRAD/Cake.SqlTools/issues/1","repository_url":"https://api.github.com/repos/SharpeRAD/Cake.SqlTools","labels_url":"https://api.github.com/repos/SharpeRAD/Cake.SqlTools/issues/1/labels{/name}","comments_url":"https://api.github.com/repos/SharpeRAD/Cake.SqlTools/issues/1/comments","events_url":"https://api.github.com/repos/SharpeRAD/Cake.SqlTools/issues/1/events","html_url":"https://github.com/SharpeRAD/Cake.SqlTools/issues/1","id":175362690,"number":1,"title":"Unable to run with LocalDB","user":{"login":"trailmax","id":3606356,"avatar_url":"https://avatars.githubusercontent.com/u/3606356?v=3","gravatar_id":"","url":"https://api.github.com/users/trailmax","html_url":"https://github.com/trailmax","followers_url":"https://api.github.com/users/trailmax/followers","following_url":"https://api.github.com/users/trailmax/following{/other_user}","gists_url":"https://api.github.com/users/trailmax/gists{/gist_id}","starred_url":"https://api.github.com/users/trailmax/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/trailmax/subscriptions","organizations_url":"https://api.github.com/users/trailmax/orgs","repos_url":"https://api.github.com/users/trailmax/repos","events_url":"https://api.github.com/users/trailmax/events{/privacy}","received_events_url":"https://api.github.com/users/trailmax/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":1,"created_at":"2016-09-06T22:01:27Z","updated_at":"2016-09-07T12:44:31Z","closed_at":"2016-09-07T12:44:31Z","body":"I'm using VSTS and the only database available is LocalDB, but `SqlClientLibrary` apparently can't work with LocalDB on attempt to open connection I get network error:  \r\n\r\n> A network-related or instance-specific error occurred while establishing a connection to SQL Server. The server was not found or was not accessible. Verify that the instance name is correct and that SQL Server is configured to allow remote connections. (provider: Named Pipes Provider, error: 40 - Could not open a connection to SQL Server)\r\n\r\nThe instance is up and running - I'm using it from other applications. \r\nHere is how build.cake looks like:\r\n\r\n    Task(\"Create-DB-And-Schema\")\r\n    .Does(() => \r\n    {\r\n        ExecuteSqlQuery(\"create database [MyProject-Testing]\", new SqlQuerySettings()\r\n        {\r\n            Provider = \"MsSql\",\r\n            ConnectionString = \"Server=(localdb)\\v12.0;\"\r\n        });\r\n    })\r\n\r\nHere is a repro:\r\n\r\n    class Program\r\n    {\r\n        static void Main(string[] args)\r\n        {\r\n            System.Data.IDbConnection con = System.Data.SqlClient.SqlClientFactory.Instance.CreateConnection();\r\n\r\n            con.ConnectionString = \"Server=(localdb)\\v12.0;\";\r\n            con.Open(); // throws here\r\n        }\r\n    }\r\n"}}
{"actor":{"display_login":"SharpeRAD"}}