Re: excluding fields in SELECT statement
- From: Erland Sommarskog <esquel@xxxxxxxxxxxxx>
- Date: Mon, 24 Oct 2005 22:01:10 +0000 (UTC)
ric (rtavert@xxxxxxxxx) writes:
>>>you can use Query Analyzer to generate a SELECT statement for the desired
>>>view...
>
> Is this something other than dragging over columns into the SELECT
> statement you're building?
I guess this is what Dan had in mind. Myself, when I need to do this, I
usually do a SELECT * FROM tbl WHERE 1 = 0 in text mode, copy and paste
the headers into Textpad, where I have a macro so I with a keypress can
replace the spaces with commas, and then cut and paste back.
There is a new product PromptSQL which claims to provide intellisense to
Query Analyzer. Since I am not fond of intellisense myself, I have not
tried it. But somehing that expands a * would be a great thing for such a
tool - maybe they have it?
--
Erland Sommarskog, SQL Server MVP, esquel@xxxxxxxxxxxxx
Books Online for SQL Server SP3 at
http://www.microsoft.com/sql/techinfo/productdoc/2000/books.asp
.
- Follow-Ups:
- Re: excluding fields in SELECT statement
- From: promptsql
- Re: excluding fields in SELECT statement
- From: Dan Guzman
- Re: excluding fields in SELECT statement
- References:
- excluding fields in SELECT statement
- From: ric
- Re: excluding fields in SELECT statement
- From: Dan Guzman
- Re: excluding fields in SELECT statement
- From: ric
- excluding fields in SELECT statement
- Prev by Date: Re: Stripping Punctuation
- Next by Date: Re: Many data entry tables - which ones hold records?
- Previous by thread: Re: excluding fields in SELECT statement
- Next by thread: Re: excluding fields in SELECT statement
- Index(es):
Relevant Pages
|