<?xml version="1.0" encoding="utf-8"?><rss version="2.0"><channel><title>Wilson ORMapper Forums : Other Databases</title><link>http://wilsonormapper.com/Forums/Default.aspx?part=74&amp;action=rss&amp;id=8&amp;key=JB7efm7QmfG03XjlZlrI9g%3d%3d</link><description>Wilson ORMapper Forums : Other Databases</description><item><title>Postgresql connection issues</title><link>http://wilsonormapper.com/Forums/Default.aspx?part=74&amp;action=thread&amp;id=2570&amp;key=XmQlpd9erKIcuYMiGmncHA%3d%3d&amp;post=7701</link><pubDate>Tue, 14 Aug 2007 23:41:48 GMT</pubDate><description>&lt;P&gt;Can someone provide me the oledb&amp;nbsp;connection string to connect to Postgresql db?...I tried different combinations but none seems to work.&lt;/P&gt;</description></item><item><title>VistaDb 2.1 working with WilsonORMapper.DotNetV2</title><link>http://wilsonormapper.com/Forums/Default.aspx?part=74&amp;action=thread&amp;id=2541&amp;key=vJl1myRZwdOjaVUUHdqi3w%3d%3d&amp;post=7641</link><pubDate>Fri, 01 Jun 2007 15:06:36 GMT</pubDate><description>&lt;P&gt;In case any &lt;STRONG&gt;VistaDb 2.1&lt;/STRONG&gt; users may happen upon this website, I just tried the latest .NET2.0 ORmapper 4.2.2.0 and it works fine with VistaDb 2.1.&lt;/P&gt;
&lt;P dir=ltr&gt;&lt;STRONG&gt;Using:&lt;/STRONG&gt;&lt;/P&gt;
&lt;BLOCKQUOTE dir=ltr style="MARGIN-RIGHT: 0px"&gt;
&lt;P&gt;&lt;STRONG&gt;VistaDB20.dll&lt;/STRONG&gt; version &lt;STRONG&gt;2.1.8.2&lt;/STRONG&gt;&lt;/P&gt;
&lt;P&gt;Net 2.0 provider Vis&lt;STRONG&gt;taDB.Provider.dll&lt;/STRONG&gt; version &lt;STRONG&gt;2.20.26.0&lt;/STRONG&gt;&lt;/P&gt;
&lt;P&gt;&lt;STRONG&gt;ORmapper 4.2.2.0 &lt;/STRONG&gt;&lt;/P&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;Previously I had diffculties using VistaDb and ORM 4.2 under .NET1.1 when mapping BLOB's and GUID's and I ended up rolling back to ORM 2.2.&amp;nbsp; The problem could have originally been a configuration problem on my end in the first place.&amp;nbsp; Anyway, I am happy to report things are well.&lt;/P&gt;
&lt;P&gt;Thank you Paul for the great software!&lt;/P&gt;
&lt;P&gt;-Ed&lt;/P&gt;</description></item><item><title>Firebird embedded</title><link>http://wilsonormapper.com/Forums/Default.aspx?part=74&amp;action=thread&amp;id=2432&amp;key=mp6nWC7OhsdmdzIA%2bdfJMA%3d%3d&amp;post=7372</link><pubDate>Sat, 16 Dec 2006 06:53:59 GMT</pubDate><description>&lt;P&gt;I'm having problems trying to figure out how to set up a project to use Firebird embedded database. Has anyone dones this before? or can perhaps point me to some resources online?&lt;/P&gt;
&lt;P&gt;Many thanks,&lt;BR&gt;Dany.&lt;/P&gt;</description></item><item><title>PostgreSQL</title><link>http://wilsonormapper.com/Forums/Default.aspx?part=74&amp;action=thread&amp;id=1273&amp;key=yzNTq5SPzqUAkA25x%2f7ZLA%3d%3d&amp;post=7268</link><pubDate>Wed, 08 Nov 2006 10:39:27 GMT</pubDate><description>&lt;P&gt;Postgresql uses quotes as delimiters. This works for me:&lt;/P&gt;
&lt;P&gt;provider.StartDelimiter = "\"";&lt;BR&gt;provider.EndDelimiter = "\"";&lt;/P&gt;</description></item><item><title>FETCH Support</title><link>http://wilsonormapper.com/Forums/Default.aspx?part=74&amp;action=thread&amp;id=2314&amp;key=kS5Xc%2bvO%2b0xHTTaJQA7oQg%3d%3d&amp;post=7105</link><pubDate>Wed, 06 Sep 2006 13:05:56 GMT</pubDate><description>&lt;P&gt;&lt;FONT face=Tahoma size=2&gt;Hi Paul,&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT face=Tahoma size=2&gt;Yeap, that sql puzzle works just fine :P&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT face=Tahoma size=2&gt;Thanks a lot !!&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT face=Tahoma size=2&gt;&lt;/FONT&gt;&amp;nbsp;&lt;/P&gt;</description></item><item><title>Informix</title><link>http://wilsonormapper.com/Forums/Default.aspx?part=74&amp;action=thread&amp;id=2300&amp;key=KElx6NrEFLt2HzVmMGsb4g%3d%3d&amp;post=7104</link><pubDate>Wed, 06 Sep 2006 12:43:06 GMT</pubDate><description>See &lt;a href="/Wiki/Default.aspx?part=76&amp;amp;action=wiki&amp;amp;id=2&amp;amp;key=GTadcwfi5GNbY%2bUIIBoS2A%3d%3d"&gt;this wiki entry&lt;/a&gt; for how to setup custom providers.&amp;nbsp; I don't have an example for Informix, but you'll see this concept and should be able to get it to work.&amp;nbsp; Alternatively you can use regular Odbc or OleDb, but it of course is always preferable to use a native .NET provider, plus that will allow you to use paging and "identities" if you can configure it appropriately.&lt;br&gt;&lt;br&gt;Thanks, Paul Wilson&lt;br&gt;</description></item><item><title>Informix</title><link>http://wilsonormapper.com/Forums/Default.aspx?part=74&amp;action=thread&amp;id=2300&amp;key=KElx6NrEFLt2HzVmMGsb4g%3d%3d&amp;post=7061</link><pubDate>Wed, 06 Sep 2006 12:38:38 GMT</pubDate><description>&lt;P&gt;We have an Informix back end DB that we will need to be able to work with. Will this framework support it through normal ADO operations with ODBC?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;thx!&lt;/P&gt;</description></item><item><title>FETCH Support</title><link>http://wilsonormapper.com/Forums/Default.aspx?part=74&amp;action=thread&amp;id=2314&amp;key=kS5Xc%2bvO%2b0xHTTaJQA7oQg%3d%3d&amp;post=7103</link><pubDate>Wed, 06 Sep 2006 12:38:19 GMT</pubDate><description>I like a good sql puzzle -- the following sql should work:&lt;br&gt;&lt;br&gt;SELECT TOP 1 *&lt;br&gt;FROM page_Content&amp;nbsp; &lt;br&gt;WHERE PageId=@PageId&lt;br&gt;ORDER BY PageVersion DESC&lt;br&gt;&lt;br&gt;This should be easy to create with the ORMapper using ObjectQuery for the first "page" of size one in a database-independent manner.&amp;nbsp; You can use the QueryHelper to help build the where-clause, but OPath won't work since it doesn't currently support paging (not yet anyhow).&lt;br&gt;&lt;br&gt;Thanks, Paul Wilson&lt;br&gt;&lt;br&gt;&lt;br&gt;</description></item><item><title>SQL Server vs. MySQL vs. PostgreSQL (Compatibility)</title><link>http://wilsonormapper.com/Forums/Default.aspx?part=74&amp;action=thread&amp;id=2315&amp;key=wORvz6zFISu2smPaHqLVlA%3d%3d&amp;post=7102</link><pubDate>Wed, 06 Sep 2006 12:10:38 GMT</pubDate><description>See &lt;a href="/Wiki/Default.aspx?part=76&amp;amp;action=wiki&amp;amp;id=2&amp;amp;key=GTadcwfi5GNbY%2bUIIBoS2A%3d%3d"&gt;this wiki enty&lt;/a&gt; about setting up custom providers for MySql, PostgreSql, and others.&amp;nbsp; The ORMapper will generate the database-specific sql for paging and "identities" for the provider you specify, and you get to provide the details for custom providers.&amp;nbsp; By the way, the reason I don't hard-code MySql and the others is because they have multiple possible ADO.NET providers, as well as multiple configurations, not to mention this allows the ORMapper to support more databases than any other.&amp;nbsp; The ORMapper also has a simple QueryHelper that you can use to help build your expressions in a database-independent manner, and OPath gives you more options.&lt;br&gt;&lt;br&gt;Thanks, Paul Wilson&lt;br&gt;</description></item><item><title>SQL Server vs. MySQL vs. PostgreSQL (Compatibility)</title><link>http://wilsonormapper.com/Forums/Default.aspx?part=74&amp;action=thread&amp;id=2315&amp;key=wORvz6zFISu2smPaHqLVlA%3d%3d&amp;post=7101</link><pubDate>Wed, 06 Sep 2006 10:11:05 GMT</pubDate><description>&lt;P&gt;&lt;FONT face=Tahoma size=2&gt;I am building one web application and using the ORMapper. I want that my application work with several databases (SQL Server,MySQL,PostgreSQL, Access)&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT face=Tahoma size=2&gt;&lt;STRONG&gt;This post is to know how WilsonORMapper "work" behind the scenes and if I have to make some precaution about the queries I made using ObjectQuery,&amp;nbsp; OpathQuery ans so on…&lt;/STRONG&gt;&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT face=Tahoma size=2&gt;For example:&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT face=Tahoma size=2&gt;&lt;STRONG&gt;-Using MsSQL provider&lt;/STRONG&gt;&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT face=Tahoma size=2&gt;int templateId = 1;&lt;BR&gt;string where = "TemplateId=" + templateId;&lt;BR&gt;ObjectQuery&amp;lt;MyTable&amp;gt; query = new ObjectQuery&amp;lt;MyTable&amp;gt;(where, string.Empty, 1, 1);&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT face=Tahoma size=2&gt;Using ORMapper I will get:&lt;BR&gt;SELECT TOP 1 templateId FROM [MyTable] WHERE TemplateId=1&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT face=Tahoma size=2&gt;&lt;STRONG&gt;-Lets switched the provider to MySQL&lt;/STRONG&gt;&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT face=Tahoma size=2&gt;The MySQL database dont have "TOP", so SELECT TOP 1 * FROM [MyTable], becomes SELECT * FROM [MyTable] LIMIT 1&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT face=Tahoma size=2&gt;Does the WilsonORMapper made (behind the scenes) the switched depending of the Provider I choose ?&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT face=Tahoma size=2&gt;Do I have to make some precautions about the queries I made?&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT face=Tahoma size=2&gt;Thanks&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;BR&gt;&lt;FONT face=Tahoma color=#a9a9a9 size=2&gt;References:&lt;BR&gt;SQL Server vs. MySQL: Syntax differences, similar GUIs&lt;BR&gt;&lt;/FONT&gt;&lt;A href="http://searchtechtarget.techtarget.com/originalContent/0,289142,sid91_gci1207215,00.html"&gt;&lt;FONT face=Tahoma color=#a9a9a9 size=2&gt;http://searchtechtarget.techtarget.com/originalContent/0,289142,sid91_gci1207215,00.html&lt;/FONT&gt;&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT face=Tahoma color=#a9a9a9 size=2&gt;Top 3 differences between PostgreSQL and MS SQL&lt;BR&gt;&lt;/FONT&gt;&lt;A href="http://www.petefreitag.com/item/5.cfm"&gt;&lt;FONT face=Tahoma color=#a9a9a9 size=2&gt;http://www.petefreitag.com/item/5.cfm&lt;/FONT&gt;&lt;/A&gt;&lt;BR&gt;&lt;/P&gt;</description></item><item><title>FETCH Support</title><link>http://wilsonormapper.com/Forums/Default.aspx?part=74&amp;action=thread&amp;id=2314&amp;key=kS5Xc%2bvO%2b0xHTTaJQA7oQg%3d%3d&amp;post=7100</link><pubDate>Wed, 06 Sep 2006 08:56:58 GMT</pubDate><description>&lt;P&gt;&lt;FONT face=Tahoma size=2&gt;&lt;STRONG&gt;[First approached]&lt;/STRONG&gt; :&lt;BR&gt;&lt;BR&gt;DECLARE @maxversion int&lt;BR&gt;SET @maxversion = (SELECT MAX(PageVersion) FROM page_Content WHERE &lt;/FONT&gt;&lt;A href="mailto:PageId=@PageId"&gt;&lt;FONT face=Tahoma size=2&gt;PageId=@PageId&lt;/FONT&gt;&lt;/A&gt;&lt;FONT face=Tahoma size=2&gt;)&lt;BR&gt;SELECT * FROM page_Content &lt;BR&gt;WHERE &lt;/FONT&gt;&lt;A href="mailto:PageId=@PageId"&gt;&lt;FONT face=Tahoma size=2&gt;PageId=@PageId&lt;/FONT&gt;&lt;/A&gt;&lt;FONT face=Tahoma size=2&gt; AND &lt;/FONT&gt;&lt;A href="mailto:PageVersion=@maxversion"&gt;&lt;FONT face=Tahoma size=2&gt;PageVersion=@maxversion&lt;/FONT&gt;&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT face=Tahoma size=2&gt;For example, I can also do some simplification like this :&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT face=Tahoma size=2&gt;&lt;STRONG&gt;[Second approached]&lt;/STRONG&gt; :&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT face=Tahoma size=2&gt;SELECT * FROM page_Content &amp;nbsp;&lt;BR&gt;WHERE &lt;/FONT&gt;&lt;A href="mailto:PageId=@PageId"&gt;&lt;FONT face=Tahoma size=2&gt;PageId=@PageId&lt;/FONT&gt;&lt;/A&gt;&lt;FONT face=Tahoma size=2&gt; AND PageVersion=(&lt;FONT size=1&gt;SELECT MAX(PageVersion) FROM page_Content WHERE &lt;/FONT&gt;&lt;/FONT&gt;&lt;A href="mailto:PageId=@PageId"&gt;&lt;FONT face=Tahoma size=1&gt;PageId=@PageId&lt;/FONT&gt;&lt;/A&gt;&lt;FONT face=Tahoma size=2&gt;)&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;BR&gt;&lt;FONT face=Tahoma size=2&gt;&lt;STRONG&gt;Like I have said I don’t want to use any Stored Procedure !! &lt;/STRONG&gt;The main idea of using the ORMapper is to make my aplication work with several databases.&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT face=Tahoma size=2&gt;If I made the [&lt;STRONG&gt;First approached&lt;/STRONG&gt;] I think I have to build two queries in the ORMapper. One to get the (@maxversion) value and other to pass that result to the SELECT statement.&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT face=Tahoma size=2&gt;If I made the [&lt;STRONG&gt;Second approached&lt;/STRONG&gt;], and I think is the better one, I don’t know how to reproduce this in the WilsonORMapper. &lt;STRONG&gt;Can I do this using OpathQuery ?&lt;/STRONG&gt; I don’t have any idea ?!?!&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT face=Tahoma size=2&gt;Thanks and&amp;nbsp; Sorry so many replys&lt;/FONT&gt;&lt;/P&gt;</description></item><item><title>FETCH Support</title><link>http://wilsonormapper.com/Forums/Default.aspx?part=74&amp;action=thread&amp;id=2314&amp;key=kS5Xc%2bvO%2b0xHTTaJQA7oQg%3d%3d&amp;post=7099</link><pubDate>Wed, 06 Sep 2006 08:20:36 GMT</pubDate><description>&lt;P&gt;&lt;FONT face=Tahoma size=2&gt;After some tests I think I have found the soluction&amp;nbsp;( &lt;STRONG&gt;using your initial tip&lt;/STRONG&gt;) it was easy to migrate.&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT face=Tahoma size=2&gt;I get this :&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;STRONG&gt;&lt;FONT face=Tahoma size=2&gt;[First SP]&lt;/FONT&gt;&lt;/STRONG&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT face=Tahoma size=2&gt;DECLARE @maxversion int&lt;BR&gt;SET @maxversion = (SELECT MAX(PageVersion) FROM page_Content WHERE &lt;/FONT&gt;&lt;A href="mailto:PageId=@PageId"&gt;&lt;FONT face=Tahoma size=2&gt;PageId=@PageId&lt;/FONT&gt;&lt;/A&gt;&lt;FONT face=Tahoma size=2&gt;)&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT face=Tahoma size=2&gt;SELECT * FROM page_Content&amp;nbsp;&lt;BR&gt;WHERE &lt;/FONT&gt;&lt;A href="mailto:PageId=@PageId"&gt;&lt;FONT face=Tahoma size=2&gt;PageId=@PageId&lt;/FONT&gt;&lt;/A&gt;&lt;FONT face=Tahoma size=2&gt; AND &lt;/FONT&gt;&lt;A href="mailto:PageVersion=@maxversion"&gt;&lt;FONT face=Tahoma size=2&gt;PageVersion=@maxversion&lt;/FONT&gt;&lt;/A&gt;&lt;BR&gt;&lt;/P&gt;
&lt;P&gt;&lt;STRONG&gt;&lt;FONT face=Tahoma size=2&gt;[Second SP]&lt;/FONT&gt;&lt;/STRONG&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT face=Tahoma size=2&gt;(...)&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT face=Tahoma size=2&gt;DECLARE @maxPageId int&lt;BR&gt;SET @maxPageId = (SELECT MAX(PageId) FROM page_Content) +1&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT face=Tahoma size=2&gt;INSERT INTO page_Content (&lt;STRONG&gt;PageId&lt;/STRONG&gt;, PageVersion, bla.. bla..bla&lt;BR&gt;) VALUES (&lt;STRONG&gt;@maxPageId&lt;/STRONG&gt;, @PageVersion, bla.. bla..bla&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT face=Tahoma size=2&gt;(...)&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT face=Tahoma size=2&gt;&lt;STRONG&gt;Question:&lt;/STRONG&gt;&lt;/FONT&gt;&lt;/P&gt;
&lt;P class=MsoNormal style="MARGIN: 0cm 0cm 0pt"&gt;&lt;FONT face=Tahoma&gt;&lt;FONT size=2&gt;Base in your own experience, can you point me the better solution to migrate this to WilsonORMapper ? Using &lt;SPAN style="FONT-SIZE: 9pt; COLOR: black; FONT-FAMILY: Arial"&gt;ObjectQuery or OpathQuery&amp;nbsp; ?&lt;/SPAN&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;/P&gt;
&lt;P class=MsoNormal style="MARGIN: 0cm 0cm 0pt"&gt;&lt;SPAN style="FONT-SIZE: 9pt; COLOR: black; FONT-FAMILY: Arial"&gt;&lt;BR&gt;&lt;FONT face=Tahoma size=2&gt;For example the first SP, I have to do &lt;STRONG&gt;two&lt;/STRONG&gt;&amp;nbsp;separated queries or there is any “tip” to join all in one ?&lt;/FONT&gt;&lt;/SPAN&gt;&lt;/P&gt;</description></item><item><title>FETCH Support</title><link>http://wilsonormapper.com/Forums/Default.aspx?part=74&amp;action=thread&amp;id=2314&amp;key=kS5Xc%2bvO%2b0xHTTaJQA7oQg%3d%3d&amp;post=7098</link><pubDate>Tue, 05 Sep 2006 20:10:19 GMT</pubDate><description>&lt;P&gt;&lt;FONT face=Tahoma size=2&gt;Hi Paul,&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT face=Tahoma size=2&gt;You are right and thanks for your good support. The main idea is to migrate&amp;nbsp;the only&amp;nbsp;two Stored Procedures that use cursors but I have some dificulties to migrate them.&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT face=Tahoma size=2&gt;&lt;STRONG&gt;[First SP]&lt;/STRONG&gt;&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT face=Tahoma size=2&gt;There is in the page_Content&amp;nbsp;table several pages with the same pageId... the only difference is in each&amp;nbsp;PageVersion they have (we can have several pages with same pageID with diferents PageVersion). The idea here is to get the LastVersion of that page (pageId) but I need to know the MAX(PageVersion) of that particulary page (pageID).&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT face=Tahoma size=2&gt;(.....)&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT face=Tahoma size=2&gt;DECLARE @maxversion int&lt;BR&gt;DECLARE page_Content&amp;nbsp; CURSOR FOR SELECT MAX(PageVersion) FROM page_Content WHERE &lt;/FONT&gt;&lt;A href="mailto:PageId=@PageId"&gt;&lt;FONT face=Tahoma size=2&gt;PageId=@PageId&lt;/FONT&gt;&lt;/A&gt;&lt;BR&gt;&lt;FONT face=Tahoma size=2&gt;OPEN page_Content&lt;BR&gt;FETCH NEXT FROM page_Content INTO @maxversion&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT face=Tahoma size=2&gt;IF @@FETCH_STATUS=0&lt;BR&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;STRONG&gt;SELECT * FROM page_Content&amp;nbsp;&lt;BR&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;WHERE &lt;/STRONG&gt;&lt;/FONT&gt;&lt;A href="mailto:PageId=@PageId"&gt;&lt;FONT face=Tahoma size=2&gt;&lt;STRONG&gt;PageId=@PageId&lt;/STRONG&gt;&lt;/FONT&gt;&lt;/A&gt;&lt;FONT face=Tahoma size=2&gt;&lt;STRONG&gt; AND &lt;/STRONG&gt;&lt;/FONT&gt;&lt;A href="mailto:PageVersion=@maxversion"&gt;&lt;FONT face=Tahoma size=2&gt;&lt;STRONG&gt;PageVersion=@maxversion&lt;/STRONG&gt;&lt;/FONT&gt;&lt;/A&gt;&lt;BR&gt;&lt;FONT face=Tahoma size=2&gt;ELSE&lt;BR&gt;&amp;nbsp;SELECT * FROM page_Content&amp;nbsp;&lt;BR&gt;&amp;nbsp;WHERE PageId=-1&lt;BR&gt;GO&lt;BR&gt;&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT face=Tahoma size=2&gt;&lt;STRONG&gt;[Second SP]&lt;/STRONG&gt;&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT face=Tahoma size=2&gt;Here when I&amp;nbsp;INSERT one new page,&amp;nbsp;I need to get the last pageId and&amp;nbsp;add 1 value (PageId+1).&amp;nbsp;&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT face=Tahoma size=2&gt;(...)&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT face=Tahoma size=2&gt;DECLARE max_pageid CURSOR FOR SELECT MAX(PageId) FROM page_Content&lt;BR&gt;OPEN max_pageid&lt;BR&gt;FETCH NEXT FROM max_pageid INTO @PageId&lt;BR&gt;IF @@FETCH_Status=0&lt;BR&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;STRONG&gt;SET @PageId=@PageId+1&lt;BR&gt;&lt;/STRONG&gt;ELSE&lt;BR&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; SET @PageId=1&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT face=Tahoma size=2&gt;INSERT INTO page_Content (&lt;STRONG&gt;PageId&lt;/STRONG&gt;, PageVersion, bla.. bla..bla&lt;BR&gt;) VALUES (&lt;STRONG&gt;@PageId&lt;/STRONG&gt;, @PageVersion, bla.. bla..bla&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT face=Tahoma size=2&gt;I will avoid all stored procedures because like I have said the main idea of using the ORMapper is to make my aplication work with several databases like SQLServer, MySQL and others. I will also avoid using Stored Procedures :)&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT face=Tahoma size=2&gt;Perhaups they are easy to migrate (I am not a DBA)... can you give me some tips to migrate them to simple SQL Statements&amp;nbsp;&amp;nbsp;? &lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT face=Tahoma size=2&gt;After migrate them I will delete&amp;nbsp;(all SP) and migrate&amp;nbsp;to ORMapper using ObjectQuery or OpathQuery&amp;nbsp; :P&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT face=Tahoma&gt;&lt;FONT size=2&gt;Thanks again for your support and for your greate tool !!&lt;FONT size=+0&gt;&lt;/P&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;/FONT&gt;</description></item><item><title>FETCH Support</title><link>http://wilsonormapper.com/Forums/Default.aspx?part=74&amp;action=thread&amp;id=2314&amp;key=kS5Xc%2bvO%2b0xHTTaJQA7oQg%3d%3d&amp;post=7096</link><pubDate>Tue, 05 Sep 2006 18:26:06 GMT</pubDate><description>Cursors are something that you should always avoid if possible, in any database.&amp;nbsp; So if there is a way to use a regular sql statement then its going to be far better.&amp;nbsp; In your example, it appears that the cursor isn't even necessary since the sql SELECT MAX() will always just return a single row.&amp;nbsp; Maybe there's more you've left out, but if that is it then its not necessary to use a cursor at all in this case, although maybe you need to check for the case where there is no recordset at all.&amp;nbsp; Anyhow, if you must use a cursor, or any stored proc, then the ORMapper does give you ways to work with them, typically with the SelectProcedure object instead of the ObjectQuery object, although you can also use ExecuteCommand if its not going to return anything.&amp;nbsp; But keep in mind that once you go down that path then you're not going to be able to seamlessly support multiple databases, so once again straight sql is better, although for a different reason this time.&lt;br&gt;&lt;br&gt;Thanks, Paul Wilson&lt;br&gt;</description></item><item><title>FETCH Support</title><link>http://wilsonormapper.com/Forums/Default.aspx?part=74&amp;action=thread&amp;id=2314&amp;key=kS5Xc%2bvO%2b0xHTTaJQA7oQg%3d%3d&amp;post=7095</link><pubDate>Tue, 05 Sep 2006 15:21:15 GMT</pubDate><description>&lt;P&gt;The SQLServer database has the FETCH Transact.&lt;/P&gt;
&lt;P&gt;FETCH&lt;BR&gt;Retrieves a specific row from a Transact-SQL server cursor.&lt;/P&gt;
&lt;P&gt;I am using the FETCH Transact in some Stored Procedures, like :&lt;/P&gt;
&lt;P&gt;(...)&lt;BR&gt;DECLARE max_pageid CURSOR FOR SELECT MAX(PageId) FROM page_Content&lt;BR&gt;OPEN max_pageid&lt;BR&gt;FETCH NEXT FROM max_pageid INTO @PageId&lt;BR&gt;IF @@FETCH_Status=0&lt;BR&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; SET @PageId=@PageId+1&lt;BR&gt;ELSE&lt;BR&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; SET @PageId=1&lt;BR&gt;(...)&lt;/P&gt;
&lt;P&gt;&lt;BR&gt;The main idea of using the ORMapper is to make my aplication work with several databases like SQLServer, MySQL and others.&lt;/P&gt;
&lt;P&gt;Is there any alterantive or option to do that in the ObjectQuery or OpathQuery&amp;nbsp;?&lt;BR&gt;&lt;BR&gt;Thanks&lt;/P&gt;</description></item><item><title>MS Access Error</title><link>http://wilsonormapper.com/Forums/Default.aspx?part=74&amp;action=thread&amp;id=2275&amp;key=%2fOtwGOUuZmImHCKmaJD3oA%3d%3d&amp;post=7047</link><pubDate>Wed, 23 Aug 2006 20:26:12 GMT</pubDate><description>Google says this may mean a corrupt database file, which is pretty common with Access.&amp;nbsp; It also indicates there are many other possible causes, but the general concensus seems to be that they are due to Access simply not being able to scale / perform well.&amp;nbsp; I haven't experienced this myself, at least not in a very long time, but that's probably because I only use Access for tests and extremely small single-user apps.&amp;nbsp; There's a reason MS has been trying to push MSDE, and now Sql Server Express, and to get rid of Jet.&lt;br&gt;&lt;br&gt;Thanks, Paul Wilson&lt;br&gt;</description></item><item><title>MS Access Error</title><link>http://wilsonormapper.com/Forums/Default.aspx?part=74&amp;action=thread&amp;id=2275&amp;key=%2fOtwGOUuZmImHCKmaJD3oA%3d%3d&amp;post=7004</link><pubDate>Wed, 23 Aug 2006 20:23:08 GMT</pubDate><description>&lt;P&gt;Have you seen this error from MS Access:&lt;/P&gt;
&lt;P&gt;'Cannot open database ''.&amp;nbsp; It may not be a database that your application recognizes, or the file may be corrupt.'&lt;BR&gt;&amp;nbsp; Cannot open database ''.&amp;nbsp; It may not be a database that your application recognizes, or the file may be corrupt.&lt;/P&gt;
&lt;P&gt;Could it be related to how hard the database is being hit?&lt;/P&gt;</description></item><item><title>WilsonXmlDbClient Example</title><link>http://wilsonormapper.com/Forums/Default.aspx?part=74&amp;action=thread&amp;id=823&amp;key=uXfvAnzrVLg31d2ALgf5Ew%3d%3d&amp;post=6833</link><pubDate>Mon, 26 Jun 2006 15:26:19 GMT</pubDate><description>&lt;P class=MsoNormal style="MARGIN: 0cm 0cm 0pt"&gt;&lt;SPAN style="mso-ansi-language: EN-US"&gt;&lt;FONT size=2&gt;&lt;FONT face=Arial&gt;Hi, &lt;?xml:namespace prefix = o ns = "urn:schemas-microsoft-com:office:office" /&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P class=MsoNormal style="MARGIN: 0cm 0cm 0pt"&gt;&lt;FONT face=Arial&gt;&lt;SPAN style="mso-ansi-language: EN-US"&gt;&lt;FONT size=2&gt;I’m also getting the &lt;/FONT&gt;&lt;/SPAN&gt;&lt;SPAN style="FONT-SIZE: 9pt; COLOR: black; mso-ansi-language: EN-US; mso-bidi-font-family: Arial"&gt;"XmlDbParameter: Parameter Direction must be Input" exception. Did someone already fixed this problem? &lt;o:p&gt;&lt;/o:p&gt;&lt;/SPAN&gt;&lt;/FONT&gt;&lt;/P&gt;
&lt;P class=MsoNormal style="MARGIN: 0cm 0cm 0pt"&gt;&lt;SPAN style="FONT-SIZE: 9pt; COLOR: black; mso-ansi-language: EN-US; mso-bidi-font-family: Arial"&gt;&lt;o:p&gt;&lt;FONT face=Arial&gt;&amp;nbsp;&lt;/FONT&gt;&lt;/o:p&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P class=MsoNormal style="MARGIN: 0cm 0cm 0pt"&gt;&lt;SPAN style="FONT-SIZE: 9pt; COLOR: black; mso-ansi-language: EN-US; mso-bidi-font-family: Arial"&gt;&lt;FONT face=Arial&gt;Thanks,&lt;o:p&gt;&lt;/o:p&gt;&lt;/FONT&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P class=MsoNormal style="MARGIN: 0cm 0cm 0pt"&gt;&lt;SPAN style="FONT-SIZE: 9pt; COLOR: black; mso-ansi-language: EN-US; mso-bidi-font-family: Arial"&gt;&lt;o:p&gt;&lt;FONT face=Arial&gt;&amp;nbsp;&lt;/FONT&gt;&lt;/o:p&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P class=MsoNormal style="MARGIN: 0cm 0cm 0pt"&gt;&lt;SPAN style="FONT-SIZE: 9pt; COLOR: black; mso-ansi-language: EN-US; mso-bidi-font-family: Arial"&gt;&lt;FONT face=Arial&gt;Sander&lt;o:p&gt;&lt;/o:p&gt;&lt;/FONT&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description></item><item><title>Oracle output parameters in Stored Procedures</title><link>http://wilsonormapper.com/Forums/Default.aspx?part=74&amp;action=thread&amp;id=2160&amp;key=miPDqoJdLO9BTnqF0W%2fLEw%3d%3d&amp;post=6704</link><pubDate>Mon, 22 May 2006 09:26:09 GMT</pubDate><description>Hi! &lt;br&gt;I would like to certify that output parameters can be returned from Oracle stored procedures.&lt;br&gt;&lt;br&gt;I have tried it but it doesnt seem to work so far and after searching for some time in the forum, I still haven't found a sollution&lt;br&gt;&lt;br&gt;Thanks in advance,&lt;br&gt;&lt;br&gt;Stavros&lt;br&gt;</description></item><item><title>SSH</title><link>http://wilsonormapper.com/Forums/Default.aspx?part=74&amp;action=thread&amp;id=2156&amp;key=HuxS%2bTNRe04jlsGT0iRvrQ%3d%3d&amp;post=6694</link><pubDate>Tue, 16 May 2006 23:11:39 GMT</pubDate><description>&lt;P&gt;I'm wondering if I need to do anything special or if it's possible to use WORM with CoreLab's MySQL .Net Provider connecting Via SSH..&lt;/P&gt;
&lt;P&gt;I found&amp;nbsp; a sample on Corelab's site of how to use SSH to connect to a db, but I'm not sure where/how to utilize this with WORM - I generate my code using Welter's templates and CodeSmith.&lt;/P&gt;
&lt;P&gt;&lt;SPAN class=postbody&gt;mySqlConnection.UserId = "dbusername"; &lt;BR&gt;mySqlConnection.Password = "dbpassword"; &lt;BR&gt;mySqlConnection.Database = "dbname"; &lt;BR&gt;mySqlConnection.Port = 3306; &lt;BR&gt;mySqlConnection.Host = "hostname.com"; &lt;BR&gt;mySqlConnection.Protocol = MySqlProtocol.&lt;SPAN style="COLOR: rgb(255,255,255)"&gt;&lt;B&gt;Ssh&lt;/B&gt;&lt;/SPAN&gt;; &lt;BR&gt;mySqlConnection.SshOptions.Host = "hostname.com"; &lt;BR&gt;mySqlConnection.SshOptions.Port = 22; &lt;BR&gt;mySqlConnection.SshOptions.User = "sshusername"; &lt;BR&gt;mySqlConnection.SshOptions.Password = "sshpassword";&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN class=postbody&gt;Anybody use WORM with a MySQL SSH connection?&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN class=postbody&gt;Chad Biggerstaff&lt;/SPAN&gt;&lt;/P&gt;</description></item><item><title>VistaDb: How map BLOB's and GUID's?</title><link>http://wilsonormapper.com/Forums/Default.aspx?part=74&amp;action=thread&amp;id=2135&amp;key=mKXH62oZCZF0uAcWGz8ShQ%3d%3d&amp;post=6640</link><pubDate>Fri, 05 May 2006 00:49:04 GMT</pubDate><description>I changed my test case to use the older ORMapper 2.2 version and BLOB's
and GUID's work with zero code changes.&amp;nbsp; I hate giving up but feel I
must.&amp;nbsp; I am stumped on tracing the root cause of the 4.2 exception
"Specified cast is not valid."&amp;nbsp; I will miss the defaultNamespace
attribute but at least I have a workaround. :-)&lt;br&gt;&lt;br&gt;-Ed</description></item><item><title>VistaDb: How map BLOB's and GUID's?</title><link>http://wilsonormapper.com/Forums/Default.aspx?part=74&amp;action=thread&amp;id=2135&amp;key=mKXH62oZCZF0uAcWGz8ShQ%3d%3d&amp;post=6634</link><pubDate>Fri, 05 May 2006 00:48:38 GMT</pubDate><description>Are there any VisatDb users out there having success mapping BLOB's and GUID's?&lt;br&gt;&lt;br&gt;I made a small test case.&amp;nbsp; I have not been able to persist either data type with 4.2, however, with older versions of the ORMapper I had been using BLOB's successfully.&amp;nbsp; One thing I am doing differently, is that I am no longer using the Wilson.ORMapper.IObjectHelper interface.&amp;nbsp; I am using Net 1.0 and the latest VistaDb.&lt;br&gt;&lt;br&gt;Thanks in advance,&lt;br&gt;&lt;br&gt;-Ed&lt;br&gt;deletethisprefix_edsutton99@hotmail.com&lt;br&gt;&lt;br&gt;</description></item><item><title>Oracle Connection Pooling</title><link>http://wilsonormapper.com/Forums/Default.aspx?part=74&amp;action=thread&amp;id=2098&amp;key=pmLXR0mfDDu6YFGBpTpw%2fw%3d%3d&amp;post=6533</link><pubDate>Fri, 21 Apr 2006 14:07:04 GMT</pubDate><description>Hi Brandon:&lt;br&gt;&lt;br&gt;The ORMapper uses normal ADO.NET and best practices -- which should (and does in my experience) automatically enable connection pooling, assuming the specific ADO.NET provider supports it (as all major ones do).&amp;nbsp; For the builtin .NET Oracle ADO.NET provider, connection pooling is supported, and is the default, so it should be automatic -- see this &lt;a href="http://msdn.microsoft.com/library/default.asp?url=/library/en-us/cpguide/html/cpconconnectionpoolingfornetdataproviderfororacle.asp"&gt;MSDN article&lt;/a&gt; for more.&amp;nbsp; For the ORMapper and best practices to enable this, that means opening connections as late as possible and closing them as quickly as possible -- this is one best practice that is hard to argue with, and it is what the ORMapper does.&lt;br&gt;&lt;br&gt;Now here's another spin on what you are seeing.&amp;nbsp; If connection pooling is being used, and if you aren't truly getting simultaneous database hits, then it would make perfect sense that there would only be one actual Oracle connection.&amp;nbsp; On the other hand, if connection pooling is not being used, then its highly unlikely that you would ever see just one actual Oracle connection.&amp;nbsp; So if anything, what you are seeing tends to support that connection pooling is being used, but your load tests may not be enough.&lt;br&gt;&lt;br&gt;Thanks, Paul Wilson&lt;br&gt;</description></item><item><title>Oracle Connection Pooling</title><link>http://wilsonormapper.com/Forums/Default.aspx?part=74&amp;action=thread&amp;id=2098&amp;key=pmLXR0mfDDu6YFGBpTpw%2fw%3d%3d&amp;post=6530</link><pubDate>Fri, 21 Apr 2006 13:51:41 GMT</pubDate><description>&lt;P&gt;&lt;FONT face=Arial size=2&gt;Hi Paul,&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT face=Arial size=2&gt;I have searched through the forums and found many threads were you mention connection pooling being handled automatically by the ADO.NET provider.&amp;nbsp; My question is specifically in working with a web application using an Oracle database.&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT face=Arial size=2&gt;In some preliminary load testing of our web application we are noticing that Oracle only have one session for the aspnet_wp.exe worker process, and this is worrying us as to the performance of the app should a bunch of simultaneous reads or writes start happening and we have users lagging out waiting for the connection to free up....&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT face=Arial size=2&gt;Could you shed a little light as to the opportunities to implement some formal connection pooling architecture?&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT face=Arial size=2&gt;Thanks, Brandon&lt;/FONT&gt;&lt;/P&gt;</description></item><item><title>Oracle and SelectProcedure</title><link>http://wilsonormapper.com/Forums/Default.aspx?part=74&amp;action=thread&amp;id=2071&amp;key=6D2%2bN4fgBTlw38ZC3%2faAdQ%3d%3d&amp;post=6445</link><pubDate>Sat, 08 Apr 2006 00:24:12 GMT</pubDate><description>Thanks -- very useful -- I'll see if I can add this to the main codebase without any issues.&amp;nbsp; Drop me a line if you want your name and/or a link of some type in the code.&lt;br&gt;&lt;br&gt;Thanks again, Paul Wilson&lt;br&gt;</description></item><item><title>Oracle and SelectProcedure</title><link>http://wilsonormapper.com/Forums/Default.aspx?part=74&amp;action=thread&amp;id=2071&amp;key=6D2%2bN4fgBTlw38ZC3%2faAdQ%3d%3d&amp;post=6442</link><pubDate>Sat, 08 Apr 2006 00:22:40 GMT</pubDate><description>&lt;P&gt;Ok, I found a quick workaround/hack to get it to work for me.&amp;nbsp; I'll post it just there's anybody out there as crazy as I am... :-)&lt;/P&gt;
&lt;P&gt;After reading this page that microsoft graciously made:&lt;BR&gt;&lt;A href="http://msdn.microsoft.com/library/default.asp?url=/library/en-us/dnadonet/html/msdnorsps.asp"&gt;http://msdn.microsoft.com/library/default.asp?url=/library/en-us/dnadonet/html/msdnorsps.asp&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;I realized all that needed to be done was to add an output parameter of type OracleType.Cursor.&amp;nbsp; But since the IDataParamater.DbType didn't have that type, and I didn't want to change much code, I changed the code in&amp;nbsp;the 'else parameter.Type&amp;nbsp;is null' portion of Wilson.ORMapper.Internals.Connection.GetParameter(...) to this:&lt;/P&gt;&lt;B&gt;&lt;FONT color=#008000 size=2&gt;
&lt;P&gt;if&lt;/B&gt;&lt;/FONT&gt;&lt;FONT size=2&gt; (&lt;/FONT&gt;&lt;FONT color=#000080 size=2&gt;dbParameter&lt;/FONT&gt;&lt;FONT size=2&gt; &lt;/FONT&gt;&lt;B&gt;&lt;FONT color=#008000 size=2&gt;is&lt;/B&gt;&lt;/FONT&gt;&lt;FONT size=2&gt; &lt;/FONT&gt;&lt;FONT color=#000080 size=2&gt;System&lt;/FONT&gt;&lt;FONT color=#808000 size=2&gt;.&lt;/FONT&gt;&lt;FONT color=#000080 size=2&gt;Data&lt;/FONT&gt;&lt;FONT color=#808000 size=2&gt;.&lt;/FONT&gt;&lt;FONT color=#000080 size=2&gt;OracleClient&lt;/FONT&gt;&lt;FONT color=#808000 size=2&gt;.&lt;/FONT&gt;&lt;FONT color=#000080 size=2&gt;OracleParameter&lt;/FONT&gt;&lt;FONT size=2&gt; &lt;/FONT&gt;&lt;FONT color=#808000 size=2&gt;&amp;amp;&amp;amp;&lt;/FONT&gt;&lt;FONT size=2&gt; &lt;/FONT&gt;&lt;FONT color=#000080 size=2&gt;dbParameter&lt;/FONT&gt;&lt;FONT color=#808000 size=2&gt;.&lt;/FONT&gt;&lt;FONT color=#000080 size=2&gt;Direction&lt;/FONT&gt;&lt;FONT size=2&gt; &lt;/FONT&gt;&lt;FONT color=#808000 size=2&gt;==&lt;/FONT&gt;&lt;FONT size=2&gt; &lt;/FONT&gt;&lt;FONT color=#000080 size=2&gt;ParameterDirection&lt;/FONT&gt;&lt;FONT color=#808000 size=2&gt;.&lt;/FONT&gt;&lt;FONT color=#000080 size=2&gt;Output&lt;/FONT&gt;&lt;FONT size=2&gt;)&lt;BR&gt;{&lt;BR&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;((&lt;/FONT&gt;&lt;FONT color=#000080 size=2&gt;System&lt;/FONT&gt;&lt;FONT color=#808000 size=2&gt;.&lt;/FONT&gt;&lt;FONT color=#000080 size=2&gt;Data&lt;/FONT&gt;&lt;FONT color=#808000 size=2&gt;.&lt;/FONT&gt;&lt;FONT color=#000080 size=2&gt;OracleClient&lt;/FONT&gt;&lt;FONT color=#808000 size=2&gt;.&lt;/FONT&gt;&lt;FONT color=#000080 size=2&gt;OracleParameter&lt;/FONT&gt;&lt;FONT size=2&gt;)&lt;/FONT&gt;&lt;FONT color=#000080 size=2&gt;dbParameter&lt;/FONT&gt;&lt;FONT size=2&gt;)&lt;/FONT&gt;&lt;FONT color=#808000 size=2&gt;.&lt;/FONT&gt;&lt;FONT color=#000080 size=2&gt;OracleType&lt;/FONT&gt;&lt;FONT size=2&gt; &lt;/FONT&gt;&lt;FONT color=#808000 size=2&gt;=&lt;/FONT&gt;&lt;FONT size=2&gt; &lt;/FONT&gt;&lt;FONT color=#000080 size=2&gt;System&lt;/FONT&gt;&lt;FONT color=#808000 size=2&gt;.&lt;/FONT&gt;&lt;FONT color=#000080 size=2&gt;Data&lt;/FONT&gt;&lt;FONT color=#808000 size=2&gt;.&lt;/FONT&gt;&lt;FONT color=#000080 size=2&gt;OracleClient&lt;/FONT&gt;&lt;FONT color=#808000 size=2&gt;.&lt;/FONT&gt;&lt;FONT color=#000080 size=2&gt;OracleType&lt;/FONT&gt;&lt;FONT color=#808000 size=2&gt;.&lt;/FONT&gt;&lt;FONT color=#000080 size=2&gt;Cursor&lt;/FONT&gt;&lt;FONT size=2&gt;;&lt;BR&gt;}&lt;BR&gt;&lt;/FONT&gt;&lt;B&gt;&lt;FONT color=#008000 size=2&gt;else&lt;BR&gt;&lt;/B&gt;&lt;/FONT&gt;&lt;FONT size=2&gt;{&lt;BR&gt;&lt;/FONT&gt;&lt;FONT color=#000080 size=2&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;dbParameter&lt;/FONT&gt;&lt;FONT color=#808000 size=2&gt;.&lt;/FONT&gt;&lt;FONT color=#000080 size=2&gt;DbType&lt;/FONT&gt;&lt;FONT size=2&gt; &lt;/FONT&gt;&lt;FONT color=#808000 size=2&gt;=&lt;/FONT&gt;&lt;FONT size=2&gt; &lt;/FONT&gt;&lt;FONT color=#000080 size=2&gt;DbType&lt;/FONT&gt;&lt;FONT color=#808000 size=2&gt;.&lt;/FONT&gt;&lt;FONT color=#000080 size=2&gt;String&lt;/FONT&gt;&lt;FONT size=2&gt;;&lt;BR&gt;}&lt;/P&gt;&lt;/FONT&gt;
&lt;P&gt;Basically it implies that if you're using oracle, and setting an ouput parameter of an unknown type, use the OracleType.Cursor.&amp;nbsp; Since setting the cursor is all that's necessary for the DataReader to return results, that's all I needed for it to work (besides adding the parameter to the SelectProcedure to specify the name of the cursor variable, which I do only if I'm using Oracle as the provider).&lt;/P&gt;</description></item><item><title>Oracle and SelectProcedure</title><link>http://wilsonormapper.com/Forums/Default.aspx?part=74&amp;action=thread&amp;id=2071&amp;key=6D2%2bN4fgBTlw38ZC3%2faAdQ%3d%3d&amp;post=6438</link><pubDate>Fri, 07 Apr 2006 00:35:53 GMT</pubDate><description>Nothing has changed -- its on my list to hopefully someday get to, but so far there are very few Oracle users, and even fewer worried about stored procs -- admittedly not a good excuse, but it does drive priorities.&lt;br&gt;&lt;br&gt;Thanks, Paul Wilson&lt;br&gt;</description></item><item><title>Oracle and SelectProcedure</title><link>http://wilsonormapper.com/Forums/Default.aspx?part=74&amp;action=thread&amp;id=2071&amp;key=6D2%2bN4fgBTlw38ZC3%2faAdQ%3d%3d&amp;post=6437</link><pubDate>Fri, 07 Apr 2006 00:31:54 GMT</pubDate><description>&lt;P&gt;I'm starting a new project in&amp;nbsp;Oracle (which I'm very new to) using ORMapper 3.2 (I started using it a while back and we're still using it for other projects).&lt;/P&gt;
&lt;P&gt;Everything works perfectly well except calling stored procedures (I'm guessing this is because Oracle requires&amp;nbsp;a cursor output parameter).&amp;nbsp; Is there a way to get this working? Does the new version support SelectProcedures in Oracle?&lt;/P&gt;</description></item><item><title>WORM on MONO?</title><link>http://wilsonormapper.com/Forums/Default.aspx?part=74&amp;action=thread&amp;id=1056&amp;key=QXT%2bXYyV9ksW%2fAWQFnQfCA%3d%3d&amp;post=6403</link><pubDate>Mon, 03 Apr 2006 00:44:34 GMT</pubDate><description>I still haven't found the time or reason to work with Mono myself, so while the necessary changes may be minor its going to have to be someone else working on this that finds it a priority for them.&amp;nbsp; And please don't take that the wrong way -- its not that I don't think Mono isn't important, its that it simply hasn't been something I've spent any time with, especially since I've moved to .NET v2.0.&lt;br&gt;&lt;br&gt;Thanks, Paul Wilson&lt;br&gt;</description></item><item><title>WORM on MONO?</title><link>http://wilsonormapper.com/Forums/Default.aspx?part=74&amp;action=thread&amp;id=1056&amp;key=QXT%2bXYyV9ksW%2fAWQFnQfCA%3d%3d&amp;post=6402</link><pubDate>Sun, 02 Apr 2006 19:03:53 GMT</pubDate><description>&lt;P&gt;Does this work now? Is there any progress report?&lt;/P&gt;
&lt;P&gt;Thank you very much in advance.&lt;/P&gt;
&lt;P&gt;Timur Zanagar&lt;/P&gt;</description></item><item><title>Sybase ASA</title><link>http://wilsonormapper.com/Forums/Default.aspx?part=74&amp;action=thread&amp;id=2025&amp;key=SSEh%2bMLDjLkRYZ93OSHKEQ%3d%3d&amp;post=6286</link><pubDate>Tue, 14 Mar 2006 18:35:01 GMT</pubDate><description>Yes, it really sucks and I really don't get why Sybase has not implemented named parameters.&amp;nbsp; Anyway, one of the great things about your mapper is that I can easily switch it to use ODBC and I still won't get named parameters but at least I don't have to modify the mapper itself.&lt;br&gt;Thanks, Dave&lt;br&gt;&lt;br&gt;&lt;br&gt;</description></item><item><title>Sybase ASA</title><link>http://wilsonormapper.com/Forums/Default.aspx?part=74&amp;action=thread&amp;id=2025&amp;key=SSEh%2bMLDjLkRYZ93OSHKEQ%3d%3d&amp;post=6281</link><pubDate>Tue, 14 Mar 2006 14:59:07 GMT</pubDate><description>Hey Dave:&lt;br&gt;&lt;br&gt;Any chance you can use a different Sybase provider?&amp;nbsp; That's quite a limitation -- whether you're using O/RM or not.&lt;br&gt;&lt;br&gt;Thanks, Paul Wilson&lt;br&gt;</description></item><item><title>Sybase ASA</title><link>http://wilsonormapper.com/Forums/Default.aspx?part=74&amp;action=thread&amp;id=2025&amp;key=SSEh%2bMLDjLkRYZ93OSHKEQ%3d%3d&amp;post=6273</link><pubDate>Tue, 14 Mar 2006 10:45:45 GMT</pubDate><description>Unfortunately, the Sybase ASA managed provider doesn't support named parameters so what I've been doing is changing the source in CustomProvider.cs:&lt;br&gt;&lt;br&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; internal bool NoNamedParameters&amp;nbsp; {&lt;br&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; get {&lt;font color="#ff0000"&gt; return (this.parameterPrefix=="~" |&lt;/font&gt;| (!this.isCustomProvider &amp;amp;&amp;amp; (this.providerType == Provider.OleDb || this.providerType == Provider.Odbc))); }&lt;br&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; }&lt;br&gt;&lt;br&gt;And then setting the&amp;nbsp; &lt;font color="#ff0000"&gt;ParameterPrefix = "~" &lt;/font&gt;when creating the CustomProvider. Hack!&amp;nbsp; It works but of course I forget to make this change whenever a new version comes out.&lt;br&gt;&lt;br&gt;Is there a better way ?&lt;br&gt;&lt;br&gt;Thank you&lt;br&gt;Dave Joyner&lt;br&gt;&lt;br&gt;</description></item><item><title>DB2 .Net 2.0 Provider</title><link>http://wilsonormapper.com/Forums/Default.aspx?part=74&amp;action=thread&amp;id=2016&amp;key=Dd6smXasTagfQvfGYo6G9w%3d%3d&amp;post=6245</link><pubDate>Fri, 10 Mar 2006 18:03:28 GMT</pubDate><description>&lt;FONT face=Arial&gt;Curious if anyone has been able to get WilsonOR to work with IBM's new .Net 2.0 Provider.&lt;/FONT&gt;</description></item><item><title>Postgres</title><link>http://wilsonormapper.com/Forums/Default.aspx?part=74&amp;action=thread&amp;id=1922&amp;key=C1oABnJKXUWytPdMMJs52g%3d%3d&amp;post=6016</link><pubDate>Sun, 19 Feb 2006 17:45:40 GMT</pubDate><description>Hi Thomas:&lt;br /&gt;
&lt;br /&gt;
The purpose of the delimiters is to automatically handle table and field names that have spaces, reserved words, etc.  The ANSI standard for such delimiters is the double-quote, and most databases do support that one way or the other, although it may not be the default, so try setting these to that instead:&lt;br /&gt;
&lt;br /&gt;
provider.StartDelimiter = &amp;quot;\&amp;quot;&amp;quot;;&lt;br /&gt;
provider.EndDelimiter = &amp;quot;\&amp;quot;&amp;quot;;&lt;br /&gt;
&lt;br /&gt;
Its really very hard for me to ever give conclusive instructions on how to setup most databases though, because they are often very configurable, and sometimes the providers change the defaults also.  So I give what I have either found to be the default, or what I was able to determined worked for me -- but it may not be the setting of your database install or provider.  This is also one reason why I leave this configurable instead of making it hard-coded like many other O/R Mappers have done.&lt;br /&gt;
&lt;br /&gt;
Thanks, Paul Wilson</description></item><item><title>Postgres</title><link>http://wilsonormapper.com/Forums/Default.aspx?part=74&amp;action=thread&amp;id=1922&amp;key=C1oABnJKXUWytPdMMJs52g%3d%3d&amp;post=6015</link><pubDate>Sun, 19 Feb 2006 15:53:28 GMT</pubDate><description>hi paul,&lt;br /&gt;
&lt;br /&gt;
i figured it out, it seemed it was a problem with npgsql, i had an older version in use.&lt;br /&gt;
&lt;br /&gt;
funny stuff is, when i do pass a rather clean provider to the objectspace everything works perfectly (at least for my short test, i dont know how it is when i go deeper)&lt;br /&gt;
&lt;br /&gt;
CustomProvider provider = new CustomProvider(&amp;quot;Npgsql&amp;quot;, &amp;quot;Npgsql.NpgsqlConnection&amp;quot;, &amp;quot;Npgsql.NpgsqlDataAdapter&amp;quot;);&lt;br /&gt;
            ObjectSpace os = new ObjectSpace(mappingFile, connectionString, provider);&lt;br /&gt;
&lt;br /&gt;
works.&lt;br /&gt;
&lt;br /&gt;
however, when i set the properties you suggested in the other postgres-thread, i get an syntax error&lt;br /&gt;
ERROR: 42601: syntax error at or near &amp;quot;[&amp;quot;&lt;br /&gt;
&lt;br /&gt;
so please tell me, what properties do i have to set exactly to make the customprovider work smoothly for WORM?&lt;br /&gt;
&lt;br /&gt;
by the way, the DRIVER=Postgresql isnt a problem at all.&lt;br /&gt;
&lt;br /&gt;
thank you very much&lt;br /&gt;
thomas</description></item><item><title>Postgres</title><link>http://wilsonormapper.com/Forums/Default.aspx?part=74&amp;action=thread&amp;id=1922&amp;key=C1oABnJKXUWytPdMMJs52g%3d%3d&amp;post=6013</link><pubDate>Sun, 19 Feb 2006 14:47:43 GMT</pubDate><description>Hi Thomas:&lt;br /&gt;
&lt;br /&gt;
I don't think the connection string should have the part that specifies &amp;quot;DRIVER={PostgreSQL}&amp;quot;.  That would be necessary if you were using OleDb, but it should not be when you are using the PostgreSql provider.  So my question for you is when you say that connection string has worked, did it work with OleDb or the PostgreSql provider?&lt;br /&gt;
&lt;br /&gt;
Thanks, Paul Wilson</description></item><item><title>Postgres</title><link>http://wilsonormapper.com/Forums/Default.aspx?part=74&amp;action=thread&amp;id=1922&amp;key=C1oABnJKXUWytPdMMJs52g%3d%3d&amp;post=6011</link><pubDate>Sun, 19 Feb 2006 08:06:09 GMT</pubDate><description>hello,&lt;br /&gt;
&lt;br /&gt;
i tried to use postgres and worm but i am not able to connect.&lt;br /&gt;
here is a code snippet:&lt;br /&gt;
&lt;br /&gt;
string mappingFile = &amp;quot;mapping.xml&amp;quot;;&lt;br /&gt;
string connectString = &amp;quot;DRIVER={PostgreSQL};SERVER=localhost;DATABASE=sports;User ID=postgres;Password=bosie;&amp;quot;;&lt;br /&gt;
&lt;br /&gt;
CustomProvider provider = new CustomProvider(&amp;quot;Npgsql&amp;quot;, &amp;quot;Npgsql.NpgsqlConnection&amp;quot;, &amp;quot;Npgsql.NpgsqlDataAdapter&amp;quot;); &lt;br /&gt;
            provider.StartDelimiter = &amp;quot;[&amp;quot;; provider.EndDelimiter = &amp;quot;]&amp;quot;; &lt;br /&gt;
            provider.ParameterPrefix = &amp;quot;:&amp;quot;; &lt;br /&gt;
            provider.IdentityQuery = &amp;quot;SELECT currval('{1}_{0}_seq')&amp;quot;; &lt;br /&gt;
            provider.SelectPageQuery = &amp;quot;SELECT * LIMIT {0} OFFSET {1}&amp;quot;; &lt;br /&gt;
&lt;br /&gt;
            ObjectSpace os = new ObjectSpace(mappingFile, connectString, provider);&lt;br /&gt;
&lt;br /&gt;
            ObjectSet&amp;lt;Test&amp;gt; _s = os.GetObjectSet&amp;lt;Test&amp;gt;(string.Empty);&lt;br /&gt;
&lt;br /&gt;
it throws an exception that the connectionstring is invalid.&lt;br /&gt;
i have used that connectionstring with ado.net succesfully, so how do i setup worm for postgres ?&lt;br /&gt;
&lt;br /&gt;
thank you very much&lt;br /&gt;
thomas</description></item><item><title>VistaDB Mapping.config Generator?</title><link>http://wilsonormapper.com/Forums/Default.aspx?part=74&amp;action=thread&amp;id=1920&amp;key=jj4ghM6NjBHVaqyingKTyA%3d%3d&amp;post=6007</link><pubDate>Sat, 18 Feb 2006 14:16:54 GMT</pubDate><description>Hi Timur:&lt;br /&gt;
&lt;br /&gt;
You can use an OleDb driver for VistaDb if you can obtain one from them (I think it may be extra but I'm not sure).  Otherwise your best bet might be to start with an Access database that you then &amp;quot;upsize&amp;quot; with their wizard to VistaDB.  Of course you can also create your mappings by hand -- a lot of that is relatively easy with cut-n-paste.&lt;br /&gt;
&lt;br /&gt;
Thanks, Paul Wilson</description></item><item><title>VistaDB Mapping.config Generator?</title><link>http://wilsonormapper.com/Forums/Default.aspx?part=74&amp;action=thread&amp;id=1920&amp;key=jj4ghM6NjBHVaqyingKTyA%3d%3d&amp;post=6004</link><pubDate>Sat, 18 Feb 2006 10:13:44 GMT</pubDate><description>Hi folks,&lt;br /&gt;
&lt;br /&gt;
I use in a new project VistaDB and would like to use WORMs, too, but there is no Generator for a Mapping.config file.&lt;br /&gt;
&lt;br /&gt;
Does somebody know one?&lt;br /&gt;
&lt;br /&gt;
I tried it with Paul Welters CodeSmith Templates but the only one SchemaProvider for VistaDB doesn't work properly.&lt;br /&gt;
&lt;br /&gt;
I hope some of you can help me.&lt;br /&gt;
&lt;br /&gt;
Best regards,&lt;br /&gt;
&lt;br /&gt;
Timur Zanagar</description></item><item><title>firebird</title><link>http://wilsonormapper.com/Forums/Default.aspx?part=74&amp;action=thread&amp;id=1892&amp;key=JQf8ck4PRyuLuQyoBperzA%3d%3d&amp;post=5932</link><pubDate>Fri, 10 Feb 2006 06:24:42 GMT</pubDate><description>The current version (v4.2.1) has broken some 3rd party database usage, so check out the next version (v4.2.1.1) when it comes out -- later today hopefully.  If that doesn't work then let me know and I'll reinstall Firebird and test it -- I know it used to work, but I haven't tested it myself in the last release.&lt;br /&gt;
&lt;br /&gt;
Thanks, Paul Wilson</description></item><item><title>firebird</title><link>http://wilsonormapper.com/Forums/Default.aspx?part=74&amp;action=thread&amp;id=1892&amp;key=JQf8ck4PRyuLuQyoBperzA%3d%3d&amp;post=5917</link><pubDate>Wed, 08 Feb 2006 12:41:46 GMT</pubDate><description>&lt;br /&gt;
I was trying to run the WilsonORMapperExample2005 using firebird embedded version and having problems.&lt;br /&gt;
&lt;br /&gt;
When I run the winform app it just hangs for few minutes and then throws this error.&lt;br /&gt;
&amp;quot;The CLR has been unable to transition from COM context 0x1a3008 to COM context 0x1a3178 for 60 seconds. The thread that owns the destination context/apartment is most likely either doing a non pumping wait or processing a very long running operation without pumping Windows messages. This situation generally has a negative performance impact and may even lead to the application becoming non responsive or memory usage accumulating continually over time. To avoid this problem, all single threaded apartment (STA) threads should use pumping wait primitives (such as CoWaitForMultipleHandles) and routinely pump messages during long running operations.&amp;quot;&lt;br /&gt;
&lt;br /&gt;
So when I debug the Firebird ADO.NET source, it is throwing an exception in the FbCommand.Prepare method. The exception that I see is&lt;br /&gt;
&amp;quot;Attempted to read or write protected memory. This is often an indication that other memory is corrupt.&amp;quot;&lt;br /&gt;
The same ADO.NET provider works fine when I create a simple .net app without using ORMapper.&lt;br /&gt;
Anyone faced this issue before ?</description></item><item><title>PersistChanges fails in VistaDB</title><link>http://wilsonormapper.com/Forums/Default.aspx?part=74&amp;action=thread&amp;id=1878&amp;key=TNKS5Xu5oSPJW7m0FmkSwA%3d%3d&amp;post=5903</link><pubDate>Tue, 07 Feb 2006 18:57:09 GMT</pubDate><description>Paul,&lt;br /&gt;
VistaDB always uses the snapshot IsolationLevel. Their implementation of BeginTransaction(IsolationLevel level) in the ADO.NET provider throws an exception when the IsolationLevel is set to somethign other than snapshot. I had to comment it out in the source code I received along with VistaDB to make it work with ORMapper.&lt;br /&gt;
</description></item><item><title>PersistChanges fails in VistaDB</title><link>http://wilsonormapper.com/Forums/Default.aspx?part=74&amp;action=thread&amp;id=1878&amp;key=TNKS5Xu5oSPJW7m0FmkSwA%3d%3d&amp;post=5890</link><pubDate>Mon, 06 Feb 2006 11:26:03 GMT</pubDate><description>First, the other user does have an issue with Exists, but he was mistaken that it had anything to do with PersistChanges.  For better or worse, the issues you're experiencing are not related to Exists at all -- but they are real issues nonetheless.  First, there is another bug in the latest version of the ORMapper that this helped me find, arising from a lot of refactoring to make things simpler.  It didn't affect the mainstream databases, and I did not test VistaDB in this last release -- but it is fixed in the build I'm attaching (others should email me for now if you are using VistaDB).&lt;br /&gt;
&lt;br /&gt;
Next, there are several limitations that VistaDB continues to have, one that I have coded around in this build and others that you'll have to design around.  The one that I've handled is that the VistaDB provider does not support BeginTransaction for specific IsolationLevels, which I enabled in this last release.  My handling of it will work as long as you let the ORMapper handle transactions, or as long as you only specify ReadCommitted.  The other limitations are that VistaDB (or its provider) does not support all of the types -- short and decimal both seem to be problems in the demo for instance.  I recall running into these in the past when I tested with VistaDB, and they are a pain, but they are simply limitations of VistaDB, at least at the moment.&lt;br /&gt;
 &lt;br /&gt;
Thanks, Paul Wilson</description></item><item><title>PersistChanges fails in VistaDB</title><link>http://wilsonormapper.com/Forums/Default.aspx?part=74&amp;action=thread&amp;id=1878&amp;key=TNKS5Xu5oSPJW7m0FmkSwA%3d%3d&amp;post=5888</link><pubDate>Mon, 06 Feb 2006 09:55:28 GMT</pubDate><description>Hi Paul,&lt;br /&gt;
&lt;br /&gt;
I may be having this problem with VistaDb as well. I sent you my test case.  I did not know how to determine if the root cause was the use of the EXISTS keyword.&lt;br /&gt;
&lt;br /&gt;
It seems to be a new problem as I rolled-back to ORmapper 2.2 version and PersistChanges worked fine with VistaDb. &lt;br /&gt;
&lt;br /&gt;
Is there a class or method in 4.2 that I could roll back to 2.2 to make it work without the EXISTS functionality?  If not, do you know what is the last version before the EXISTS functionality was added?&lt;br /&gt;
&lt;br /&gt;
Thank you for your assistance,&lt;br /&gt;
&lt;br /&gt;
-Ed</description></item><item><title>PersistChanges fails in VistaDB</title><link>http://wilsonormapper.com/Forums/Default.aspx?part=74&amp;action=thread&amp;id=1878&amp;key=TNKS5Xu5oSPJW7m0FmkSwA%3d%3d&amp;post=5884</link><pubDate>Mon, 06 Feb 2006 05:48:24 GMT</pubDate><description>I reread their docs and you are correct that they do say they do not yet support it.  I simply searched on EXISTS and saw the topic come up with an example -- but I didn't notice they were saying not to use it.  :(&lt;br /&gt;
&lt;br /&gt;
This is troubling since EXISTS is an ANSI standard keyword, and it is used for performance reasons which makes the alternative not a very good one.  I'm not saying I've never used the alternative myself, as I have, but in general it is a very poor alternative since in a generic library you simply cannot afford to make assumptions about the number of records and how performance might be affected.&lt;br /&gt;
&lt;br /&gt;
So where does this leave you?  Options that are available now include (1) creating the suggested alternative yourself since you can use any where clause (use the QueryHelper to help get table and field names) and (2) implementing an IInterceptCommand and modifying the generated sql before its sent to the database (not trivial to do, but possible).  You may also be able to avoid the situation entirely once you know VistaDB doesn't support it -- although you know better than I whether that's a viable option for you.&lt;br /&gt;
&lt;br /&gt;
In the meantime, I'll log a request in the VistaDB forums, and we'll see where that goes before I commit to making changes to support non-ANSI sql that is sub-optimal.&lt;br /&gt;
&lt;br /&gt;
Thanks, Paul Wilson</description></item><item><title>PersistChanges fails in VistaDB</title><link>http://wilsonormapper.com/Forums/Default.aspx?part=74&amp;action=thread&amp;id=1878&amp;key=TNKS5Xu5oSPJW7m0FmkSwA%3d%3d&amp;post=5883</link><pubDate>Mon, 06 Feb 2006 05:25:17 GMT</pubDate><description>Paul,&lt;br /&gt;
Sorry my bad. The PersistChanges doesn't use the EXISTS keyword. &lt;br /&gt;
The retrieval queries use it.&lt;br /&gt;
VistaDB does not support the 'EXISTS' keyword. Atleast in the latest release v2.1. Its mentioned in their documentation. Here is an excerpt from the help file.&lt;br /&gt;
&lt;br /&gt;
&amp;gt;&amp;gt;&lt;br /&gt;
EXISTS predicate is not yet supported. However, if you have a single column, you can use the IN clause. For example:&lt;br /&gt;
&lt;br /&gt;
SELECT O.OrderNo, O.CustNo&lt;br /&gt;
FROM Orders O WHERE EXISTS&lt;br /&gt;
  (SELECT C.CustNo&lt;br /&gt;
   FROM Customer C&lt;br /&gt;
   WHERE (C.CustNo = O.CustNo))&lt;br /&gt;
&lt;br /&gt;
can be changed to:&lt;br /&gt;
&lt;br /&gt;
SELECT O.OrderNo, O.CustNo&lt;br /&gt;
FROM Orders O WHERE O.CustNo IN &lt;br /&gt;
  (SELECT C.CustNo&lt;br /&gt;
   FROM Customer C&lt;br /&gt;
   WHERE (C.CustNo = O.CustNo))&lt;br /&gt;
&amp;lt;&amp;lt;&lt;br /&gt;
Its very disappointing. Lets hope they add it in their next release.&lt;br /&gt;
-Vijay&lt;br /&gt;
</description></item><item><title>PersistChanges fails in VistaDB</title><link>http://wilsonormapper.com/Forums/Default.aspx?part=74&amp;action=thread&amp;id=1878&amp;key=TNKS5Xu5oSPJW7m0FmkSwA%3d%3d&amp;post=5872</link><pubDate>Sat, 04 Feb 2006 09:43:56 GMT</pubDate><description>Hi Vijay:&lt;br /&gt;
&lt;br /&gt;
You'll need to send me the details (db file, mappings, code) so that I can troubleshoot it.  I actually don't know of any way the PersistChanges method can issue an Exists keyword in the generated sql!  Certainly using OPath with relationships will issue an Exists keyword, but I don't know of any way for that to happen from a persistence call since that doesn't execute any OPath selects.  So send me what you have so that I can troubleshoot and/or reproduce it.&lt;br /&gt;
&lt;br /&gt;
By the way, the Exists keyword is an Ansi standard keyword, and VistaDB does actually claim to support it!  Now I haven't tried to test using it, so maybe they have a bug in their support of it, but it is clearly listed as supported.&lt;br /&gt;
&lt;br /&gt;
Thanks, Paul Wilson</description></item><item><title>PersistChanges fails in VistaDB</title><link>http://wilsonormapper.com/Forums/Default.aspx?part=74&amp;action=thread&amp;id=1878&amp;key=TNKS5Xu5oSPJW7m0FmkSwA%3d%3d&amp;post=5871</link><pubDate>Sat, 04 Feb 2006 06:57:00 GMT</pubDate><description>The PersistChanges method on an object is failing when I used with VistaDB, since the sql query uses the SQL keyword 'EXISTS' which the database doesn't support yet. Has anyone faced this problem? Is there a workaround?&lt;br /&gt;
-Vijay</description></item><item><title>WilsonXmlDbClient Example</title><link>http://wilsonormapper.com/Forums/Default.aspx?part=74&amp;action=thread&amp;id=823&amp;key=uXfvAnzrVLg31d2ALgf5Ew%3d%3d&amp;post=5814</link><pubDate>Fri, 27 Jan 2006 18:46:57 GMT</pubDate><description>By the way, I too am interested in seeing more unit tests.  :)&lt;br /&gt;
&lt;br /&gt;
A few people have promised to build some for the mapper in the past, but for some reason they haven't ever came through -- it may be they are just understandably too busy, but it may be that its not as easy as you would hope to unit test generic data access.  Now I have seen people with unit tests for their own apps that use the mapper -- that's not too hard, although admittedly I'm still not doing it often enough to make it routine for me thinking yet.&lt;br /&gt;
&lt;br /&gt;
Thanks, Paul Wilson</description></item></channel></rss>