Viewing 15 posts - 1,036 through 1,050 (of 5,843 total)
Kludgy as heck, but it seems to give the desired results. :hehe:
CREATE TABLE #a (AFFILIATIONID varchar(20),
...
May 25, 2016 at 10:59 am
I can work with "it doesn't matter". Give me a few minutes to slap together some code.
May 25, 2016 at 10:47 am
I can't see why that would fail when you insert the output into a table that has decimal(5,2) for that column's data type.
Try doing a SELECT INTO... and seeing if...
May 25, 2016 at 10:39 am
j21283 (5/25/2016)
We recently did a major system upgrade from SQL 2008 and...
May 25, 2016 at 10:36 am
Here's the test setup if someone else wants to pursue this.
CREATE TABLE #a (AFFILIATIONID varchar(20),
...
May 25, 2016 at 10:30 am
DECIMAL(5,2) can store 5 total digits. 140 * 100 is 140000, or 6 digits.
Try using bigger decimals in the equation then casting final output to 5,2.
May 25, 2016 at 9:42 am
If you go the HASHBYTES method (which I too have used in the past for large-scale data loading processes), consider using SHA or SHA1 instead of MD5 for a bit...
May 25, 2016 at 8:00 am
Can you post the full create table definition of the table, including all the indexes?
Also, do you have any triggers on the table? If so post those up too.
Are you...
May 25, 2016 at 7:52 am
select *
from tableA a
where exists (select * from tableB b where a.ID00 = b.ID00 and a.OBJECT00 = b.OBJECT00 and a.FIELD00 = b.FIELD00)
BTW, your sample data isn't really helpful. When you...
May 24, 2016 at 7:25 pm
Do you have any triggers (especially auditing ones) on the table?
Is the column you are adding NULLABLE?
May 24, 2016 at 12:44 pm
Has your log backup job been failing? At least 50% of the clients I visit have jobs failing and they don't know about it because they didn't enable Database Mail...
May 24, 2016 at 6:11 am
Jeff Moden (5/23/2016)
TheSQLGuru (5/23/2016)
Jeff Moden (5/23/2016)
anthonystevens (5/23/2016)
Looks like it was a problem with our SAN. Thanks for the help and advise.
What kind of problem?
Also, why are you wasting valuable...
May 23, 2016 at 7:28 pm
I thought that error message was related to OFFLINE database state.
Check sysdatabases and sys.databases to see various state flags for the database of concern.
May 23, 2016 at 12:16 pm
Jeff Moden (5/23/2016)
anthonystevens (5/23/2016)
Looks like it was a problem with our SAN. Thanks for the help and advise.
What kind of problem?
Also, why are you wasting valuable SAN space to...
May 23, 2016 at 9:12 am
Shelley Allen (5/23/2016)
May 23, 2016 at 8:18 am
Viewing 15 posts - 1,036 through 1,050 (of 5,843 total)