niXforums Forum Index
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   PreferencesPreferences   Log in to check your private messagesLog in to check your private messages   Log inLog in 
·  nixdoc.net ·  man pages ·  Linux HOWTOs ·  FreeBSD Tips ·  Forums
navigation Forum index » Databases » rdb
Using non-predefined connections with .Net
Post new topic   Reply to topic Page 1 of 1 [2 Posts] View previous topic :: View next topic
Author Message
Tom D
*nix forums Guru


Joined: 28 Feb 2005
Posts: 377

PostPosted: Sat Jan 28, 2006 4:16 am    Post subject: Re: Using non-predefined connections with .Net Reply with quote

Bob Jarvis wrote:
Quote:
When .Net first came out ODBC support was not shipped with the release
build, and you had to go to microsoft.com and download a component
which added a namespace called Microsoft.Data.Odbc. This worked fine
with Rdb, and you could use a connection string that included the
'database' keyword (e.g. "database=attach 'filename drive:[dir]root'").

With one of the later releases of .Net MS decided that shipping ODBC
support with .Net was a Good Thing and they created an "improved"
version of their ODBC package for .Net which added a namespace called
System.Data.Odbc. This does not play nicely with the Rdb "database"
keyword, complaining bitterly about the presence of single-quotes in
the connection string and refusing to connect. I've tried various ways
to work around this without success, and at present we can only connect
to Rdb database from our .Net apps by using a class which sets up
pre-defined connections. Has anyone found a *working* workaround that
allows .Net to connect to an Rdb database without using a pre-defined
connection? Any help or suggestions appreciated.


Bob,

If all else fails - add OCI support to your database and use the
MS???ORA thingy (note the technical term) to connect to the db. I even
use the OCI via PHP from OpenVMS, Linux and other UNIX platforms.

There is some increased administration, but could be worth the hassle.

Michael Austin
Former DEC/Rdb Regional Field Support Engineer.
Back to top
Bob Jarvis
*nix forums beginner


Joined: 25 Jan 2006
Posts: 2

PostPosted: Fri Jan 27, 2006 3:15 pm    Post subject: Using non-predefined connections with .Net Reply with quote

When .Net first came out ODBC support was not shipped with the release
build, and you had to go to microsoft.com and download a component
which added a namespace called Microsoft.Data.Odbc. This worked fine
with Rdb, and you could use a connection string that included the
'database' keyword (e.g. "database=attach 'filename drive:[dir]root'").

With one of the later releases of .Net MS decided that shipping ODBC
support with .Net was a Good Thing and they created an "improved"
version of their ODBC package for .Net which added a namespace called
System.Data.Odbc. This does not play nicely with the Rdb "database"
keyword, complaining bitterly about the presence of single-quotes in
the connection string and refusing to connect. I've tried various ways
to work around this without success, and at present we can only connect
to Rdb database from our .Net apps by using a class which sets up
pre-defined connections. Has anyone found a *working* workaround that
allows .Net to connect to an Rdb database without using a pre-defined
connection? Any help or suggestions appreciated.
Back to top
Google

Back to top
Display posts from previous:   
Post new topic   Reply to topic Page 1 of 1 [2 Posts] View previous topic :: View next topic
The time now is Sat Nov 22, 2008 1:34 pm | All times are GMT
navigation Forum index » Databases » rdb
Jump to:  

Similar Topics
Topic Author Forum Replies Last Post
No new posts Rejecting connections based on IP range. Evil Ernie Exim 2 Thu Jul 20, 2006 8:54 pm
No new posts NULL vs 127.0.0.1 passed to milter for connections from l... April Lorenzen Postfix 2 Sun Jul 16, 2006 4:47 pm
No new posts HTTP-server && connections stuck in TCP state BOUND Matthias Apitz Solaris 0 Thu Jul 13, 2006 9:28 am
No new posts Restricting incoming connections Paul Tader Postfix 9 Sun Jul 02, 2006 4:35 pm
No new posts How to restrict outbound connections ? Egrama Solaris 1 Fri Jun 30, 2006 10:49 am

Remortgages | Loans | Loans | Gas Suppliers | Property Search
Copyright © 2004-2005 DeniX Solutions SRL
 
Other DeniX Solutions sites: Unix/Linux blog |  electronics forum |  medicine forum |  science forum | 
Privacy Policy


Powered by phpBB © 2001, 2005 phpBB Group
[ Time: 0.1826s ][ Queries: 20 (0.1098s) ][ GZIP on - Debug on ]