Quantcast
Channel: Answers for "Get year date while loop"
Browsing all 4 articles
Browse latest View live

Answer by tombiernacki

declare @id int declare @year int DECLARE @GETYEAR TABLE ( YEAR INT ) SET @year = 2010 declare @CurrentYear int SET @id = 0 SET @CurrentYear = (SELECT YEAR(GETDATE())) INSERT INTO @GETYEAR...

View Article


Answer by Usman Butt

@tombiernacki I would not recommend a Loop to acheive this. SQL Server is not build for such programming. Also, for your own good please always try to build a solution using a set based approach. Your...

View Article


Answer by tombiernacki

declare @id int declare @year int DECLARE @GETYEAR TABLE ( YEAR INT ) SET @year = 2010 declare @CurrentYear int SET @id = 0 SET @CurrentYear = (SELECT YEAR(GETDATE())) INSERT INTO @GETYEAR...

View Article

Answer by Usman Butt

@tombiernacki I would not recommend a Loop to acheive this. SQL Server is not build for such programming. Also, for your own good please always try to build a solution using a set based approach. Your...

View Article
Browsing all 4 articles
Browse latest View live