FIX: ????? ??? ??? ??????? ???? ????? ??? (TVF) ?? ???? ????? "??? ?????" ?? ??????? ?? SQL Server 2005: "???? ????? ????? ?????? ??? ?????????"

?????? ????????? ?????? ?????????
???? ???????: 924954 - ??? ???????? ???? ????? ????? ??? ???????.
????? ???: 50000224 (??????? ?????? SQL)
Microsoft ?????? ????????? Microsoft SQL Server 2005 ???? ???? ??????? ???????. ??? ????????? ???????? ????? ?? ????? ???? ???? ????????? ??????? ????? ???? ??????? ?????? ???? ?? ??????? ?? SQL Server 2005 ??????? ???????.
????? ???? | ?? ????

?? ??? ??????

??????

???? ??? ??????? ??????? ??? ??? ??????? ??? ??????? ??????:
  • ???????? ???? ??? ??????? ?? ???? ???? ????????? ???????
  • ????????? ??????? ????? ???? ????????? ???????
  • ?? ??? ??? ??? ????? ????? ????????? ??? ????? ???? ??????? ??????
  • ?? ??? ??? ??? ??????? ???? ????????? ??????? ?????? ???? ????????? ??????? ??????
  • ?? ??? ??? ??? ????? ??? ??????? ??????? ??? ????? ???? ??????? ??????
  • ??????? ??????? ?? ???? ????????? ???????

???????

???? ??? ????????? ??????. ?? Microsoft SQL Server 2005 ????? ??????? ???? ????? ??? (TVF) ?? ???? ????? "??? ?????" ?? ???????. ????? ??????? TVF Transact-SQL ?? ??? ??? ????? ??? ???? (CLR) TVF. ?? ??? ?????????? ?? ???? ????? ????? ???????:
msg 701 ? ????? 17 ???? 123 ? ??? 2
???? ????? ????? ?????? ??? ?????????.
???? ???? ????? ??? ??????? ??? ???? ?????? ?? ?????? ?????? ?? ????????? ?????? ?? ??????.

?????

???? ??? ??????? ???? ?? ??? ????? ??????? ????????? ?? ??? ????????? TVF ???? ?????? ????? ?????????. ??? ??????? TVF ?? ???? ????? "??? ?????" TVF ?? ??? ??????? ??? ???? ??? ??? ????? ????????? ??? ?????. ????? ??? ??????? TVF ??? ???? ??? ??????? ????? ????? ?? ???????.

????

??????? ??????? ??????

????? ????? ???? ????? ?? Microsoft. ???? ????? ??? ?? ?? ??????? ??????? ?? ??? ???????. ????? ??? ??????? ?????? ??? ??? ??????? ???? ????? ??? ??????? ????????. ?? ??? ????? ???????? ?????? ??? ??? ??????? ??????. ?????? ??? ?? ??? ????? ??? ??????? ??????? ???? ????????? ??? ??????? ?????? ?? ????? ???????? ???? ????? ??? ??? ??????? ??????.

?? ???? ????? ??????? ?????? ???? ??? "???? ????? ??????? ????" ???? ????? ????? ??????? ??? ???. ??? ?? ???? ??? ?????? ???? Microsoft ???? ??????? ?????? ?????? ??? ??????? ??????.

?????? ???? ?????? ?????? ?? ?? ?? ???? ?????? ??? ??????? ??????? ???????? ?? ???? ????? ????? ??? ???? ?????. ???? ????? ?????? ????? ???????? ??? ????? ????? ???????? ????????? ???? ?? ???? ??? ???? ??? ??????? ?????? ????????. ?????? ????? ????? ?????? ????? Microsoft ???? ??????? ?????? ?????? ????? ?? ?????? ??? ???? ????? ?? ?????? ???? Microsoft ?????? ??? ?????:
http://support.microsoft.com/contactus/?ws=support
?????? ???? ????? "???? ????? ??????? ??????" ?????? ???? ????? ??????? ??????. ??? ?? ????? ????? ?????? ??? ???? ??? ???? ?? ????? ????? ???? ???? ?????.

????????? ????????

  • Microsoft SQL Server 2005 ?????? ????? ?????? Service Pack 1 (SP1)

    ?????? ??? ??????? ??? ????? ?????? ??? SQL Server 2005 ?????? ????? ?????? SP1 ???? ??? ??? ??????? ?????? ?????? ?? "????? ??????? ?? Microsoft:
    913089????? ?????? ??? ???? ???? ???? ?? SQL Server 2005

????? ????? ?????????

??? ???? ??? ????? ????? ????????? ??? ????? ??????? ??????.

??????? ???????

?? ??? ???? ????? ?????.

??????? ??? ??????? ??????

????? ??? ??????? ?????? ??? ??????? ???????? ?????? ???????? ???? ???? ??? ??????? ???. ?? ?? ????? ??? ??????? ?????? ??? ???? ??????? ???? ??? ?? ???? ???? ?????? ???? ????? ?????? ????? ????.

????? ????? ????? ?????????? ?? ??? ??????? ?????? ???? ????? (?? ???? ????) ??????? ?? ?????? ??????. ??? ??? ???????? ???????? ?????? ???? ??????? ?? "??? ??????? ???????" (UTC). ????? ???? ???? ??????? ?????? ??? ??????? ??? ??????? ??????. ?????? ????? ??? ??????? ??????? (UTC) ???????? ??????? ?????? ????? ??????? ??????? ??????? ?? ???? ??????? ?????? ?? "???? ??????".
SQL Server 2005 ??????? ?? ??
?? ??? ??????????? ??? ??????
??? ?????????? ???????? ????????????????????? ???????
Logread.exe2005.90.2192.0398,112?? ?????? ????15: 10x 86
Microsoft.analysisservices.adomdclient.dll9.0.2192.0543,520?? ?????? ????15: 11x 86
Microsoft.analysisservices.deploymentengine.dll9.0.2192.0138,016?? ?????? ????15: 09x 86
Microsoft.analysisservices.dll9.0.2192.01,215,264?? ?????? ????15: 10x 86
Microsoft.sqlserver.mgdsqldumper.dll2005.90.2192.075,552?? ?????? ????15: 08x 86
Microsoft.sqlserver.sqlenum.dll9.0.2192.0908,064?? ?????? ????15: 10x 86
Msgprox.dll2005.90.2192.0197,920?? ?????? ????15: 09x 86
Msmdlocal.dll9.0.2192.015,609,632?? ?????? ????15: 11x 86
Msmdredir.dll9.0.2192.03,990,304?? ?????? ????15: 11x 86
Replprov.dll2005.90.2192.0547,616?? ?????? ????15: 11x 86
Replrec.dll2005.90.2192.0782,112?? ?????? ????15: 10x 86
Sqlaccess.dll2005.90.2192.0347,936?? ?????? ????15: 10x 86
Sqlagent90.exe2005.90.2192.0319,264?? ?????? ????15: 10x 86
Sqlservr.exe2005.90.2192.028,962,136?? ?????? ????15: 12x 86
Xpstar90.dll2005.90.2192.0292,640?? ?????? ????14: 02x 86
Xpstar90.rll2005.90.2192.0152,864?? ?????? ????15: 10x 86
SQL Server 2005? x 64 ?? ???????
?? ??? ??????????? ??? ??????
??? ?????????? ???????? ????????????????????? ???????
Logread.exe2005.90.2192.0522,528?? ?????? ????14: 23x 64
Microsoft.analysisservices.adomdclient.dll9.0.2192.0543,520?? ?????? ????14: 23x 86
Microsoft.analysisservices.adomdclient.dll9.0.2192.0543,520?? ?????? ????15: 11x 86
Microsoft.analysisservices.deploymentengine.dll9.0.2192.0138,016?? ?????? ????15: 09x 86
Microsoft.analysisservices.dll9.0.2192.01,215,264?? ?????? ????15: 10x 86
Microsoft.sqlserver.mgdsqldumper.dll2005.90.2192.091,424?? ?????? ????14: 21x 64
Microsoft.sqlserver.mgdsqldumper.dll2005.90.2192.075,552?? ?????? ????15: 08x 86
Microsoft.sqlserver.sqlenum.dll9.0.2192.0875,296?? ?????? ????14: 20x 86
Msgprox.dll2005.90.2192.0259,360?? ?????? ????14: 22x 64
Msmdlocal.dll9.0.2192.015,609,632?? ?????? ????15: 11x 86
Msmdredir.dll9.0.2192.03,990,304?? ?????? ????15: 11x 86
Replprov.dll2005.90.2192.0745,248?? ?????? ????14: 20x 64
Replrec.dll2005.90.2192.01,008,416?? ?????? ????14: 21x 64
Sqlaccess.dll2005.90.2192.0355,104?? ?????? ????14: 23x 86
Sqlagent90.exe2005.90.2192.0390,944?? ?????? ????14: 23x 64
Sqlservr.exe2005.90.2192.039,350,048?? ?????? ????14: 21x 64
Xpstar90.dll2005.90.2192.0540,960?? ?????? ????14: 23x 64
Xpstar90.rll2005.90.2192.0153,376?? ?????? ????14: 21x 64
SQL Server 2005 ??????? ????? Itanium
?? ??? ??????????? ??? ??????
??? ?????????? ???????? ????????????????????? ???????
Logread.exe2005.90.2192.01,095,456?? ?????? ????13: 52IA-64
Microsoft.analysisservices.adomdclient.dll9.0.2192.0543,520?? ?????? ????13: 51x 86
Microsoft.analysisservices.adomdclient.dll9.0.2192.0543,520?? ?????? ????15: 11x 86
Microsoft.analysisservices.deploymentengine.dll9.0.2192.0138,016?? ?????? ????15: 09x 86
Microsoft.analysisservices.dll9.0.2192.01,215,264?? ?????? ????15: 10x 86
Microsoft.sqlserver.mgdsqldumper.dll2005.90.2192.0163,104?? ?????? ????13: 50IA-64
Microsoft.sqlserver.mgdsqldumper.dll2005.90.2192.075,552?? ?????? ????15: 08x 86
Microsoft.sqlserver.sqlenum.dll9.0.2192.0875,296?? ?????? ????13: 52x 86
Msgprox.dll2005.90.2192.0542,496?? ?????? ????13: 51IA-64
Msmdlocal.dll9.0.2192.048,585,504?? ?????? ????13: 53IA-64
Msmdredir.dll9.0.2192.06,237,472?? ?????? ????13: 53IA-64
Replprov.dll2005.90.2192.01,617,184?? ?????? ????13: 52IA-64
Replrec.dll2005.90.2192.02,141,472?? ?????? ????13: 52IA-64
Sqlaccess.dll2005.90.2192.0349,472?? ?????? ????13: 51x 86
Sqlagent90.exe2005.90.2192.01,143,584?? ?????? ????13: 52IA-64
Sqlservr.exe2005.90.2192.072,233,760?? ?????? ????13: 53IA-64
Xpstar90.dll2005.90.2192.0951,072?? ?????? ????13: 51IA-64
Xpstar90.rll2005.90.2192.0152,352?? ?????? ????13: 50IA-64

?????

???? Microsoft ?? ??? ????? ?? ?????? Microsoft ??????? ?? ??? "????? ???".

??????? ????

??? ????? ??????? SQL ???????? ????? ?? ??????? ??????? ???? ?????? ????? ??? ???? ??? 701:
  • ???? ??????? CACHESTORE_SQLCP ?? sys.dm_os_memory_clerks ????? ??? ????? ???? SQL Server
  • ???? ??????? MEMOBJ_XSTMT ?? sys.dm_os_memory_objects ????? ??? ????? ???? SQL Server
????? ?? ?????????? ???? ??? ??? ??????? ?????? ?????? ?? "????? ??????? ?? Microsoft:
824684??? ????????? ???????? ????????? ?? ??? ??????? ????? Microsoft

????? ????? ????? ???????

  1. ????? ????? ??????? ???? ????, ????? SQL Server 2005 ???????? ???? ????? ?? ???????. ?????? ????? ?? ?????? ???????? ????? ?????? ?? SQL Server 2005.
    -- Enable advanced options
    USE master
    EXEC sp_configure 'show advanced options', 1
    go
    RECONFIGURE WITH OVERRIDE
    go
    
    -- Set the maximum amount of memory to 300 MB
    exec sp_configure 'max server memory', 300
    go
    reconfigure with override
    go
    dbcc freeproccache
    go
    
  2. ??? ????? ?? ????? ????? ???? SQL Server ????? ??????? ??????? ?? ???? ???????:
    mssqlserver net stop
    mssqlserver net start
  3. ?? SQL Server 2005 ????? ?????? SQL ???????? ???????.
    drop table t
    go
    create table t (c1 int, c2 int, c3 int, c4 int, c5 int, c6 int, c7 int, c8 int, c9 int, c10 int)
    go
    
    drop function fn_test
    go
    create function fn_test (@p1 int, @p2 int, @p3 int, @p4 int, @p5 int, @p6 int, @p7 int, @p8 int, @p9 int, @p10 int)
    returns @t table (c1 nvarchar(4) )
    with schemabinding
    as
    begin
    insert into @t values (N'abcd')
    return
    end
    go
    drop function fn_scalar
    go
    create function fn_scalar (@p1 int, @p2 int, @p3 int, @p4 int, @p5 int, @p6 int, @p7 int, @p8 int, @p9 int, @p10 int)
    returns nvarchar(4) 
    with schemabinding
    as
    begin
    declare @s nvarchar (4)
    set @s = N'abcd' 
    
    return @s
    end
    
    go
    drop function fn_test2
    go
    create function fn_test2 ()
    returns @t table (c1 nvarchar(4) )
    with schemabinding
    as
    begin
    insert into @t values (N'abcd')
    return
    end
    
    
    go
    set nocount on
    go
    declare @i int
    set @i = 0
    while @i < 5000000
    begin
    insert into t values (@i, @i, @i, @i, @i, @i, @i, @i, @i, @i)
    set @i = @i + 1
    end
    
    go
    -- The following select query returns the 701 error if you restrict max server memory to 300 MB
    select count(*) from t cross apply dbo.fn_test(c1,c2,c3,c4,c5,c6,c7,c8,c9,c10)
    
    
?????? ?????? ??????? ??????? TVF SQL ????????. ???? ??? ??????? ??? ??????? TVF CLR.

???????

???? ???????: 924954 - ????? ??? ??????: 10/?? ??????/1428 - ??????: 1.6
????? ???
  • Microsoft SQL Server 2005 Developer Edition
  • Microsoft SQL Server 2005 Enterprise Edition
  • Microsoft SQL Server 2005 Enterprise Edition for Itanium Based Systems
  • Microsoft SQL Server 2005 Enterprise X64 Edition
  • Microsoft SQL Server 2005 Standard X64 Edition
  • Microsoft SQL Server 2005 Standard Edition
????? ??????: 
kbmt kbautohotfix kbfix kbsql2005tsql kbexpertiseadvanced kbhotfixserver kbqfe kbpubtypekc KB924954 KbMtar
????? ????
???: ??? ????? ??? ?????? ???????? ?????? ????? ???? ????? ?????????? ????? ?? ????????? ?????? ????. ???? ???? ?????????? ???? ?? ???????? ???????? ?????? ????????? ????? ????????? ???????? ????? ???????? ?????? ?? ?????? ??? ?? ???????? ???????? ?? ????? ??????? ?????? ??? ??????? ?????? ??. ?????? ?? ???? ??? ??????? ???????? ????? ?? ???? ????? ?????? ??? ????? ??? ????? ??????? ?? ????? ?? ?????? ??? ??? ??????? ??????? ?? ????? ????? ????? ????? ?????. ?? ????? ???? ?????????? ??????? ??? ????? ?? ??????? ?? ????? ?????? ?? ??? ????? ?? ????? ??????? ?? ???????? ?? ??? ???????. ???? ???? ?????????? ???????? ??? ????? ?????? ??????? ??????
???? ??? ????? ??????? ?????? ??????????924954

????? ???????

 

Contact us for more help

Contact us for more help
Connect with Answer Desk for expert help.
Get more support from smallbusiness.support.microsoft.com