Jeff Crosby wrote on 11/09/2007 16:29:13:
Yes I need it for native I/O. I'll figure out another way. But I _AM_
going to define this file via DDL.
I think you could attain your goal by just creating the view, and using
that in your native I/O. As Eric mentioned, the SQL engine may use an
index over the table the view uses, so I'd suggest creating the view that
gets the data the way you'd like it presented to the HLL, then creating a
program that opens the file and reads it. If you run the program in
debug, I think you will get some information about what the SQL engine is
doing in the background to open the view - which should suggest an index
creation if an index would be useful.
HTH,
Adam
Attention:
The information contained in this message and or attachments is
intended only for the person or entity to which it is addressed and may contain
confidential and/or privileged material. Any review, retransmission,
dissemination or other use of, or taking of any action in reliance upon, this
information by persons or entities other than the intended recipient is
prohibited. If you received this message in error, please contact the sender and
delete the material from any system and destroy any copies. Thank you for your
time and consideration.
Attention:
Le contenu de ce message et(ou) les fichiers ci-joints s?adressent
exclusivement à la personne ou -entité à laquelle ils sont destinés. Ils peuvent
contenir de l?information confidentielle, protégée et(ou) classifiée. Il est
strictement interdit à toute personne ou entité autre que le(la) destinataire
prévu(e) de ce message d?examiner, de réviser, de retransmettre ou de diffuser
cette information, de prendre une quelconque action en fonction ou sur la base
de celle-ci, ou d?en faire tout autre usage. Si vous avez reçu ce message par
erreur, veuillez communiquer avec l?expéditeur(trice), supprimer ce message et
les fichiers ci-inclus de tout système, et en détruire toutes copies, qu?elles
soient électroniques ou imprimées. Nous vous remercions de votre entière
collaboration.
As an Amazon Associate we earn from qualifying purchases.