Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
SqlCE - CommandTimeout
Message
General information
Forum:
ASP.NET
Category:
The Mere Mortals .NET Framework
Environment versions
Environment:
C# 2.0
Miscellaneous
Thread ID:
01231602
Message ID:
01231753
Views:
17
This message has been marked as a message which has helped to the initial question of the thread.
Mat,

>I have a subclass of mmDataAccessBase for SqlCE (Compact Edition). I am running into an error when I call the ExecScalar command since SqlCE does not support the CommandTimeout property. Trying to set this property in the base ExecScalar method throws an exception. What is the best way to get around this? Do I need to override the ExecScalar method in my subclass?

It looks like the SqlCE command object supports the CommandTimeout property, it's just that it's always set to zero. I recommend setting the CommandTimeout variable in your SqlCe class to zero (you can set it in the constructor) and see if that helps.

Best Regards,
Kevin McNeish
Eight-Time .NET MVP
VFP and iOS Author, Speaker & Trainer
Oak Leaf Enterprises, Inc.
Chief Architect, MM Framework
http://www.oakleafsd.com
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform