Please note that VisualCron support is not actively monitoring this community forum. Please use our contact page for contacting the VisualCron support directly.


Guest
2015-11-30T18:41:27Z
I am getting the following error when running an SQL task with an OpenQuery:
Error in SQL query: ERROR [42000] [Microsoft][ODBC SQL Server Driver][SQL Server]Access to the remote server is denied because no login-mapping exists.
I am trying to hit a Netezza server with the OpenQuery. I have performed plenty of other OpenQuery runs with no problem using SQL tasks in VC and cannot figure out what the difference is other than the server I'm trying to hit this time is Netezza. Also, the remote SQL server I'm connecting to in order to run the SQL tasks has the necessary ODBC driver(s) since I can run the query just fine in SQL Server 2012.
Sponsor
Forum information
Support
2015-12-01T11:04:18Z
1. are you using the same Connection as in other Tasks?
2. are you using the same Credential as in other Tasks?
Henrik
Support
http://www.visualcron.com 
Please like  VisualCron on facebook!
Guest
2015-12-01T15:55:15Z
Hi Henrik,

Yes to both. I cloned one of the existing tasks as my starting point.
Support
2015-12-01T17:36:21Z
But, if you have one working and you just clone it it works right? Please confirm.

If you just cloned - what else have you changed. It does not sound likely that the query is the problem.
Henrik
Support
http://www.visualcron.com 
Please like  VisualCron on facebook!
Guest
2015-12-01T18:02:31Z
Correct. The only thing that has changed is which LinkedServer I'm trying to hit with the OpenQuery.
Support
2015-12-01T18:12:23Z
Here is a similar problem. Perhaps connection string is tied to it.

http://blogs.technet.com...ogin-mapping-exists.aspx 
Henrik
Support
http://www.visualcron.com 
Please like  VisualCron on facebook!
Guest
2015-12-01T18:22:06Z
The link seems to be broken...
Support
2015-12-01T18:55:38Z
Originally Posted by: mbell141 

The link seems to be broken...



Try again now.
Henrik
Support
http://www.visualcron.com 
Please like  VisualCron on facebook!
Guest
2015-12-01T19:01:38Z
Thanks. I came across that article at one point but I'm not sure why that would be the same issue since I can run it just fine in SQL Server 2012 on the remote server that the SQL task points to without entering any additional credential parameters into the query.

For whatever reason, I was able to ultimately work around this issue by changing from an SQL task in VC to an "Execute" (cmd shell) task and using the "Command:" input "sqlcmd" with the proper arguments. Exact same code just, running directly in a shell.
Support
2015-12-01T19:41:10Z
Ok, great, really hard to say from here as we do not have the same environment but I am glad you found a workaround!
Henrik
Support
http://www.visualcron.com 
Please like  VisualCron on facebook!
Similar Topics
Users browsing this topic
Scroll to Top