Viewing 15 posts - 1,186 through 1,200 (of 2,647 total)
You could use a parameter:
DECLARE @parameterName varchar(25)
SET @parameterName = 'AR-46'
Then replace all your where's to WHERE holder_Version_Code_Enrollment = @parameterName
April 10, 2012 at 12:47 pm
The other option is to do this in separate queries starting with checking col 3 and moving data left. Then column 2.
April 10, 2012 at 9:06 am
Is this going to be a regular operation, or are you trying to clean existing data where new constraints have been placed in the application that is inserting the data...
April 10, 2012 at 9:03 am
Maybe I am misunderstanding you. You stated
I'm trying to shift all values to the left where they can be shifted (where there's a NULL).
You do not mention any...
April 10, 2012 at 8:55 am
If you have only 3 fields just do 3 simple case statements. Shouldn't be that much code. Can't think offhand how to do it better.
April 10, 2012 at 8:38 am
Please refer to the article linked in my signature by Jeff Moden to see how to properly post your question.
April 10, 2012 at 8:33 am
Disable the sa account and only use individual accounts. Clearly too many people have the sa account credentials...
April 10, 2012 at 8:26 am
I think for auto-complete to work effectively, the entire data set should be loaded for the context and then filtered programmatically as each letter is typed. Not calling a stored...
April 10, 2012 at 8:05 am
mot256 (4/2/2012)
Thank you very much for this script!
+1 Lowell! I knew I would need this some day after reading the post. Today was that day!
April 10, 2012 at 6:44 am
andersg98 (4/9/2012)
April 9, 2012 at 3:16 pm
andersg98 (4/9/2012)
April 9, 2012 at 3:06 pm
Why are you looking for an alternative way? Is this query slow? Do you not like IF ELSE? If it works, why change it?
April 9, 2012 at 2:16 pm
We always try to keep the server name the same. This way, they do not have to change the connection strings in every single application config.
April 9, 2012 at 1:21 pm
I'm not sure that you really understand what a trigger is. A trigger fires when an event occurs. If there is no event, there is no firing; i.e. before...
April 9, 2012 at 12:22 pm
I can tell you from experience that it is not a valid upgrade path to go from EE to dev. In fact, I just ran into the issue on Friday.
April 9, 2012 at 10:50 am
Viewing 15 posts - 1,186 through 1,200 (of 2,647 total)