Hi,
I am scheduling the a query to a table for each database in a particular instance. The query and table for each database are similar. I direct the query results to text file. Before the query results, I include the database where the particular query is being made. In my test in AdventureWorks, however, the result I got is a database name with very long underline.
Below is the output I got:
DatabaseName
-------------------------------------------------------------------------------
AdventureWorks
AttemptDate
-----------------------
2009-05-29 12:54:28.460
Below is the query I invoked:
set nocount on
use AdventureWorks
GO
select DB_NAME()as DatabaseName
select AttemptDate from dbo.ChangeAttempt
My question is: How do I shorten the lines below the database name?