SQL Server Forums
Profile | Register | 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
 New Topic  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  
 New 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.09 seconds. Powered By: Snitz Forums 2000