[Okta Webinar] Learn how to a build a cloud-first strategyRegister Now

  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 1005
  • Last Modified:

Running dtsx package from development machine

I have a very simple dtsx package that contains one "Execute SQL Task" that is used only to send an email through the SQL Server using the sp_send_dbmail stored procedure (the server is setup to send email - this works!).
I have developed the code on the actual server and executed it and it works perfectly (this is just to make sure that there is no problem with the code). My problem comes when I want to develop on my local machine as it is not ideal to be developing on the server (this is a test server).

The problem I have is that I can't run the dtsx package from my machine (connection to the server says that is fine when I "Test Connection" - OLE DB Connection) as it returns the following error when running the package.................
"failed with the following error: "The EXECUTE permission was denied on the object 'sp_send_dbmail', database 'msdb', schema 'dbo'.". Possible failure reasons: Problems with the query, "ResultSet" property not set correctly, parameters not set correctly, or connection not established correctly."

Any help would be muchly appreciated
Thanks in advance

1 Solution

Featured Post

Hire Technology Freelancers with Gigs

Work with freelancers specializing in everything from database administration to programming, who have proven themselves as experts in their field. Hire the best, collaborate easily, pay securely, and get projects done right.

Tackle projects and never again get stuck behind a technical roadblock.
Join Now