S
Steve Dassin
I would have preferred Access rather than Access Hollywood.
Good luck,
Good luck,
Follow along with the video below to see how to install our site as a web app on your home screen.
Note: This feature may not be available in some browsers.
). And
So, keep your shields up,![]()

Suffice it to say we are talking qualitive differences not
I'm
As a practical matter it is not easy to communicate
Also bear in mind
)I use MS sql server in much the same way. Some concepts make sensein sql (some don't
but take on a whole new meaning in D4. Again I usethe contrast to make my point. In this vein I've used dynamic sql and'lists' in sql server to name a few. See:'Sql - History repeats itself simulating lists'http://beyondsql.blogspot.com/2007/07/sql-history-repeats-itself-simulating.html>>In my opinion, I must say that for optimization of a query plan, I stillfind>>that knowing the table, its physical structure, its indexes, its stats,what>>is required (what is SELECTed), etc. can make the optimizer find a betterplan>>than when having a ... general ... table. Not knowing if you SELECTDISTINCT>>a primary key or a secondary field, as example, can make some differencein>>the lag the end user is likely to experience, at runtime. Sure, there are>>cases where the optimized plan will be very fast to obtain (so why notgetting it at runtime), or where it is irrelevant, but I cannot say that>>having a table, as parameter, is on my priority list at all.The general issue of 'performance' will forever rear its ugly head
At this point I have little incentive to get into the details ofoptimizing D4 code regardless if its queries, non-procedural codeor whatever. The basic concepts are hard enough to get across. I fearintroducing details of how certain D4 constructs will gain a performanceadvantage is premature. I would ask that you look at this article forsome perspective on the notion of performance in AD/D4:http://beyondsql.blogspot.com/2007/06/dataphor-inclusive-sql-vs-exclusive-d4.htmlEventually I will address performance head on.Let me introduce some additional info. At this point in its developmentDataphor does not possess its own mature 'native' storage (for developmentyes, for enterprise work no). Dataphor utilitizes a 'device' forstorage. A device can be one of a number of enterprise sql dbs, ie.DB2, Oracle, SAS, Sql Server. I use Sql Server as a device. So the devicecan simply be the data repository. At the most elementary level allDDL commands in the synatax of D4 will throw the data into an sqlserver database. All DML commands in D4 will, when appropriate,access data in sql server going thru a client language interface.The D4 compiler will determine the details of the interaction withthe device. This process is by no means trivial but at the veryleast can be transparent to the user. But channels of communicationare availiable for user intervention. A most common one is whatmost Access users are familiar with, the pass thru query. So theuser can throw any valid t-sql (queries, procedure calls, ddl) tothe server. For t-sql queries and server side procedures that producea result (table) the result will be treated just as if it was derivedvia native D4 syntax. Of course there is nothing preventing a user fromusing dynamic sql. So we come around in a full circle. If one becomes tostressed in the relational world of D4 there is always the option toto go back to the world that time forgot!
>> Your writing style is (still) complex. I know mine is, also, but in thiscontext, my style is not relevant, I think.You have me at a distint disadvantage. But bear in mind sql has beenaround for almost 40 years and talking about it succintly still remainsa burden few can carry. Communicating effectively in the newborn relationalterms, ie types, variables and relvars, is a work in progress. I willhave to take my lumps. But I will try to make effective use of feedbackwhich I wholeheartedly encourage.>>I haven't see a 'tour guide'. I am not even sure I started at the rightplace! Sure, if the purpose is still to start a discussion, that can beexpected since we don't know where it will go, but there is already a lot ofmaterial (not necessary self contained, I am afraid) and I am still not sureabout 'where' in the process of making an application you want to focus. Youare not spreading your thought about the user interface, aren't you? Ok, itis NOT SQL, it is maybe Access, but WHAT is it? I am a little bit lost, andhave the impression that I could put my hands on great (I hope) pictures ofa movie, but still not sure if the movie is a documentary, or somethingelse.I understand what you are expressing. Start at the beginning, but justwhere is the beginning?To get a jump start, to actually see what D4 scripts are and thesteps that constitute a working example/application see:http://beyondsql.blogspot.com/2007/07/dataphor-example-of-rapid-application.htmlThis is a fully functioning application that includes a ui. But bear inmind one does not need the 'ui' to explore the system. One can learnquite a bit about modelling with sql server without the need for a ui.Creating a single D4 operator/procedure or query will start a user on hisway.Once you start up Dataphor you can tinker with creating tables, queriesor whatever.I would recommend the serious user:Go to www.alphora.com and download Dataphor. Install the beast and startpouring over the documentation to get a feel for this thing (thedocumentationis also availiable online). If you have any version of sql serveryou can quite easily use it as your data store. You can connect toa server database and have access to all tables in the database immediately.For example connect to the Northwind or Pubs database. (If you need a handconnecting contact me via my blog). Start getting familiar with theDataphoria gui. Your going to be doing your development with this ui.It's straightforward just like query analyzer is. You can easily createnew tables in D4 that will reside on sql server. Start browsing therelational operators in help. Try a few queries. Your on your way.My blogAside from the mini-app example, the articles consist of pep talks,explanations and examples (along with their underlying concepts).The examples can all be copied and pasted into Dataphor and run.They work
Think of the examples as snapshots. The show differentslices of constructs and concepts (Dataphor comes with many samples too.Be sure to check them when you install Dataphor). Joe Celko has said thatat some point in time when learning sql a light in your head will hopefullyappear. Same thing in D4. At some point it will all come togetherif you bear with it.>>It seems you mention an interest for the framework (dot.Net) which is ananti-SQL thing (even if they added some element of SQL in version 3.0),imho. Gone the sub-queries, even gone the joins, just a simpleselect-from-where and if you need 'join' or 'subqueries', you use theframework objects that refer to these 'simple' statements, and use C#, orwhatever, not SQL, to carry the 'joins', but without the memory explosionwhat SQL-joins do. On the other hand, from the first impression I got, itseems you add complexity to the SQL language. So, it would be like rootingin the wrong soil, no? Since the framework is about simple, simple SQLstatements, that is (and C# developers are ready to pay the price by writingcomplex C# procedural statements, because they know C#, but not SQL, anddon't want to invest in a more complex SQL like language). I may have thewrong idea of what you saw, though.Dataphor is built with C# a typed language. Conceptually it makes a lot ofsense since D4 is a itself a typed system. The concept of type is one of thefoundations of the 'relational' model. In other words it is logical thatD4, with its reliance on type, be built with a framework that is typed.The fact that D4 is built with a net language in no way implies thatD4 has anything to do with the LINQ/DLINQ project which is what you seem tobe referring to. The idea the MS can 'hide' sql from net developers.What ever games MS is playing with sql from net has nothing to do withD4. But it also means that just like channels of communication from D4 tothe storage(device) ie. sql server, there are channels from D4 to net.So users can write assemblies and interact with the net framework in otherways. And like pass-thru queries, this communication with net does notcome with any hidden price to be paid
It can be used to expand thefunctionality of D4, for example user defined types defined with anet language (note that user defined types can be defined quite nicelyfrom within D4). Aside from channels of communication, the net frameworkis 'transparent' to the user. Again MS's communication from net tosql server is totally independent of D4 and its relational language.Some parting thoughts.I have not said anything specific about the relational (query) language.As an expert sql developers you will find it quite different whichis to be expected. You will also find that some query concepts insql will carry over. You will find there are many new constructs,you will find many sql constructs greatly expanded in functionality(constraints, views, procedures to name just a few) and youwill discover new ways of doing things in comparison to sql. Mostof the historical objections to sql (both conceptually and design of thelanguage) are corrected in D4.Mastery of D4 will take an effort, this is not a trivial exercise.But I think you will find it is a great picture
If you have any questions or just want to chat please feel free tocontact me (thru the blog is fine). People like yourself will onlymake this system better.Lastly, as I state in several articles, D4 does not necessaryeclipse sql. Sql has its place but it is misplaced as a foundationfor application development. For that D4 is best suited.best,steve


Want to reply to this thread or ask your own question?
You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.