↧
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 ArticleAnswer 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