﻿<?xml version="1.0" encoding="utf-8"?><rss version="2.0"><channel><title>Ayende @ Rahien</title><link>http://ayende.com</link><description>Ayende @ Rahien</description><copyright>Copyright (C) Ayende Rahien  2004 - 2021 (c) 2026</copyright><ttl>60</ttl><item><title>Mr_Simple commented on SQL CE Issues, Part 2</title><description>Ah.  Now the explanation of the failure is simple, but most of all clear.
  
  
Mr_Simple says thanks for sharing your pain on this issue.
  
</description><link>http://ayende.com/3259/sql-ce-issues-part-2#comment21</link><guid>http://ayende.com/3259/sql-ce-issues-part-2#comment21</guid><pubDate>Wed, 09 Apr 2008 00:36:22 GMT</pubDate></item><item><title>Simkin Alex commented on SQL CE Issues, Part 2</title><description>Connection Timeout property is read-only and is equal to 0.
  
  
http://msdn2.microsoft.com/en-us/library/system.data.sqlserverce.sqlceconnection.connectiontimeout.aspx
  
</description><link>http://ayende.com/3259/sql-ce-issues-part-2#comment20</link><guid>http://ayende.com/3259/sql-ce-issues-part-2#comment20</guid><pubDate>Wed, 09 Apr 2008 00:08:45 GMT</pubDate></item><item><title>Ayende Rahien commented on SQL CE Issues, Part 2</title><description>I mean that doing new SqlCeConnection("Database=test.sdf;Connect Timeout=30").Open() throws an exception, Connect Timeout not understood.
</description><link>http://ayende.com/3259/sql-ce-issues-part-2#comment19</link><guid>http://ayende.com/3259/sql-ce-issues-part-2#comment19</guid><pubDate>Tue, 08 Apr 2008 23:57:06 GMT</pubDate></item><item><title>Mr_Simple commented on SQL CE Issues, Part 2</title><description>One last question, again for the benefit of us all, but mostly me because I need things simple.
  
  
Your comment "the observed behavior" has intrigued me because I work with databases most of the time, and like most folks here have had the docs not match our personal observations from time to time.
  
  
Are you stating you have found official Microsoft documentation that the connection timeout property is not supported anymore, or is this something that your are just fighting on your box at the moment.
  
  
There is a very important distinction between Microsoft dropping support for this critical feature and you fighting the API on your box.
  
  
Just wondering.
</description><link>http://ayende.com/3259/sql-ce-issues-part-2#comment18</link><guid>http://ayende.com/3259/sql-ce-issues-part-2#comment18</guid><pubDate>Tue, 08 Apr 2008 23:51:40 GMT</pubDate></item><item><title>Ayende Rahien commented on SQL CE Issues, Part 2</title><description>Those docs are for 1.1, I am using the 2.0 version.
  
And yes, the observed behavior doesn't match the docs.
</description><link>http://ayende.com/3259/sql-ce-issues-part-2#comment17</link><guid>http://ayende.com/3259/sql-ce-issues-part-2#comment17</guid><pubDate>Tue, 08 Apr 2008 23:00:41 GMT</pubDate></item><item><title>Mr_Simpl commented on SQL CE Issues, Part 2</title><description>http://msdn2.microsoft.com/en-us/library/aa326335(VS.71).aspx 
  
  
So basically you are saying the Microsoft docs are wrong - correct?
  
  
Just trying to save the rest of us a little time here so we don't have to run down the same issue.
</description><link>http://ayende.com/3259/sql-ce-issues-part-2#comment16</link><guid>http://ayende.com/3259/sql-ce-issues-part-2#comment16</guid><pubDate>Tue, 08 Apr 2008 22:59:23 GMT</pubDate></item><item><title>Alex Simkin commented on SQL CE Issues, Part 2</title><description>Well... It did for me (how else could I get this message). Can you build 10 LOC test bed demonstrating this deadlock?
</description><link>http://ayende.com/3259/sql-ce-issues-part-2#comment15</link><guid>http://ayende.com/3259/sql-ce-issues-part-2#comment15</guid><pubDate>Tue, 08 Apr 2008 21:53:16 GMT</pubDate></item><item><title>Ayende Rahien commented on SQL CE Issues, Part 2</title><description>Alex,
  
the situation above is showing a situation of them waiting for ~6 HOURS.
  
That is with the defaults, so it should have timed out after 4 seconds, it didn't
</description><link>http://ayende.com/3259/sql-ce-issues-part-2#comment14</link><guid>http://ayende.com/3259/sql-ce-issues-part-2#comment14</guid><pubDate>Tue, 08 Apr 2008 21:50:11 GMT</pubDate></item><item><title>Alex Simkin commented on SQL CE Issues, Part 2</title><description>I got this:
  
  
SQL Server Compact timed out waiting for a lock. The default lock time is 2000ms for devices and 5000ms for desktops. The default lock timeout can be increased in the connection string using the ssce: default lock timeout property. [ Session id = 2,Thread id = 4700,Process id = 4296,Table name = Test,Conflict type = s lock (x blocks),Resource = TAB ]
  
  
So, timeouts are supported.
</description><link>http://ayende.com/3259/sql-ce-issues-part-2#comment13</link><guid>http://ayende.com/3259/sql-ce-issues-part-2#comment13</guid><pubDate>Tue, 08 Apr 2008 21:46:04 GMT</pubDate></item><item><title>Ayende Rahien commented on SQL CE Issues, Part 2</title><description>Connect Timeout is not supported by Sql CE
</description><link>http://ayende.com/3259/sql-ce-issues-part-2#comment12</link><guid>http://ayende.com/3259/sql-ce-issues-part-2#comment12</guid><pubDate>Tue, 08 Apr 2008 20:19:22 GMT</pubDate></item><item><title>Mr_Simple commented on SQL CE Issues, Part 2</title><description>  
See if this helps any.
  
  
http://msdn2.microsoft.com/en-us/library/aa326335(VS.71).aspx
</description><link>http://ayende.com/3259/sql-ce-issues-part-2#comment11</link><guid>http://ayende.com/3259/sql-ce-issues-part-2#comment11</guid><pubDate>Tue, 08 Apr 2008 20:12:55 GMT</pubDate></item><item><title>Ayende Rahien commented on SQL CE Issues, Part 2</title><description>This is for a transaction. And the default is valid and good for me.
  
My issue is with opening the connection
</description><link>http://ayende.com/3259/sql-ce-issues-part-2#comment10</link><guid>http://ayende.com/3259/sql-ce-issues-part-2#comment10</guid><pubDate>Tue, 08 Apr 2008 18:06:53 GMT</pubDate></item><item><title>Yuri commented on SQL CE Issues, Part 2</title><description>Looks like setting up 'ssce: default lock timeout' property in connection string can help you.
  
see http://msdn2.microsoft.com/en-us/library/ms173385.aspx
</description><link>http://ayende.com/3259/sql-ce-issues-part-2#comment9</link><guid>http://ayende.com/3259/sql-ce-issues-part-2#comment9</guid><pubDate>Tue, 08 Apr 2008 17:29:59 GMT</pubDate></item><item><title>Frans Bouma commented on SQL CE Issues, Part 2</title><description>CE is a horrible database. No scalar queries in selects/where etc., a nasty bug in parameter binding in anonymous parametered queries (so you have to change code for CE 3.x separately), and less features than MS Access. 
  
  
I'd abandone it a.s.a.p. if you have the chance and go for a .mdb or firebird embedded approach. 
</description><link>http://ayende.com/3259/sql-ce-issues-part-2#comment8</link><guid>http://ayende.com/3259/sql-ce-issues-part-2#comment8</guid><pubDate>Tue, 08 Apr 2008 17:22:54 GMT</pubDate></item><item><title>Ayende Rahien commented on SQL CE Issues, Part 2</title><description>Mr_Simple, 
  
No, this is not supported in SQL CE.
</description><link>http://ayende.com/3259/sql-ce-issues-part-2#comment7</link><guid>http://ayende.com/3259/sql-ce-issues-part-2#comment7</guid><pubDate>Tue, 08 Apr 2008 17:07:58 GMT</pubDate></item><item><title>Ayende Rahien commented on SQL CE Issues, Part 2</title><description>You cannot share a SqlCeConnection between threads, but you can use a single DB from multiple threads
</description><link>http://ayende.com/3259/sql-ce-issues-part-2#comment6</link><guid>http://ayende.com/3259/sql-ce-issues-part-2#comment6</guid><pubDate>Tue, 08 Apr 2008 16:48:04 GMT</pubDate></item><item><title>Mr_Simple commented on SQL CE Issues, Part 2</title><description>I haven't tried it because I don't use CE, but doesn't specifying a timeout value in the connect string work as per SQL Server?
  
  
SqlCeConnection conn = new SqlCeConnection();
  
conn.ConnectionString = "Persist Security Info=False; Data Source = Northwind.sdf;" + 
  
    "Password = &lt;password&gt;; server=mySQLServer;Connect Timeout=30";
  
</description><link>http://ayende.com/3259/sql-ce-issues-part-2#comment5</link><guid>http://ayende.com/3259/sql-ce-issues-part-2#comment5</guid><pubDate>Tue, 08 Apr 2008 16:28:59 GMT</pubDate></item><item><title>Peter ritchie commented on SQL CE Issues, Part 2</title><description>The docs for SqlCeConnection look at little disappointing:
  
"Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe."
  
-- http://msdn2.microsoft.com/en-us/library/system.data.sqlserverce.sqlceconnection(VS.80).aspx
  
</description><link>http://ayende.com/3259/sql-ce-issues-part-2#comment4</link><guid>http://ayende.com/3259/sql-ce-issues-part-2#comment4</guid><pubDate>Tue, 08 Apr 2008 16:15:16 GMT</pubDate></item><item><title>Mark S. Rasmussen commented on SQL CE Issues, Part 2</title><description>You might be able to use something like the method I used just recently for a normal SqlConnection, to specify a timeout:
  
http://improve.dk/blog/2008/03/10/controlling-sqlconnection-timeouts
</description><link>http://ayende.com/3259/sql-ce-issues-part-2#comment3</link><guid>http://ayende.com/3259/sql-ce-issues-part-2#comment3</guid><pubDate>Tue, 08 Apr 2008 15:58:01 GMT</pubDate></item><item><title>Ayende Rahien commented on SQL CE Issues, Part 2</title><description>It is supposedly safe for multi threading...
</description><link>http://ayende.com/3259/sql-ce-issues-part-2#comment2</link><guid>http://ayende.com/3259/sql-ce-issues-part-2#comment2</guid><pubDate>Tue, 08 Apr 2008 15:25:24 GMT</pubDate></item><item><title>Rik Hemsley commented on SQL CE Issues, Part 2</title><description>Is it just me, or... is SQL Server CE supposed to be a 'single user' database?
</description><link>http://ayende.com/3259/sql-ce-issues-part-2#comment1</link><guid>http://ayende.com/3259/sql-ce-issues-part-2#comment1</guid><pubDate>Tue, 08 Apr 2008 15:24:07 GMT</pubDate></item></channel></rss>