mcdoodle Posted June 8, 2011 Report Posted June 8, 2011 Hi there I have a problem and have looked at a few threads but cannot tsee my problem listed. On our SQL 2008 server on which we have sims .net installed, I point the connect.ini to the database. This facilitates a number of automatic processes which run. They won't run if it redirects to a mapped drive. Some unknown process changes the connect.ini to include a redirect to a connect.ini on a mapped drive. Does anyone have any idea what the cause may be?
vikpaw Posted June 8, 2011 Report Posted June 8, 2011 (edited) Usually a connect.ini is held on the server in the SIMS share (often S: drive for normal users.) If you have the SIMS client installed on the server too, it will have a local connect.ini with a redirect pointing to the mapped drive (S: for instance). Then by going there and reading the S:\sims\connect.ini it will point to itself and do what it needs. Normal practise is for all clients to have a local connect.ini with a redirect to the mapped drive, so that any changes are made centrally. If you delete the local copy on next run, it should look for one and ask you to point to it. If you point to the mapped drive it will make a redirect. If you create a local one it will be a custom one. Don't know if that helps. Perhaps you are loooking at the local server copy not the shared one...? Is it affecting things? You could change / delete the local one, stored in "C:\program files\sims .net\ ..." or whereever it is. Just don't delete the one in the mapped drive area else all users pointing to it will fail. Edited June 8, 2011 by vikpaw grammar/spelling check
mcdoodle Posted June 8, 2011 Author Report Posted June 8, 2011 Thanks for your quick response Vikpaw. That is interesting what you say about the deletion and where you choose for the connect.ini location. I realise i did not state it in my original post, the connect.ini I have still exists, its just it inserts a redirect line into it. why would it do that if there was already a valid connect.ini? You are right - it resides in c:\program files\sims\sims .net - as we have the client installed on the server. I wonder is there a way to preserve it? I have tried setting it to read only but it still changes.
Jawloms Posted June 8, 2011 Report Posted June 8, 2011 I had similar issues with something like this once. I just made the connect.ini read only and the problem went away.
mcdoodle Posted June 8, 2011 Author Report Posted June 8, 2011 Thanks Jawloms we have tried and the change still happens - I had thought about setting up a task to replace the connect.ini but I would rather get to the cause if I could.
vikpaw Posted June 8, 2011 Report Posted June 8, 2011 (edited) Odd that it overwrites the 'read only' file. Do you have any third party or automated systems? I'm presuming yes. Many of these rely on the connect.ini perhaps one of them updates it. I know a lot of systems don't like a mapped drive in there. We recently changed ours to redirect to a mapped drive whereas before it was redirecting to the share name and when i moved servers this was a pain. I have had a couple of users recently who despite having the S drive mapped, and accessible, cannot load sims as it complains about inability to access S:\connect.ini i think this is to do with the privileges of the user / account that made the mapping. There is a thread on that related to win7 installs somewhere. But anyway, i digress. An odd thing that may be relevant is once i had a situation where the connect.ini was requested, and seemed to work, but then after log off and another using going in it would ask for it again, so it was giving permission to access sims and reading the location but not actually saving the connect.ini due to permissions. What if you delete the local connect.ini and don't run sims. Whatever is injecting that line, will either fail, or create a new file with only redirect settings...? Perhaps the permissions / owner on that new file will tell you the culprit. More so if the systems have a service account. Just to confirm, you manually create the local connect.ini in this format right?... [sIMSConnection] ServerName=servername\SIMS2008 DatabaseName=sims Edited June 8, 2011 by vikpaw
vikpaw Posted June 8, 2011 Report Posted June 8, 2011 I just had a thought. If you do script a replace of the connect.ini you might find another task running that was installed by a third party to inject this line of redirect in because it fixed some bugs with their software! Can you show us what the final borked connect.ini looks like. I presume running sims still works, it just isn't possible for the automation processes to use it...?
mcdoodle Posted June 8, 2011 Author Report Posted June 8, 2011 Thanks Vikpaw the problem is that the redirect line appears and this stops my automated tasks. I have not a copy but it is usually like this:- [sIMSConnection] Redirect=S:\Sims ServerName=servername\SIMS2008 DatabaseName=sims as regards the read only getting overwritten, it has to be some sort of system or local admin which has the rights to do that, but it seems to happen
Janit Posted June 8, 2011 Report Posted June 8, 2011 If you chose to switch on the Redirect Service when SIMS was migrated to SQL 2008 it may be that causing the problem. To resolve this I would suggest stopping the SIMS2005 Instance and see if that helps.
vikpaw Posted June 11, 2011 Report Posted June 11, 2011 @janit might have it. if not, can you try the other things i suggested to try and track down who creates or overwrites the file based on permissions / modifications.
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now