I highly recommend the Super Browse tool from the VFPX Thor toolkit. It's been called browse on steroids. Point it at a table or cursor. It not only lets you browse the data; it's also got a UI that lets you pick the columns you want, etc and then generate various SQL fragments in VFP or SQL flavors.
-- rk -----Original Message----- From: ProfoxTech [mailto:profoxtech-boun...@leafe.com] On Behalf Of Joe Yoder Sent: Wednesday, April 15, 2015 11:00 AM To: profoxt...@leafe.com Subject: Re: Data Dictionary questions When there is a table that is part of a database (DBSTAFF) I can browse it and it automatically opens the database and shows the long field names as headers. When I do a "select * from DBSTAFF" I get a cursor with the long field names as headers. My question is "What syntax do I use specify specific field names if I don't want them all? On Wed, Apr 15, 2015 at 10:48 AM, Stephen Russell <srussell...@gmail.com> wrote: > On Wed, Apr 15, 2015 at 9:31 AM, Joe Yoder <j...@wheypower.com> wrote: > > > The help so far has given me the tools to figure out how to create a > > translation table but I still don't know what syntax to use when I > > want > to > > write an SQL Select specifying the fields I want using the long name > form. > > Examples: "Select Mail Label from DBSTAFF " complains that Mail cant > > be found, "Select 'Mail Label' from DBSTAFF " gives me "Mail Label" > > rather than the field contents, and "Select ('Mail Label') from > > DBSTAFF " also gives me "Mail Label." > > > > I expect it is just a case of learning a syntax I haven't tried but > perhaps > > one must use the 10 character form of the filed name. If some one > > can enlighten me it will be greatly appreciated! > > ----------- > > > > I do not think that DBGETPROP(table.fieldname, "FIELD", "Caption") is > an SQL function only one via a DBC being open. > > You could create a cursor with the details but that sounds stupid not > being able to get it via SQL. > > > -- > Stephen Russell > Sr. Analyst > Ring Container Technology > Oakland TN > > 901.246-0159 cell > > > --- StripMime Report -- processed MIME parts --- multipart/alternative > text/plain (text body -- kept) > text/html > --- > [excessive quoting removed by server] _______________________________________________ Post Messages to: ProFox@leafe.com Subscription Maintenance: http://mail.leafe.com/mailman/listinfo/profox OT-free version of this list: http://mail.leafe.com/mailman/listinfo/profoxtech Searchable Archive: http://leafe.com/archives/search/profox This message: http://leafe.com/archives/byMID/profox/sn1pr10mb0462d272f9e0eb8dd03742dad2...@sn1pr10mb0462.namprd10.prod.outlook.com ** 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.