― Colonel Poo, Saturday, 3 March 2007 02:19 (eighteen years ago)
― Edward III, Saturday, 3 March 2007 02:22 (eighteen years ago)
― Colonel Poo, Saturday, 3 March 2007 02:25 (eighteen years ago)
― Jaq, Saturday, 3 March 2007 04:06 (eighteen years ago)
― Edward III, Saturday, 3 March 2007 04:28 (eighteen years ago)
― libcrypt, Saturday, 3 March 2007 04:44 (eighteen years ago)
― Edward III, Saturday, 3 March 2007 04:56 (eighteen years ago)
― libcrypt, Saturday, 3 March 2007 05:00 (eighteen years ago)
― Edward III, Saturday, 3 March 2007 05:11 (eighteen years ago)
― Catsupppppppppppppp dude 茄蕃, Friday, 20 April 2007 16:30 (eighteen years ago)
― admrl, Friday, 20 April 2007 16:31 (eighteen years ago)
― Catsupppppppppppppp dude 茄蕃, Friday, 20 April 2007 16:51 (eighteen years ago)
― Catsupppppppppppppp dude 茄蕃, Friday, 20 April 2007 16:52 (eighteen years ago)
― stet, Friday, 27 April 2007 01:29 (eighteen years ago)
― Jaq, Friday, 27 April 2007 01:50 (eighteen years ago)
― Keith, Friday, 27 April 2007 01:51 (eighteen years ago)
― am0n, Friday, 27 April 2007 04:14 (eighteen years ago)
― am0n, Friday, 27 April 2007 04:15 (eighteen years ago)
― Keith, Friday, 27 April 2007 12:21 (eighteen years ago)
― Keith, Friday, 27 April 2007 12:26 (eighteen years ago)
― am0n, Friday, 27 April 2007 13:22 (eighteen years ago)
― am0n, Friday, 27 April 2007 13:24 (eighteen years ago)
― o. nate, Friday, 27 April 2007 19:04 (eighteen years ago)
― Catsupppppppppppppp dude 茄蕃, Friday, 27 April 2007 19:10 (eighteen years ago)
― libcrypt, Friday, 27 April 2007 19:51 (eighteen years ago)
― o. nate, Friday, 27 April 2007 20:03 (eighteen years ago)
Today's SQL Server hate topic is ISNUMERIC.
SELECT ISNUMERIC('350000' + CHAR(160))
----------- 1
(1 row(s) affected)
SELECT CONVERT(INT, '350000' + CHAR(160))
----------- Msg 245, Level 16, State 1, Line 1 Syntax error converting the varchar value '350000 ' to a column of data type int.
FUCK YOU.
(the solution is to convert to Money first, then Int, but really, FFS. I have no idea what unprintable character 160 is doing in the source file, but there's no accounting for our clients unfortunately.)
― Colonel Poo, Tuesday, 17 July 2007 12:22 (eighteen years ago)
It's interesting that CHAR(160) = # for me. It's not a legal UTF-8 character, so if you're using UTF-8, it may provoke undefined behavior.
― libcrypt, Tuesday, 17 July 2007 18:04 (eighteen years ago)
Nope, it's an ASCII field, not Unicode.
― Colonel Poo, Wednesday, 18 July 2007 08:13 (eighteen years ago)
ASCII is defined for 0-127. Above that, you're in another character set. In ISO-8859-1 and ISO-8859-15, 160 is a non-breaking space, but I really have no idea what charset MS is pretending is "ASCII" between 128-255.
― libcrypt, Wednesday, 18 July 2007 15:36 (eighteen years ago)
I assume that's why it's unprintable.
― Colonel Poo, Wednesday, 18 July 2007 16:24 (eighteen years ago)
FUCK YOU FUCK YOU FUCK YOU.
Trying to edit an SSIS package because a client changed their XML spec, and I get this handy error every time I try to edit a component:
Error HRESULT E_FAIL has been returned from a call to a COM component.
Can't get any details about it at all.
Then my SQL Server Management Studio crashed when I tried to connect to Integration Services.
AND every time I try and add columns to a table using the Management Studio it times out, which SQL Server 2000 Enterprise Manager didn't do.
SQL Server 2005 really is a piece of fucking shit.
― Colonel Poo, Wednesday, 1 August 2007 10:53 (eighteen years ago)
YOU FUCKING CUNTS
CREATE TABLE #Results (SvrName VARCHAR(255) ,DBName VARCHAR(255) ,string VARCHAR(255) ,xtype VARCHAR(10) ,name VARCHAR(256))
IF @includeDetails = 1 BEGIN ALTER TABLE #Results ADD Details VARCHAR(4000) END
Warning: The table '#Results' has been created but its maximum row size (9066) exceeds the maximum number of bytes per row (8060). INSERT or UPDATE of a row in this table will fail if the resulting row length exceeds 8060 bytes.
WTF??! 255 + 255 + 255 + 10 + 256 + 4000 is blatantly NOT more than 8060 you stupid piece of shit!
― Colonel Poo, Thursday, 20 March 2008 13:00 (seventeen years ago)
What are you running that code on? I run that on SQL2000 and get no error message.
― The Wayward Johnny B, Thursday, 20 March 2008 13:19 (seventeen years ago)
SQL 2000, in a stored proc.
It works outside the proc.
I also get this:
Cannot sort a row of size 8106, which is greater than the allowable maximum of 8094.
when doing SELECT * FROM #Results
I'm not asking it to sort! WTF!
― Colonel Poo, Thursday, 20 March 2008 13:20 (seventeen years ago)
Is it implicitly turning it into an NVARCHAR for some stupid reason? I'm stumped.
― Colonel Poo, Thursday, 20 March 2008 13:22 (seventeen years ago)
I even added exec tempdb.dbo.sp_help #Results to the proc and got this:
SvrName varchar no 255 DBName varchar no 255 string varchar no 255 xtype varchar no 10 name varchar no 256 Details varchar no 4000
So it's definitely creating the temp table as I'd expect it. Where is it getting these figures of 9066 and 8106 bytes from??
― Colonel Poo, Thursday, 20 March 2008 13:24 (seventeen years ago)
Tried replacing the temp table with a permanent one, same thing. ???!!!
― Colonel Poo, Thursday, 20 March 2008 13:27 (seventeen years ago)
What Characterset are you using?
― Mezza, Thursday, 20 March 2008 13:41 (seventeen years ago)
It's not that I've sort of fixed it now. It's a misleading/wrong error message - the problem had nothing to do with creating the table.
I was inserting data that was NVARCHAR into the table, that took it over 8060 bytes. Why it decided to tell me there was an error creating the table rather than inserting into it I have no idea. I added explicit CONVERT(VARCHAR(4000), <nvarchar field>) to the INSERT statement and the error went away (although I still get the warning message, which is annoying but not really a problem I suppose).
― Colonel Poo, Thursday, 20 March 2008 13:48 (seventeen years ago)
I miss SQL Server :(
― Just noise and screaming and no musical value at all. (Colonel Poo), Monday, 25 March 2013 17:58 (twelve years ago)
ms sql server, the only database i've encountered able to deadlock on concurrent reads.
― s.clover, Monday, 25 March 2013 20:38 (twelve years ago)
With (nolock), dudes..
― Mark G, Monday, 25 March 2013 22:16 (twelve years ago)
^^^
― Darth Icky (DJP), Monday, 25 March 2013 22:21 (twelve years ago)
I'm quite nostalgic about the complaints I had upthread. I'd give anything to swap annoying ISNUMERIC logic to the abject horror that is MySQL.
Luckily everyone who works here agrees with me and we're looking to move everything to Postgres but that will take a long time to happen.
― Just noise and screaming and no musical value at all. (Colonel Poo), Tuesday, 26 March 2013 09:23 (twelve years ago)
ARGGGHHHHHH IJKOFJ034UF903RUFJE
just about ready to murder sql
― c21m50nh3x460n, Sunday, 17 November 2013 00:42 (twelve years ago)