Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
Home
Discussion GroupsVB SyntaxEnterprise DevelopmentDatabase AccessControlsCOMWin APICrystal ReportDeploymentGeneralGeneral 2
Related Topics
VB.NET / ASP.NETMS SQL ServerMS AccessOther Database ProductsMore Topics ...

VB Forum / Database Access / September 2007



Tip: Looking for answers? Try searching our database.

Multiple Datasources

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
vizualz@hotmail.com - 17 Sep 2007 21:21 GMT
Hi,

My webapp is coded to use Oracle as a datasource.  One of our
customers wishes to use SQL Server as a database.  Is it possible to
connect to either datasource using the same code base if it were to be
coded correctly (i.e. with case statements and such).  I'd really like
to maintain one code base but I don't know how feasible this is.

Any help or advice is greatly appreciated.

Thanks!
Ralph - 18 Sep 2007 02:02 GMT
> Hi,
>
[quoted text clipped - 7 lines]
>
> Thanks!

Yes, using ADO, it is doeable.

There can be a problem with date formats. But you can easily manage that
with a small conditional routine.

The other possible problem area is if your app builds SQL queries, as the
optimal syntax will on occasion will be different for more complex queries.
Using SPs can avoid a lot of issues.

-ralph
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2009 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.