Subject | Re: Really Newbie Question |
---|---|
Author | Will Freeman |
Post date | 2005-02-28T17:04:57Z |
Many thanks for all the insight. I may just go back to Delphi to do
this as a DLL ... The VB.Net program has about a year's worth of code
now and so it's too late to go back. I assume Delphi can do all that
C++ Builder can do. I was a devoted Delphi programmer until about 3
years ago, but my clients could not accept Delpi. Again many thanks.
Will.
--- In firebird-support@yahoogroups.com, "Edwin A. Epstein, III"
<eepstein@c...> wrote:
this as a DLL ... The VB.Net program has about a year's worth of code
now and so it's too late to go back. I assume Delphi can do all that
C++ Builder can do. I was a devoted Delphi programmer until about 3
years ago, but my clients could not accept Delpi. Again many thanks.
Will.
--- In firebird-support@yahoogroups.com, "Edwin A. Epstein, III"
<eepstein@c...> wrote:
> I was much in the same situation you are. My answer might seem likea short
> tutorial, but it's really more like an autobiography of pain, misery,updates
> denial, and then acceptance :) I hope it helps you
>
> First off, if your project is big (more than 100K record inserts,
> per day or even week) then abandon all hope of building it with .Net andself lucky
> just check out the final paragraph. If it is not, then count your
> and what i wrote below will probably help you out just fine.although I
>
> I had no problem using the ODBC drivers for viewing the database,
> required the OLE DB Provider from SIBProvider to work with the SQLcode. To
> my knowledge, there is no way to create, open, begin, commit (orrollback),
> close, and then destroy a connection/transaction to Firebird withoutOLE DB.
>on the
> As for executing the SQL code, I myself just created a connection to the
> Firebird DB using a ADODB Connection object. Opened and Began a
> transaction, executed SQL statements, then commited and closed the
> transaction. Afterwards, I always "destroyed" the connection object by
> setting it to NOTHING. I am sure you are familiar with that.
>
> Whether or not you wish to use Stored Procedures or the SQL statements
> themselves is up to you and really depends on the project itself. In my
> case I did, and still do, have the vasy majority of the code running
> server. So I rely on Stored Procedures to do most of my work. Tocall a
> stored procedure from VB you just execute the SQL statement to call thestatement
> procedure. Ex. "EXECUTE PROCEDURE PROC_A(45,15,'ALPHA');". The
> itself is a STRING being passed, so you can construct the parametersquite
> easily. It depends on the OLE DB provider (SIBProvider did not initallyhave a
> provide support), but you can also create a parameterized SP object and
> create the parameters and assign them their values directly. If you
> selectable SP (one that returns rows), you can just as easily assign anobject.
> ADODB recordset the results that SP either by SQL statement, or SP
> Hope that provides you the "nudge" you needed. Additionally, all theother
> statements will work as well, like INSERT, DELETE, ALTER, CREATE,etc. All
> things considered, working with Firebird via OLE DB is not thatdifferent
> from working with any other transactional database via OLE DB. Thatis what
> they intended I beleive.with VB,
>
> This you might not want to hear. You are at a SEVERE disadvantage
> .Net or basically anything other than C++. In my experience so far, youBuilder. I had
> should just give up now and start coding your project in C++
> to largely abandon my own VB project since I could never meet thefor yet.
> performance requirements. As it is I have to create SQL scripts and run
> them directly on the server. so my frontend is limited to management
> functions and cannot perform or automate the work it was intended
> C++ has native objects built in that are far far faster and easierthan any
> OLE DB provider could ever be. You will have to accept, thatthrough ANY
> OLE DB Provider, you WILL be limited to a ceiling of around 250"operations"
> per second. By operation, I mean any kind of SQL statement, orexecution of
> a SP, regardless of how many per each transaction that you perform.I tried
> for over a year to break that performance barrier and neversucceeded by any
> method at all. If your DB is small and inserts and updates are few,then
> .NET may be okay. If you are doing 100K plus inserts per day or perweek,
> get ready for PAIN. The bottom line is that through any other thanC++ and
> IBO/IBX objects, there are too many damned layers to go through.appreciated.
>
> P.S - I have never written .Net code yet, but if still want some VB 6
> examples of ADODB code, I will be happy to give it you if ask.
>
> -----Original Message-----
> From: Will Freeman [mailto:wfreeman@i...]
> Sent: Sunday, February 27, 2005 5:52 PM
> To: firebird-support@yahoogroups.com
> Subject: [firebird-support] Really Newbie Question
>
>
>
>
>
> Hello All,
> I am a long time programmer, but not a database programmer. I am
> using Firebird and have had good success acquiring data with standard
> SELECT queries in .NET using the ODBC drivers and the .NET provider.
> But I wanted to really manage Firebird databases so I bought "The
> Firebird Book" (Great Book!!) and "Mastering SQL". But am at a
> complete loss as to how to implement the SQL code inside a RAD
> environment. Should I be storing the code as stored procedures and
> calling those, implementing the code directly using something like a
> CommandBuilder, or something else??? I am not looking for anyone to
> give me a tutorial, just a swift nudge in the right direction, so I am
> not spinning my wheels. Any links to examples of implementing SQL
> code this way (or a good book on the topic), would be greatly
>
> Thanks, Will.
>
>
>
>
>
>
>
>
>
> Yahoo! Groups Links