Viewing 15 posts - 931 through 945 (of 1,086 total)
Since your codes are unique, you should be able to do a loop.
Delcare the variables @CurrentID, @MaxID, @NewID
SELECT @CurrentID = (SELECT MIN( ID) FROM Table)
SELECT @MaxID = (SELECT MAX(...
March 8, 2005 at 12:23 pm
aaaaaaarrrrggggghhh! Everything I just wrote got lost.
First, Kenneth, thanks for the extra work on my behalf. All I meant was, I did go through BOL and found float to be a...
March 8, 2005 at 9:07 am
Thanks Kenneth. I did read about it on BOL. It is very imprecise and I simply do not see any application that it would serve. Even if 3rd part apps...
March 8, 2005 at 5:05 am
It took me a bit since I had other stuff to attend to in the mean time.
This is what I have developed so far. It is needed because the...
February 28, 2005 at 3:21 pm
MY GOOF! I had the wrong numbers in the SUBSTRING.
This will work:
SELECT CONVERT( datetime, SUBSTRING( '13071961', 3, 2) + '/' + SUBSTRING( '13071961', 1, 2) + '/' +...
February 28, 2005 at 12:06 pm
Will your data always be in that format? If so, you have a number of options. Because I am American, I would prefer the following: 13071961 would be the value. ...
February 28, 2005 at 12:02 pm
That was my point for posting this. Look at CHAR(180) in this chart and then try selecting it from your query analyzer. I bet you see a different result....
February 28, 2005 at 5:46 am
I built a function to handle this with Invoice Numbers for an accounting contact I had, so I fully understand.
But, I think in this case, one REPLACE looping through the...
February 28, 2005 at 5:45 am
Oh this is infuriating - I lost everything I just wrote!!
First, this will never be used on a table, hence that is not...
February 25, 2005 at 3:33 pm
I don't think I need to; albiet I now am adding another ID field to the table.
DECLARE @Variable varchar(1),
@TestScript varchar(25)
SELECT @Variable = 'I'
SELECT @TestScript = 'I...
February 25, 2005 at 2:13 pm
I appreciate your confidence in me, but I think it may be misplaced.
Could you offer an idea of how to make that...
February 25, 2005 at 1:52 pm
I think I have it. I am going to create a table named something like "SpecialCharacters". It will have two fields, one for the character and a second for a...
February 25, 2005 at 1:10 pm
This is a good discussion. I have consulted for many years and many kinds of companies and invariably there is fight between Development and the DBA's. (I have been in...
February 22, 2005 at 4:37 pm
Just to throw a monkey wrench in the mix (I like argumentation who would'a guessed); what about this situation with respect to Social Security...
February 22, 2005 at 4:30 pm
You should find many, many examples of Error Handling on this site. You just need to remember to create a @Variable to capture @@Error, because you will immediately loose it...
February 22, 2005 at 4:21 pm
Viewing 15 posts - 931 through 945 (of 1,086 total)