I apologize upfront if this is an old issue but i couldn't find the solution after searching quite a bit.
I have a OLE db connection manager and an ADO.net db connection manager and both of them fail when i run them in VS dev environment:
Connection may not be configured correctly or you may not have the right permissions on this connection
When I set up my connection managers, they do connect fine but no matter which one i try to use with an Execute sql task, the above error keeps popping up.
The connection managers are both set up to use SQL Authentication and the database is not on my local machine but instead on a server and my package security is set to 'DontSaveSensitive'. I have not yet deployed so this is all in my VS.net dev environment where it's failing.
I have also turned off the firewall on both the development server and my pc. All I want to be able to do is let the connection managers point the the dev server as the db is on there.
Any suggestions?
Regards
Mike
Hi,
I found a solution for the problem and thought it might be useful to post it for those that seek to develop using a remote dev server that contains the database.
I declared a variable that contained the connectionstring for the specific connection manager (note that the ado.Net connection string will look slightly different than oledb for instance) and in the connection manager's expression property pointed it to the variable.
I got pointed into this direction by reading the article 'Suggested best practices' by Jamie Thomson :
http://blogs.conchango.com/jamiethomson/archive/2006/01/05/2554.aspx
Thanks for that excellent article Jamie
Regards
Michael