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
 
Register Now and get your question answered!
Username:
Password:
Save Password
Forgot your Password?

 All Forums
 SQL Server 2000 Forums
 Transact-SQL (2000)
 GRID RESULTS
 Reply to Topic
 Printer Friendly
Author Previous Topic Topic Next Topic  

PATPC999
Starting Member

8 Posts

Posted - 04/05/2013 :  11:13:33  Show Profile  Reply with Quote
I am run a query multiple times using
WHILE @YEAR < @STOPYEAR
BEGIN

THE QUERY

SET @YEAR = @YEAR + 1
IF @YEAR = @STOPYEAR
BREAK
ELSE
CONTINUE
END

Of course the results show up in multiple grids and I was wonder if I can get the results
In just one grid.

chadmat
The Chadinator

USA
1974 Posts

Posted - 04/05/2013 :  11:29:39  Show Profile  Visit chadmat's Homepage  Reply with Quote
Not the way you have it written. Maybe if you give us the query, it could be written to give you a single result set.

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