{"id":4937,"date":"2014-03-30T17:09:14","date_gmt":"2014-03-30T17:09:14","guid":{"rendered":"https:\/\/unknownerror.org\/index.php\/2014\/03\/30\/vb-dtslib-dtsexecresult-compile-error-automation-type-not-supported-in-visual-basic-collection-of-common-programming-errors\/"},"modified":"2014-03-30T17:09:14","modified_gmt":"2014-03-30T17:09:14","slug":"vb-dtslib-dtsexecresult-compile-error-automation-type-not-supported-in-visual-basic-collection-of-common-programming-errors","status":"publish","type":"post","link":"https:\/\/unknownerror.org\/index.php\/2014\/03\/30\/vb-dtslib-dtsexecresult-compile-error-automation-type-not-supported-in-visual-basic-collection-of-common-programming-errors\/","title":{"rendered":"VB &#8211; DTSLib.DTSExecResult &#8211; compile error &#8211; Automation type not supported in visual basic-Collection of common programming errors"},"content":{"rendered":"<pre><code>Dim pkg As DTSLib.Package\nDim pkgResult As DTSLib.DTSExecResult\n<\/code><\/pre>\n<p>This line (line:2) throws a compile error &#8220;Automation type not supported in visual basic&#8221; I&#8217;m trying to use pkgResult to capture the results of running a dtsx on server<\/p>\n<pre><code>Set pkg = app.LoadFromDtsServer(\"\\MSDB\\\", Server, True, pevents)\npkgResults = pkg.Execute()\n<\/code><\/pre>\n<p>Please note: I have added a reference to &#8220;Microsoft DTS Runtime 1.0&#8221;<\/p>\n<p>Doesnt VB support type DTSLib.DTSExecResult ??<\/p>\n<p>Appreciate your help and time. Thanks<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Dim pkg As DTSLib.Package Dim pkgResult As DTSLib.DTSExecResult This line (line:2) throws a compile error &#8220;Automation type not supported in visual basic&#8221; I&#8217;m trying to use pkgResult to capture the results of running a dtsx on server Set pkg = app.LoadFromDtsServer(&#8220;\\MSDB\\&#8221;, Server, True, pevents) pkgResults = pkg.Execute() Please note: I have added a reference to [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1],"tags":[],"class_list":["post-4937","post","type-post","status-publish","format-standard","hentry","category-uncategorized"],"_links":{"self":[{"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/posts\/4937","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/comments?post=4937"}],"version-history":[{"count":0,"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/posts\/4937\/revisions"}],"wp:attachment":[{"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/media?parent=4937"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/categories?post=4937"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/tags?post=4937"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}