Microsoft KB Archive/817359: Difference between revisions
(importing KB archive) |
m (Text replacement - "&" to "&") |
||
Line 125: | Line 125: | ||
To reproduce this problem, use the following code sample: | To reproduce this problem, use the following code sample: | ||
<pre class="codesample">if exists (select * from sysobjects where id = object_id('dbo.MyProc') and sysstat & | <pre class="codesample">if exists (select * from sysobjects where id = object_id('dbo.MyProc') and sysstat & 0xf = 4) | ||
drop procedure dbo.MyProc | drop procedure dbo.MyProc | ||
GO | GO |
Latest revision as of 14:16, 21 July 2020
Article ID: 817359
Article Last Modified on 11/2/2007
APPLIES TO
- Microsoft SQL Server 2000 Developer Edition
- Microsoft SQL Server 2000 Standard Edition
- Microsoft SQL Server 2000 Enterprise Edition
- Microsoft SQL Server 2000 Personal Edition
- Microsoft SQL Server 2000 Enterprise Edition
- Microsoft SQL Server 2000 Workgroup Edition
- Microsoft SQL Server 2000 Desktop Engine (Windows)
- Microsoft SQL Server 2000 Developer Edition
- Microsoft SQL Server 2000 Enterprise Edition 64-bit
BUG #: 469096 (SHILOH_BUGS)
SYMPTOMS
After you apply SQL Server 2000 Service Pack 3 (SP3), an access violation may occur when you run an INSERT statement in an nText column from a NULL parameter in a stored procedure that uses CAST or CONVERT.
Note This problem does not occur in earlier versions of SQL Server.
RESOLUTION
Service pack information
To resolve this problem, obtain the latest service pack for Microsoft SQL Server 2000. For additional information, click the following article number to view the article in the Microsoft Knowledge Base:
290211 How to obtain the latest SQL Server 2000 service pack
Hotfix information
The English version of this hotfix has the file attributes (or later file attributes) that are listed in the following table. The dates and times for these files are listed in coordinated universal time (UTC). When you view the file information, it is converted to local time. To find the difference between UTC and local time, use the Time Zone tab in the Date and Time tool in Control Panel.
Date Time Version Size File name ------------------------------------------------------------------- 25-Feb-2003 17:41 2000.80.777.0 29,244 Dbmslpcn.dll 07-Feb-2003 19:44 786,432 Distmdl.ldf 07-Feb-2003 19:44 2,359,296 Distmdl.mdf 29-Jan-2003 15:55 180 Drop_repl_hotfix.sql 31-Jan-2003 14:32 2000.80.763.0 1,557,052 Dtsui.dll 29-Jan-2003 19:18 746,470 Instdist.sql 29-Jan-2003 15:55 1,402 Inst_repl_hotfix.sql 07-Feb-2003 20:40 2000.80.765.0 90,692 Msgprox.dll 07-Feb-2003 17:53 1,065,895 Replmerg.sql 07-Feb-2003 20:40 2000.80.765.0 221,768 Replprov.dll 07-Feb-2003 20:40 2000.80.765.0 307,784 Replrec.dll 06-Mar-2003 19:02 1,084,369 Replsys.sql 03-Mar-2003 07:18 104,958 Sp3_serv_uni.sql 19-Mar-2003 08:20 2000.80.789.0 28,672 Sqlevn70.rll 27-Feb-2003 15:34 2000.80.778.0 176,696 Sqlmap70.dll 07-Feb-2003 20:40 2000.80.765.0 57,920 Sqlrepss.dll 19-Mar-2003 08:24 2000.80.789.0 7,540,820 Sqlservr.exe 07-Feb-2003 20:40 2000.80.765.0 45,644 Sqlvdi.dll 25-Feb-2003 17:41 2000.80.777.0 29,244 Ssmslpcn.dll 25-Feb-2003 17:41 2000.80.777.0 82,492 Ssnetlib.dll 17-Mar-2003 04:49 727,132 Sysmessages.sym 27-Feb-2003 15:34 2000.80.778.0 98,872 Xpweb70.dll
Note Because of file dependencies, the most recent hotfix or feature that contains these files may also contain additional files.
WORKAROUND
To work around this problem, use one of the following methods:
- In the create table script, use the Text column type instead of the nText column type.
- In the Insert statement, use the VARCHAR column type instead of the NVARCHAR column type.
Note You can also use both of these methods to work around this problem.
STATUS
Microsoft has confirmed that this is a problem in the Microsoft products that are listed in the "Applies to" section.This problem was first corrected in Microsoft SQL Server 2000 Service Pack 4.
MORE INFORMATION
To reproduce this problem, use the following code sample:
if exists (select * from sysobjects where id = object_id('dbo.MyProc') and sysstat & 0xf = 4) drop procedure dbo.MyProc GO CREATE PROCEDURE dbo.MyProc ( @alpDateMetMin datetime = NULL) AS CREATE TABLE #MyTable (nValue ntext NOT NULL) INSERT INTO #MyTable VALUES (CONVERT(nvarchar(19), @alpDateMetMin, 120)) return 0 GO EXEC MyProc NULL
Keywords: kbbug kbfix kbqfe kbsqlserv2000presp4fix kbhotfixserver KB817359