Cannot delete rows using [image] IS NULL - Erland Sommarskog |
04-Jan-08 08:57:54
|
Granta Guy (grantaguy@newsgroup.nospam) writes:
Amazing! Absolutely amazing! That is certainly one of those bugs that
makes you think: how do they do it?
And, yes, a bug it is. All I can really say is that you can file a bug on
http://connect.microsoft.com/SqlServer/Feedback. But if you need a hotfix
for this, you would need to open a case with Microsoft and convince them
that there is no good workarounds.
Alas, this makes me suspect that Microsoft will decline to fix it, since
image & co are deprecated in SQL 2005.
Can't you use image on SQL 2000 and varbinary(MAX) on SQL 2005? Dis-
regarding this bug, varbinary(MAX) is still so much easier to work with.
--
Erland Sommarskog, SQL Server MVP, esquel@sommarskog.se
Books Online for SQL Server 2005 at
http://www.microsoft.com/technet/prodtechnol/sql/2005/downloads/books.mspx
Books Online for SQL Server 2000 at
http://www.microsoft.com/sql/prodinfo/previousversions/books.mspx |
 |
| |
Cannot delete rows using [image] IS NULL - weil |
06-Jan-08 11:01:23
|
Hello Grant,
I have noticed that you have send the feedback to the product team via
http://connect.microsoft.com/sql
Currently, our product team is working on this. If you have any questions
or it is a urgent situation, please submit a Support Incedent to the
Microsoft CSS. Hope this helps.
Sincerely,
Wei Lu
Microsoft Online Community Support
==================================================
When responding to posts, please "Reply to Group" via your newsreader so
that others may learn and benefit from your issue.
==================================================
This posting is provided "AS IS" with no warranties, and confers no rights. |
 |
| |
Cannot delete rows using [image] IS NULL - Kalle Olavi Niemitalo |
17-Jan-08 03:09:13
|
Erland Sommarskog <esquel@sommarskog.se> writes:
The distinction between NULL values stored by INSERT and UPDATE
is not entirely unprecedented. WRITETEXT in SQL Server 2005:
by not initializing text columns when explicit or implicit
null values are added in text columns with INSERT, and no text
pointer can be obtained for such nulls. To initialize text
columns to NULL, use the UPDATE statement. If the table has in
row text, you do not have to initialize the text column for
nulls and you can always get a text pointer."
Which makes me suspect that tweaking the "text in row" option
might possibly work around the bug.
For reference, this is where the bug was registered:
http://connect.microsoft.com/SQLServer/feedback/ViewFeedback.aspx?FeedbackID=321074 |
 |
| |
Cannot delete rows using [image] IS NULL - Erland Sommarskog |
17-Jan-08 06:14:06
|
Kalle Olavi Niemitalo (kon@iki.fi) writes:
Ah, that casts some light on the mystery! Thanks Kalle!
--
Erland Sommarskog, SQL Server MVP, esquel@sommarskog.se
Books Online for SQL Server 2005 at
http://www.microsoft.com/technet/prodtechnol/sql/2005/downloads/books.mspx
Books Online for SQL Server 2000 at
http://www.microsoft.com/sql/prodinfo/previousversions/books.mspx |
 |
| |
Cannot delete rows using [image] IS NULL - grantagu |
02-Apr-08 08:22:01
|
Aha! That does indeed work around the problem. Running
sp_tableoption N'TableB', 'text in row', 'ON'
after creating the tables results in the script working as expected.
Thanks. |
 |
| |