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

Our new SQL Server Forums are live! Come on over! We've restricted the ability to create new threads on these forums.

SQL Server Forums
Profile | Active Topics | Members | Search | Forum FAQ
Username:
Password:
Save Password
Forgot your Password?

 All Forums
 SQL Server 2000 Forums
 SQL Server Development (2000)
 delete spaces and dashes in between 2 selects
 Topic Locked
 Printer Friendly
Author Previous Topic Topic Next Topic  

mdelgado
Posting Yak Master

USA
141 Posts

Posted - 03/20/2002 :  16:00:31  Show Profile
Hello all. I am running 2 select statements and sending the results using xp_sendmail and I'm haveing a small problem.

I would like to get rid of the 'extra' space that is added in between the 2 select statements. Can anyone help?

thanks.

Jay99
Constraint Violating Yak Guru

USA
468 Posts

Posted - 03/20/2002 :  16:14:15  Show Profile
Can you post some code so we can see what space you are talking about?

Jay
<O>
Go to Top of Page

mdelgado
Posting Yak Master

USA
141 Posts

Posted - 03/20/2002 :  17:21:17  Show Profile
These are the results of my 2 select statements. The first returns the three ship dates with revenue numbers and the second select statement returns the TOTAL. You'll notice that in between the two select statements I have what appears to be 3 carriage returns. Any way on getting rid of those extra line so that it looks like one continuos flow of data?






ShipDate Freight Revenue
----------- --------------------
03/19/2002 $462.70
03/18/2002 $555.49
03/17/2002 $13.49


----------- --------------------
TOTAL $1,031.68

Go to Top of Page

AjarnMark
SQL Slashing Gunting Master

USA
3246 Posts

Posted - 03/20/2002 :  18:54:32  Show Profile  Visit AjarnMark's Homepage
Your answer is over here: http://www.sqlteam.com/Forums/topic.asp?TOPIC_ID=14087 where you cross-posted. That isn't necessary here at SQLTeam as most of us read all the forums.

------------------------
GENERAL-ly speaking...
Go to Top of Page
  Previous Topic Topic Next Topic  
 Topic Locked
 Printer Friendly
Jump To:
SQL Server Forums © 2000-2009 SQLTeam Publishing, LLC Go To Top Of Page
This page was generated in 0.03 seconds. Powered By: Snitz Forums 2000