[Macromedia][SQLServer JDBC Driver]Object has been closed.
- January 15, 2009 10:10 AM
- ColdFusion, Microsoft Tools
- Comments (14)
I got this error for the first time today, while trying to get a query working in ColdFusion 8.01. I'd defined some custom functions in SQL Server, and tested them out through the SQL Server Management Studio, but the datasource user didn't have the right permissions to use the queries. I added the permissions, reloaded the page and got smacked with the following error:
I found the solution on House of Fusion: restart your ColdFusion services. Something about the lack of permissions seems to catch in CF, and wont be released until you restart.
Comments
A coworker ran into an issue with MySQL today that looks like it might be a similar "caching" of permissions, and changes to the method didn't seem to cause any change in the results. I recommended that he try restarting the instance, but since this is a production machine, he had to wait for a little bit on that. Once he can restart it, I'll see if that clears it up and/or if it is a related issue.
It would be nice to have a real solution, though, that prevents this from happening. It's very uncomfortable knowing that this will happen at some point and not being able to do anything about it until there is already downtime. :/
But thanks, that worked for me, at least temporarily!
Keep it up :)