These old forums are deprecated now and set to read-only. We are waiting for you on our new forums!
More modern, Discourse-based and with GitHub/Google/Twitter authentication built-in.

All times are UTC - 5 hours [ DST ]



Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 3 posts ] 
Author Message
 Post subject: Problems with dialect for connecting to a database
PostPosted: Fri Jun 13, 2008 4:00 pm 
Beginner
Beginner

Joined: Tue Jan 22, 2008 11:33 am
Posts: 46
Hi,

I'm devastated and really need your help. I have to connect to a FoxPro database. I use the FoxPro-oledb driver and the following connection settings.
Code:
<connectionStrings>
    <add name="DOCexpert.Anwenderstammdaten.Explorer.Properties.Settings.ForDBConnectionTestConnectionString"
      connectionString="Provider=vfpoledb.1;Data Source=C:\Dokumente und Einstellungen\All Users\Dokumente\Visual FoxPro Projects\ForDBConnectionTest.dbc;Collating Sequence=machine;"
      providerName="System.Data.OleDb" />

  </connectionStrings>
  <nhibernate>

    <add
      key="hibernate.connection.provider"
      value="NHibernate.Connection.DriverConnectionProvider"
    />
    <add
      key="hibernate.dialect"
      value="NHibernate.Dialect.GenericDialect, NHibernate"
    />
    <add
      key="hibernate.connection.driver_class"
      value="NHibernate.Driver.OleDbDriver, NHibernate"
    />
    <add
      key="hibernate.connection.connection_string"
      value="Provider=vfpoledb.1;Data Source=C:\Dokumente und Einstellungen\All Users\Dokumente\Visual Studio 2005\FoxProDataBase\MasterData_User.DBC; Collating Sequence=machine;"
    />
    <add
      key="hibernate.show_sql"
      value="true"
    />
  </nhibernate>


As dialect I also tried MSSQL2000Dialect and one which I have ported from Hibernate which is designed for FoxPro. All of the work well as long as I read and update data. Inserting data (insert into) works with none of them. Now I have no further idea what to do. Does anybody have an hint or idea how I can fully connect to the FoxPro Tables. If I do not get that to work, I'm in deep trouble. Can anybody help me please!!!!

Thank you in advance for all your efforts and feedback antoschka


Top
 Profile  
 
 Post subject: Solved!
PostPosted: Sun Jun 15, 2008 9:33 am 
Beginner
Beginner

Joined: Tue Jan 22, 2008 11:33 am
Posts: 46
Hi,

I just want to close this thread since I have solved the problem.
I just try add the FoxPro Db to the supported Database section of NHibernate. WHom am I supposed to write for this???
Just to let you know. During all my trouble, I connected to Access with JetDriver.
The NHibernate JetDriver has a bug, which pops up as soon as your column contains literals "from". I fixed it and know it works fine - does anybody know how I can contribute that?

The second thing I noticed is the speed. Currently I connect to three DB. To startup my application I received the following speed figures.
- MS-SQL Server: normal start 1.4 seconds ( in in Debug-Mode 21 Seconds)
- Access: normal start 7.5 seconds( in in Debug-Mode 14.5 Seconds)
- FoxPro: normal start 2,6 seconds( in in Debug-Mode 21 Seconds)

Debug Mode means - SQL Command logging:
<add
key="hibernate.show_sql"
value="true"
/>

Greeting antoschka


Top
 Profile  
 
 Post subject: Re: Problems with dialect for connecting to a database
PostPosted: Fri Oct 09, 2009 11:05 am 
Newbie

Joined: Fri Oct 09, 2009 10:58 am
Posts: 1
Hi Antoschka

I'm looking to connect to VFP as well. Is your code available somewhere ?

Cheers

Matt


Top
 Profile  
 
Display posts from previous:  Sort by  
Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 3 posts ] 

All times are UTC - 5 hours [ DST ]


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum

Search for:
© Copyright 2014, Red Hat Inc. All rights reserved. JBoss and Hibernate are registered trademarks and servicemarks of Red Hat, Inc.