Page 1 of 1

Best Practices

Posted: Wed 15 Jul 2009 14:35
by ninken
I’m looking for the best way to Test a MSSQL Connection, before connecting to it. My current way of testing the connection , on a failed connection take one whole minute to trap. That’s way too long even with low timeouts.

I’ve read the documentation on Unstable Network / Disconnect Mode. How do you handle master/detail relationships what are the best practices in using these modes, I can’t find good examples.

Look forward to the responses!
Thanks

Kenny

Posted: Thu 16 Jul 2009 21:23
by ninken
So their is no way to properly test for a SQL Connection, and the Unstable Network/ Disconnect mode just buggy ? I've followed the help, on these topics, but is way to unstable for a production enviroment. If I am wrong show me how this suppose to work!

Posted: Mon 20 Jul 2009 12:18
by Dimon
If you only need to check if it is possible to connect to SQL Server, you should set the TMSConnection.ConnectionTimeout property and execute the Connect method.
If it does not solve the problem, please give a more detailed description of it.