Please start any new threads on our new site at https://forums.sqlteam.com. We've got lots of great SQL Server experts to answer whatever question you can come up with.

 All Forums
 SQL Server 2000 Forums
 SQL Server Development (2000)
 Results In Text

Author  Topic 

keithc1
Yak Posting Veteran

88 Posts

Posted - 2004-06-10 : 20:24:59
Is there any way to code in a Stored Procedure or in T-SQL to have Results returned in text instead of actually clicking off menu and selecting it from there? Just to be clear I'd like to do this via T-SQL

Keithc MCSE MCSA

Merkin
Funky Drop Bear Fearing SQL Dude!

4970 Posts

Posted - 2004-06-10 : 20:27:53
No

The display of the results is a function of Query Analyzer and not TSQL.

Why do you need to do it this way ?


Damian
Go to Top of Page

keithc1
Yak Posting Veteran

88 Posts

Posted - 2004-06-10 : 20:59:23
Really don't need it that way I was just am trying to do everything I can using T-SQL and some times i'll run a proc that once in grid isn't the format i wanted or vice versa then I have to click etc then re-run to get results the way I want for readability. I'd rather type it out to tell you the truth, be nice to have like a SET QA(Txt) on or something like that.

Keithc MCSE MCSA
Go to Top of Page

Merkin
Funky Drop Bear Fearing SQL Dude!

4970 Posts

Posted - 2004-06-10 : 21:08:41
I see

You are out of luck there sorry.
You can set the default format to text in the Options -> Results tab.


Damian
Go to Top of Page

keithc1
Yak Posting Veteran

88 Posts

Posted - 2004-06-10 : 22:27:17
Hey Merkin thanks for the help, just became member here and hope to get some help time to time. Very new to sql, I have couple home systems setup with SQL and am working torwards Cert hoping to get an edge (MCSE doesn't quite get you a job anymore) but maybe MCSE and MCDBA gets me a better chance. Just working way through couple books right now.
Guru's Guide to SQL SERVER Stored procedures and XML by Henderson
and
Sql Programming book By Vera

any other good ones or advice be great thanks

Keithc MCSE MCSA
Go to Top of Page

derrickleggett
Pointy Haired Yak DBA

4184 Posts

Posted - 2004-06-10 : 23:31:16
The Guru's Guide is a good start. :) Also look at his internals book. You should also look at anything published by Kalen Delaney (Inside SQL Server 2000) and The Performance Tuning Technical Reference by Microsoft Press.

MeanOldDBA
derrickleggett@hotmail.com

When life gives you a lemon, fire the DBA.
Go to Top of Page

Lumbago
Norsk Yak Master

3271 Posts

Posted - 2004-06-11 : 13:43:18
I just bought "Microsoft SQL Server 200 Performance Optimization and Tuning Handbook" by Ken England and it's quite good...
Go to Top of Page

X002548
Not Just a Number

15586 Posts

Posted - 2004-06-11 : 14:23:06
btw you're looking for bcp with a format file..

do you have sql server books online?

or

BOL



Brett

8-)
Go to Top of Page
   

- Advertisement -