Re: MSSQL vs. SYBASE
From: Lewis Howell (lou_junkmail_at_yahoo.com)
Date: 08/04/04
- Next message: Enric: "Re: Deleting duplicates"
- Previous message: Sathya: "Re: Error on Full-Text"
- Next in thread: Erland Sommarskog: "Re: MSSQL vs. SYBASE"
- Reply: Erland Sommarskog: "Re: MSSQL vs. SYBASE"
- Messages sorted by: [ date ] [ thread ]
Date: Wed, 4 Aug 2004 02:37:22 -0400
Adding RAISERROR is not an option, we would have to edit 1,000+ stored
procs ().
"Erland Sommarskog" <esquel@sommarskog.se> wrote in message
news:Xns9536E34A75A35Yazorman@127.0.0.1...
> Lewis Howell (lou_junkmail@yahoo.com) writes:
> > I am converting to MSSQL SERVER from SYBASE. In our client side
> > application we use callback procedures with CT_LIB to get information
> > back from the server during a lengthy process or an infinite (looping)
> > process controlled by or called within a stored procedure. I can not
> > find any type of callback for MSSQL.
> >
> > Example, I would normally have a SELECT statement within my loop or
> > beginning of an infinite stored procedure or any stored procedure which
> > would make the stored proc have multiple result sets. The contents of
> > the SELECT would be my feedback that would be processed by the callback
> > procedure in SYBASE. With MSSQL, only if I cancel the stored proc then
> > all the SELECTs come back at one time in the end...they do not get
> > returned at any ohter point.
> >
> > I am using ADO with the {SQL SERVER} driver to SQL SERVER 2000 with SP3.
> > MDAC 2.7 or 2.8. Coding in DELPHI 6.
>
> That is correct, there are no callbacks on results in any of the Microsoft
> APIs. In ADO .Net you can get callbacks on messages, as you can in DB-
> Library of course.
>
> I have not explored this area myself, but since tools like Query Analyzer
> can present data on the fly, I would assume that this is possible. ADO
> is however a high-level library which does much behind your back to be
> reliable in this area. I played a little with it, and found that I could
> get the results sets as they came if I:
> o added a RAISERROR WITH NOWAIT after the SELECT statement
> o used a server-side cursor.
>
> ADO does also have asynchronous alternatives, and they may work better,
> but I have not explored these myself.
>
> In the end, you may prefer to use the ODBC interface, which is more
> low-level, but does not remove subtle functionality which ADO does.
> Yet an alterantive is the OLE DB interface which definitely looks
> dauting at first, but once you get through the good samples, you are
> on track for the simple stuff. But I don't know if you can do that in
> Delphi.
> --
> Erland Sommarskog, SQL Server MVP, esquel@sommarskog.se
>
> Books Online for SQL Server SP3 at
> http://www.microsoft.com/sql/techinfo/productdoc/2000/books.asp
- Next message: Enric: "Re: Deleting duplicates"
- Previous message: Sathya: "Re: Error on Full-Text"
- Next in thread: Erland Sommarskog: "Re: MSSQL vs. SYBASE"
- Reply: Erland Sommarskog: "Re: MSSQL vs. SYBASE"
- Messages sorted by: [ date ] [ thread ]
Relevant Pages
|