Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations IamaSherpa on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

output from query analyzer 1

Status
Not open for further replies.

beechill4

Technical User
May 10, 2005
207
IE
Hi,

i have the following code running in query analyser:
PRINT '2.1 DATABASE NAME'

SELECT PROPERTY_VALUE as 'Database Name' FROM DATABASE_PROPERTIES
WHERE PROPERTY_NAME = 'GLOBAL_DB_NAME'

the output is as follows:
2.1 DATABASE NAME
Database Name
----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
ORMT
FERMATT


how do i get rid of the '-------' part of the output?

 
In your query analzer got Tools==>Results in Grid.
Also try
Rtrim(Ltrim(lTrim(Database Name)


Dr. Sql
goEdeveloper@yahoo.com
Good Luck.
 
hi,

i am try to get the results to file, so to grid is of little use

tried the Rtrim(Ltrim(lTrim(Database Name)
and no change to the output

 
There is a way to turn these off, however it will also not print out headings to your file.

Go to Tools--->Options
Click on the Results tab.
Uncheck the "Print Column Headers(*)" option

You wil get your results only without the headings.

Don't know if this helps you at all.

Tim
 
hi,

thats a big help. should get me what i require.

Thanks!
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top