{"action":"opened","issue":{"url":"https://api.github.com/repos/crimdon/SQLToolkit/issues/10","repository_url":"https://api.github.com/repos/crimdon/SQLToolkit","labels_url":"https://api.github.com/repos/crimdon/SQLToolkit/issues/10/labels{/name}","comments_url":"https://api.github.com/repos/crimdon/SQLToolkit/issues/10/comments","events_url":"https://api.github.com/repos/crimdon/SQLToolkit/issues/10/events","html_url":"https://github.com/crimdon/SQLToolkit/issues/10","id":181707781,"number":10,"title":"Support for DACPACs","user":{"login":"sevaa","id":5807738,"avatar_url":"https://avatars.githubusercontent.com/u/5807738?v=3","gravatar_id":"","url":"https://api.github.com/users/sevaa","html_url":"https://github.com/sevaa","followers_url":"https://api.github.com/users/sevaa/followers","following_url":"https://api.github.com/users/sevaa/following{/other_user}","gists_url":"https://api.github.com/users/sevaa/gists{/gist_id}","starred_url":"https://api.github.com/users/sevaa/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/sevaa/subscriptions","organizations_url":"https://api.github.com/users/sevaa/orgs","repos_url":"https://api.github.com/users/sevaa/repos","events_url":"https://api.github.com/users/sevaa/events{/privacy}","received_events_url":"https://api.github.com/users/sevaa/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2016-10-07T16:04:13Z","updated_at":"2016-10-07T16:04:13Z","closed_at":null,"body":"In addition to running SQL files, can you please add a deployment task to run DACPAC files?\r\n\r\nYou'd need to ship Microsoft.SqlServer.Dac.dll (it comes with SQL Server) along with the task, and the basic Powershell code for it goes:\r\n\r\n    Add-Type -Path \"Microsoft.SqlServer.Dac.dll\"\r\n    $Service = New-Object Microsoft.SqlServer.Dac.DacServices \"Server=$ServerName;\"\r\n    # Add UID/PWD to the connection string, if necessary\r\n    $Pack = [Microsoft.SqlServer.Dac.DacPackage]::Load($DacpacPath)\r\n    $Service.Deploy($Pack, $DatabaseName, $true) \r\n\r\nFeel free to expose more Thank you!"}}
{"actor":{"display_login":"sevaa"}}