On Mon, Jun 9, 2008 at 11:04 PM, MB Software Solutions General Account < [EMAIL PROTECTED]> wrote:
> Stephen Russell wrote: > > On Thu, Jun 5, 2008 at 11:30 AM, Ricardo Araoz <[EMAIL PROTECTED]> > wrote: > > > >> Maybe I'm not getting the point. You are having trouble sending long SQL > >> commands using SQL passthrough? I solve that by having the SQL command > >> in a memo field (in a table or a cursor created to hold the command) and > >> feeding the memo field directly to SQLExec(). I'm currently working with > >> select statements in excess of 5 A4 pages when printed. For comments I > >> use "--" (I send the commands to SQL Server) and don't strip them. > >> -------------------------------------------------------------------- > > > Holy cow.....how can that be good SQL? > ------------------------------------------------------------------- I have a few views that are probably 3 pages long. Granted they are heavy lifters that are termed as "Dragnet" in my arsonal, or "just the facts" where I will generate all the crap about this one "order, statement, customer support calls, ,,,,," This is all done for a single aspect, order, and my only data is EVERY piece of information about that order. All of that crap is loaded into objects for use within our system. Sure this is stupid and wrong, but that is on the table for late 2008 and 2009 redesign. Today it just is. :( But back to bad SQL, no this is all normally executing code. When you put the code to the test and let the engine extrapolate every action that will happen by looking at the execution plan, you can see that it is tweaked. -- Stephen Russell Sr. Production Systems Programmer Mimeo.com Memphis TN 901.246-0159 --- StripMime Report -- processed MIME parts --- multipart/alternative text/plain (text body -- kept) text/html --- _______________________________________________ Post Messages to: [email protected] Subscription Maintenance: http://leafe.com/mailman/listinfo/profox OT-free version of this list: http://leafe.com/mailman/listinfo/profoxtech Searchable Archive: http://leafe.com/archives/search/profox This message: http://leafe.com/archives/byMID/profox/[EMAIL PROTECTED] ** All postings, unless explicitly stated otherwise, are the opinions of the author, and do not constitute legal or medical advice. This statement is added to the messages for those lawyers who are too stupid to see the obvious.

