
Signature
Ginny Caughey
Device Application Development MVP
> I've written an application for inventory and price enquiry. The
> application is written in c# using VS2008, .NetCF2.0 and SQLCE3.5. The
[quoted text clipped - 7 lines]
>
> Thanks in advance
There is no concept of ConnectTimeout and QueryTimeout with SQL CE. If at all they are parsed, they are parsed and ignored as these timeout business is when client has to wait for server's response. In case of SQLCE, connecting and querying is just another function call and so timeouts do not matter.
So we have to rule out timeout possibility. Now coming to on what and all could be the reason why a connectino could fail are:
1) Connection String information is wrong - SqlCeException should contain the exact details of what is wrong
2) Not enough memory to load all the engine in memory. Please refer to blog articles: (Link1, Link2)
Thanks,
Laxmi [Disclaimer: All postings are as-is and confer no rights]
> Have you tried setting Connect Timeout=500 or some such in the connection
> string? Does that make any difference?
[quoted text clipped - 10 lines]
>>
>> Thanks in advance
Ginny Caughey MVP - 12 Aug 2008 16:00 GMT
Thanks for the details, Laxmi!

Signature
Ginny Caughey
Device Application Development MVP
There is no concept of ConnectTimeout and QueryTimeout with SQL CE. If at all they are parsed, they are parsed and ignored as these timeout business is when client has to wait for server's response. In case of SQLCE, connecting and querying is just another function call and so timeouts do not matter.
So we have to rule out timeout possibility. Now coming to on what and all could be the reason why a connectino could fail are:
1) Connection String information is wrong - SqlCeException should contain the exact details of what is wrong
2) Not enough memory to load all the engine in memory. Please refer to blog articles: (Link1, Link2)
Thanks,
Laxmi [Disclaimer: All postings are as-is and confer no rights]
arnodieter - 13 Aug 2008 07:52 GMT
Thanks for the tips.
The solution was 2) Not enough memory. I've installed an additional memory card and the application is also installed on the memory card. Now the problem is solved.
But I'm still wondering why there isn't a useful error message from the .NETCF or the SQLCE and why the error occured only sometimes.
Regards
There is no concept of ConnectTimeout and QueryTimeout with SQL CE. If at all they are parsed, they are parsed and ignored as these timeout business is when client has to wait for server's response. In case of SQLCE, connecting and querying is just another function call and so timeouts do not matter.
So we have to rule out timeout possibility. Now coming to on what and all could be the reason why a connectino could fail are:
1) Connection String information is wrong - SqlCeException should contain the exact details of what is wrong
2) Not enough memory to load all the engine in memory. Please refer to blog articles: (Link1, Link2)
Thanks,
Laxmi [Disclaimer: All postings are as-is and confer no rights]
"Ginny Caughey MVP" <ginny.caughey.online@wasteworks.com> wrote in message news:OHpsOK%23%23IHA.4772@TK2MSFTNGP06.phx.gbl...
> Have you tried setting Connect Timeout=500 or some such in the connection
> string? Does that make any difference?
>
> --
>
> Ginny Caughey
> Device Application Development MVP
>
>
> "arnodieter" <arnodieter@gmx.de> wrote in message
> news:g7h13j$isr$03$1@news.t-online.com...
>> I've written an application for inventory and price enquiry. The
>> application is written in c# using VS2008, .NetCF2.0 and SQLCE3.5. The
>> device where the application must run is a Symbol/Motorola MC1000 which
>> has very poor performance and very little memory.
>> Sometimes the connection doesn't open. It seems to me, that the device is
>> "swapping memory" and therefor needs longer than the sqlce-server aspects.
>> - Who can I workaround these problems?
>> - Why is the timeout-property of the connection read-only and defaults to
>> "0"?
>>
>> Thanks in advance
>>
>>
>
Hello Ginny.
As you should remember: timeout property is readonly...
> Have you tried setting Connect Timeout=500 or some such in the connection
> string? Does that make any difference?
[quoted text clipped - 11 lines]
>>
>> Thanks in advance