I have some code that runs ok in a demo version of my database, but always seems to go wrong when i try to recreate it on the live server.
It always gives me an error of 'error at line 22 syntax error near '='
Below is part of the code with the 'error' line noted, anybody got any ideas??
DECLARE @currKey int
DECLARE @prevKey int
DECLARE @currLine varchar(20)
DECLARE @currline2 varchar(20)
DECLARE @BigLine varchar(200)
SET @currLine = '' ------ Line 22
SET @currline2 = ''
SET @bigLine = ''
SET @prevKey = 0
SET @prevKey = -1
--------------------------------
Luke: But tell me why I can't...
Yoda: No, no, there is no why. Nothing more will I teach you today. Clear your mind of questions.
It always gives me an error of 'error at line 22 syntax error near '='
Below is part of the code with the 'error' line noted, anybody got any ideas??
DECLARE @currKey int
DECLARE @prevKey int
DECLARE @currLine varchar(20)
DECLARE @currline2 varchar(20)
DECLARE @BigLine varchar(200)
SET @currLine = '' ------ Line 22
SET @currline2 = ''
SET @bigLine = ''
SET @prevKey = 0
SET @prevKey = -1
--------------------------------
Luke: But tell me why I can't...
Yoda: No, no, there is no why. Nothing more will I teach you today. Clear your mind of questions.