Click here to monitor SSC
SQLServerCentral is supported by Redgate
 
Log in  ::  Register  ::  Not logged in
 
 
 


Failed to acquire connection (loop container)


Failed to acquire connection (loop container)

Author
Message
Tara-1044200
Tara-1044200
Ten Centuries
Ten Centuries (1K reputation)Ten Centuries (1K reputation)Ten Centuries (1K reputation)Ten Centuries (1K reputation)Ten Centuries (1K reputation)Ten Centuries (1K reputation)Ten Centuries (1K reputation)Ten Centuries (1K reputation)

Group: General Forum Members
Points: 1032 Visits: 3059
I am getting this error half way through the loop container in SSIS, why would it fail connection after certain point of successfull execution?

Failed to acquire connection "server.DB". Connection may not be configured correctly or you may not have the right permissions on this connection.

kl25
kl25
Mr or Mrs. 500
Mr or Mrs. 500 (514 reputation)Mr or Mrs. 500 (514 reputation)Mr or Mrs. 500 (514 reputation)Mr or Mrs. 500 (514 reputation)Mr or Mrs. 500 (514 reputation)Mr or Mrs. 500 (514 reputation)Mr or Mrs. 500 (514 reputation)Mr or Mrs. 500 (514 reputation)

Group: General Forum Members
Points: 514 Visits: 1875
Tara-1044200 (7/11/2013)
I am getting this error half way through the loop container in SSIS, why would it fail connection after certain point of successfull execution?

Failed to acquire connection "server.DB". Connection may not be configured correctly or you may not have the right permissions on this connection.


Hard to say. If the connection string is dynamic, check the permissions on the server. I'd also be checking permissions to underlying db objects for that point in the loop. When I've received this error message, it's usually because I forgot to take care of some permission--even when I thought all of the permissions were granted. I've learned through experience to take this message at it's word. w00t It's probably a permission issue.
Tara-1044200
Tara-1044200
Ten Centuries
Ten Centuries (1K reputation)Ten Centuries (1K reputation)Ten Centuries (1K reputation)Ten Centuries (1K reputation)Ten Centuries (1K reputation)Ten Centuries (1K reputation)Ten Centuries (1K reputation)Ten Centuries (1K reputation)

Group: General Forum Members
Points: 1032 Visits: 3059
If its a permissions issue how could that loop make half way through hitting the same tables and database/server?

just so you know my loop iterates almote 50k times, do you know of any limitation here?
kl25
kl25
Mr or Mrs. 500
Mr or Mrs. 500 (514 reputation)Mr or Mrs. 500 (514 reputation)Mr or Mrs. 500 (514 reputation)Mr or Mrs. 500 (514 reputation)Mr or Mrs. 500 (514 reputation)Mr or Mrs. 500 (514 reputation)Mr or Mrs. 500 (514 reputation)Mr or Mrs. 500 (514 reputation)

Group: General Forum Members
Points: 514 Visits: 1875
Tara-1044200 (7/12/2013)
If its a permissions issue how could that loop make half way through hitting the same tables and database/server?

just so you know my loop iterates almote 50k times, do you know of any limitation here?


Didn't know much about what the loop was doing--you didn't say. :-) My thought was that if it was hitting different servers with a dynamic connection string, it could be permissions on the server hit during that iteration. The other thought was that if it was hitting different tables, views or whatever, it might be permissions on the particular object for that iteration. If it's the same tables on the same server, it's probably not permissions. What I've found on the occasions where I've gotten this message is that each time it did turn out to be a permissions issue--sometimes when I was sure it wasn't. But it's hard to see how that's the case here if it's the same server and db objects each loop.

I don't know of any limitation on the number of iterations.

[Edit to add a question] Does it stop at the same iteration each time?
Phil Parkin
Phil Parkin
SSCrazy Eights
SSCrazy Eights (8.4K reputation)SSCrazy Eights (8.4K reputation)SSCrazy Eights (8.4K reputation)SSCrazy Eights (8.4K reputation)SSCrazy Eights (8.4K reputation)SSCrazy Eights (8.4K reputation)SSCrazy Eights (8.4K reputation)SSCrazy Eights (8.4K reputation)

Group: General Forum Members
Points: 8404 Visits: 19508
Tara-1044200 (7/12/2013)
If its a permissions issue how could that loop make half way through hitting the same tables and database/server?

just so you know my loop iterates almote 50k times, do you know of any limitation here?


50k iterations of a foreach loop is quite a lot - does the package run for a long time? Perhaps there is a more optimal solution.


Help us to help you. For better, quicker and more-focused answers to your questions, consider following the advice in this link.

If the answer to your question can be found with a brief Google search, please perform the search yourself, rather than expecting one of the SSC members to do it for you.

Please surround any code or links you post with the appropriate IFCode formatting tags. It helps readability a lot.
Go


Permissions

You can't post new topics.
You can't post topic replies.
You can't post new polls.
You can't post replies to polls.
You can't edit your own topics.
You can't delete your own topics.
You can't edit other topics.
You can't delete other topics.
You can't edit your own posts.
You can't edit other posts.
You can't delete your own posts.
You can't delete other posts.
You can't post events.
You can't edit your own events.
You can't edit other events.
You can't delete your own events.
You can't delete other events.
You can't send private messages.
You can't send emails.
You can read topics.
You can't vote in polls.
You can't upload attachments.
You can download attachments.
You can't post HTML code.
You can't edit HTML code.
You can't post IFCode.
You can't post JavaScript.
You can post emoticons.
You can't post or upload images.

Select a forum

































































































































































SQLServerCentral


Search