Hi all,
We all are facing problem in calculating difference between date.
I have one good delicious, have a look at Calculate period of time with .NET.
1 day ago
Information Sharing, Technical Articles. You can find solutions, best precticies for ASP.net application. More knowledge sharing on C#, AJAX, SQL, .Net Framework, OOPs Concepts, SQL Server 2005, SQL Server 2000, Programming.
This will probably returns 830 rows [thats default],
select * from [northwind].[dbo].[orders]
declare @statement varchar(100)We can do as follows which don't requrie creating dynamic query.
declare @iTop int
set @iTop=3
set @statement ='select top ' + convert(varchar(2),@iTop) + ' * from [northwind].[dbo].[orders]'
EXEC (@statement)
declare @iTop intThis will display top 3 records!!
set @iTop=3
set rowcount @iTop
select * from [northwind].[dbo].[orders]
set rowcount 0
Blog.Feed() | : | Rss 2.0 |
Blog.PageCounter() | : | |
Me.Resume() | : | Imran Bhadelia |
Me.Consult() | : | Click Here |