Where can I read the information about connection URL parameters? I am specifically interested in connection timeout parameter, but would like to find out what other parameters are available. Couldn't google that information.

asked Apr 15 '11 at 05:42

Bogdan0x400's gravatar image

Bogdan0x400
13558

edited Apr 15 '11 at 05:44


One Answer:

Hello Bogdan,

Here is the page of DataObjects.Net manual where you can find the basic information about connection urls & connection strings usage.

I'd recommend you to use connection string-based approach as it is simpler & there are plenty of examples on this excellent website.

Hope that helps.

answered Apr 15 '11 at 05:50

Dmitri%20Maximov's gravatar image

Dmitri Maximov
22111211

edited Apr 15 '11 at 05:52

Thank you, Dmitry, for your reply, but I've already read that manual prior to posting here, and it says that "actual values and parameters may very with each RDBMS". Does it mean that the parameter names and values of connection URLs match with those of connection strings? I'll try using "Connection Timeout" and "Connect Timeout" as parameter names. And unfortunately I can't use connection strings in my project.

(Apr 15 '11 at 06:05) Bogdan0x400 Bogdan0x400's gravatar image

Bogdan, parameters from connectionUrl are identical to those that are used in connection strings. This was done intentionally to prevent the mess.

So in your case the connectionUrl might look like this one:

var url = sqlserver://MyServer/MyDatabase?MultipleActiveResultSets=True&Connect Timeout=xxx
(Apr 15 '11 at 06:13) Dmitri Maximov Dmitri%20Maximov's gravatar image
Your answer
Please start posting your answer anonymously - your answer will be saved within the current session and published after you log in or create a new account. Please try to give a substantial answer, for discussions, please use comments and please do remember to vote (after you log in)!
toggle preview

Subscription:

Once you sign in you will be able to subscribe for any updates here

Tags:

×574
×1

Asked: Apr 15 '11 at 05:42

Seen: 2,142 times

Last updated: Apr 15 '11 at 06:13

powered by OSQA