StrataFrame Forum
Home      Members   Calendar   Who's On
Welcome Guest ( Login | Register )
      



Oracle SQL vs MS-SQLExpand / Collapse
Author
Message
Posted 06/08/2006 6:25:20 PM


StrataFrame User

StrataFrame UserStrataFrame UserStrataFrame UserStrataFrame UserStrataFrame UserStrataFrame UserStrataFrame UserStrataFrame User

Group: StrataFrame Users
Last Login: 08/21/2008 11:49:01 AM
Posts: 303, Visits: 435
How does SF handle queries with commands that differ between providers such as SUBSTR vs SUBSTRING, etc.  Is that something that needs to be handled on the developer side or is there any kind of translation built into the data access layer?
Post #1478
Posted 06/08/2006 9:16:08 PM


StrataFrame Developer

StrataFrame Developer

Group: StrataFrame Developers
Last Login: Today @ 4:58:13 AM
Posts: 4,379, Visits: 4,421
There is one option through framework to have a "non-provider" specific query created and this is the same approach we take on the BrowseDialog control.  If you'll notice the overloads on the FillDataTable method on any business object, it has an overload with a QueryInformation parameter.  This QueryInfo class allows a query to be forumulated that is not provider specific and it is automatically converted by the data access layer.  This allows the DAL to swap and the code to remain the same.  There are obviously a few restrictions when taking this approach and it is not a solution for a 100% non-provider specific environment, but it will get you a long way down the road.

Generally this is handled on the side of the developer.  There have been some developers run all of their queries through a third-party product that allows the "from" and "to" database languages to be specified and it converts on the fly.  Others know that they will either be dealing with one or two langauges and program the logic accordingly in the BO.

Hope this helps.

Post #1479
Posted 07/02/2006 1:17:23 PM
StrataFrame User

StrataFrame UserStrataFrame UserStrataFrame UserStrataFrame UserStrataFrame UserStrataFrame UserStrataFrame UserStrataFrame User

Group: Forum Members
Last Login: 05/25/2007 3:34:57 PM
Posts: 235, Visits: 309
What third-party product?
Post #1706
Posted 07/03/2006 9:06:42 AM


StrataFrame Developer

StrataFrame Developer

Group: StrataFrame Developers
Last Login: 2 days ago @ 5:02:56 PM
Posts: 2,682, Visits: 1,882
This is the 3rd party product we have researched that will convert the SQL statements from one provider type to another:

http://www.swissql.com/products/sqlone-apidotnet/sqlone-apidotnet.html


www.bungie.net
Post #1708
Posted 07/03/2006 7:34:17 PM
StrataFrame User

StrataFrame UserStrataFrame UserStrataFrame UserStrataFrame UserStrataFrame UserStrataFrame UserStrataFrame UserStrataFrame User

Group: Forum Members
Last Login: 05/25/2007 3:34:57 PM
Posts: 235, Visits: 309
Thanks.
Post #1717
Posted 07/05/2006 9:11:25 AM


StrataFrame Developer

StrataFrame Developer

Group: StrataFrame Developers
Last Login: 2 days ago @ 5:02:56 PM
Posts: 2,682, Visits: 1,882
No problem


www.bungie.net
Post #1723
« Prev Topic | Next Topic »


Reading This TopicExpand / Collapse
Active Users: 0 (0 guests, 0 members, 0 anonymous members)
No members currently viewing this topic.
Forum Moderators: Ben Chase, Trent L. Taylor, Steve L. Taylor

PermissionsExpand / Collapse

All times are GMT -6:00, Time now is 1:27pm

Powered by InstantForum.NET v4.1.4 © 2008
Execution: 0.063. 11 queries. Compression Enabled.
Site Map - Home - My Account - Forum - About Us - Contact Us - Try It - Buy It

Microsoft, Visual Studio, and the Visual Studio logo are trademarks or registered trademarks of Microsoft Corporation in the United States and/or other countries.