Title

Kodyaz Development Resources

Development resources, articles, tutorials, samples, codes and tools for .Net, SQL Server, Vista, etc.
Welcome to Kodyaz Development Resources Sign in | Join | Help
in Search

The conversion of the nvarchar value '105962' overflowed an INT2 column.

Last post 03-10-2006, 3:35 PM by eralper. 1 replies.
Sort Posts: Previous Next
  •  04-06-2005, 11:00 AM 122

    The conversion of the nvarchar value '105962' overflowed an INT2 column.

    Aşağıdaki hatanın sebebi ne olabilir?

    System.Data.SqlClient.SqlException: The conversion of the nvarchar value '105962' overflowed an INT2 column. Use a larger integer column. The statement has been terminated.
  •  04-06-2005, 11:12 AM 123 in reply to 122

    Re: The conversion of the nvarchar value '105962' overflowed an INT2 column.

    CREATE TABLE #TempTbl (
     Kod nvarchar (50) NULL
    )

    INSERT INTO #TempTbl
    SELECT
     Code
    FROM Classes (NoLock)

    Server: Msg 244, Level 16, State 2, Procedure Kodyaz_Class_Read, Line 30
    The conversion of the nvarchar value '105962' overflowed an INT2 column. Use a larger integer column.The statement has been terminated.


    Yukarıdaki Select ifadesi içinden gelen nvarchar tipindeki veriyi str() fonksiyonu kullanarak

    INSERT INTO #TempTbl
    SELECT
     STR(Code)
    FROM Classes (NoLock)

    şeklinde güncelleyerek hatayı düzelttim.
View as RSS news feed in XML
Copyright © 2004 - 2008 Eralper Yilmaz. All rights reserved.
Powered by Community Server, by Telligent Systems