Stack Overflow Sql 2005 Clr

Aug 29, 2007

Please help.
I have a sql 2005 table-value function coded in .net. I'm getting a horrible stack overflow exception with the following call :

select * from dbo.clr_DecodeTime(-15809);

The code is here :

public partial class UserDefinedFunctions

{

[SqlFunction(TableDefinition= "ArrTime nvarchar(4), DepTime nvarchar(4)",FillRowMethodName="ProcessesFillRowTime")]

public static IEnumerable clr_DecodeTime(int EncodedTime)

{

List<Airports> airport = new List<Airports>();

Airports a = new Airports();

a.ArrTime = "1000";

a.DepTime = "1100";

airport.Add(a);

return airport;

}

public static void ProcessesFillRowTime(Object o, out SqlChars arrTime, out SqlChars depTime)

{

Airports airport = o as Airports;

arrTime = new SqlChars(airport.ArrTime);

depTime = new SqlChars(airport.DepTime);

}

};

catch (Exception Ex)

{

throw new Exception(Ex.Message);

}

public class Airports

{

private string arrcode;

public string ArrCode

{

get

{

return arrcode;

}

set

{

arrcode = value;

}

}

private string depcode;

public string DepCode

{

get

{

return depcode;

}

set

{

depcode = value;

}

}

private string depdate;

public string DepDate

{

get

{

return DepDate;

}

set

{

DepDate = value;

}

}

private string arrdate;

public string ArrDate

{

get

{

return ArrDate;

}

set

{

ArrDate = value;

}

}



private string arrtime;

public string ArrTime

{

get

{

return ArrTime;

}

set

{

ArrTime = value;

}

}



private string deptime;

public string DepTime

{

get

{

return DepTime;

}

set

{

DepTime = value;

}

}

}

}
The message I get back is :

Msg 6538, Level 16, State 49, Line 1

.NET Framework execution was aborted because of stack overflow.
Every time I try and debug the function my pc hang. ps I'm using vista business edition and vs 2005.

View 3 Replies


ADVERTISEMENT

C++ Ole DB Stack Overflow During Sql Server Compilation

Jul 20, 2005

hi,when i execute :CCommand<CManualAccessor, CBulkRowset, CNoMultipleResults> rs;rs.SetRows(100);HRESULT code_resultat = rs.Open(session, requete, &propset, NULL,DBGUID_DBSQL, FALSE);with a requete with length = 13000, it works perfectlybut when my requete length is 200000 (example : SELECT * FROM myTABLEWHERE id_table IN("lot of number : more then 30000 number"))i have code_resultat = DB_E_ERRORSINCOMMAND (= 0x80040e14)and when i explore the IErrorInfo message, i have :minor = 565 and the message issource :Microsoft OLE DB Provider for SQL Serverserveur has made a stack overflow during compilation...Is there a solution to extract to data ?in a fast way ...thanks in advance ...Mike

View 1 Replies View Related

SQL Server 2005 - Stack Dump

Oct 24, 2007

We are using SQL Server 2005 SP2 (32 bit) Clustered, and our server crashed twice within the last week. Has anyone experienced problems with the scheduler crashing SQL Server?

Using 'dbghelp.dll' version '4.0.5'
**Dump thread - spid = 0, PSS = 0x00000000, EC = 0x00000000
***Stack Dump being sent to Z:MSSQL.1MSSQLLOGSQLDump0002.txt
* *******************************************************************************
*
* BEGIN STACK DUMP:
* 10/23/07 12:59:25 spid 0
*
* Deadlocked Schedulers
*
* *******************************************************************************
* -------------------------------------------------------------------------------
* Short Stack Dump
Stack Signature for the dump is 0x000001A5

View 1 Replies View Related

Arithmetic Operation Resulted In An Overflow. (System.Data) - Connection Error With SQL Server 2005

Oct 20, 2007

 We've been using SQL Server 2005 for a while as the db for our web app. Everything has been working fine, until yesterday when we started getting a "Arithmetic operation resulted in an overflow. (System.Data)" error message when trying to connect from SQL Server Management Studio or from our web app.  This only happens when trying to connect remotely, although remote connections have worked for us perfectly in the past. The full error message is reproduced below. Thanks ahead of time for any help.  ===================================Cannot connect to serverName===================================Arithmetic operation resulted in an overflow. (System.Data)------------------------------Program Location:   at System.Data.SqlClient.TdsParser.ConsumePreLoginHandshake(Boolean encrypt, Boolean trustServerCert, Boolean& marsCapable)   at System.Data.SqlClient.TdsParser.Connect(ServerInfo serverInfo, SqlInternalConnectionTds connHandler, Boolean ignoreSniOpenTimeout, Int64 timerExpire, Boolean encrypt, Boolean trustServerCert, Boolean integratedSecurity, SqlConnection owningObject)   at System.Data.SqlClient.SqlInternalConnectionTds.AttemptOneLogin(ServerInfo serverInfo, String newPassword, Boolean ignoreSniOpenTimeout, Int64 timerExpire, SqlConnection owningObject)   at System.Data.SqlClient.SqlInternalConnectionTds.LoginNoFailover(String host, String newPassword, Boolean redirectedUserInstance, SqlConnection owningObject, SqlConnectionString connectionOptions, Int64 timerStart)   at System.Data.SqlClient.SqlInternalConnectionTds.OpenLoginEnlist(SqlConnection owningObject, SqlConnectionString connectionOptions, String newPassword, Boolean redirectedUserInstance)   at System.Data.SqlClient.SqlInternalConnectionTds..ctor(DbConnectionPoolIdentity identity, SqlConnectionString connectionOptions, Object providerInfo, String newPassword, SqlConnection owningObject, Boolean redirectedUserInstance)   at System.Data.SqlClient.SqlConnectionFactory.CreateConnection(DbConnectionOptions options, Object poolGroupProviderInfo, DbConnectionPool pool, DbConnection owningConnection)   at System.Data.ProviderBase.DbConnectionFactory.CreateNonPooledConnection(DbConnection owningConnection, DbConnectionPoolGroup poolGroup)   at System.Data.ProviderBase.DbConnectionFactory.GetConnection(DbConnection owningConnection)   at System.Data.ProviderBase.DbConnectionClosed.OpenConnection(DbConnection outerConnection, DbConnectionFactory connectionFactory)   at System.Data.SqlClient.SqlConnection.Open()   at Microsoft.SqlServer.Management.UI.VSIntegration.ObjectExplorer.ObjectExplorer.ValidateConnection(UIConnectionInfo ci, IServerType server)   at Microsoft.SqlServer.Management.UI.ConnectionDlg.Connector.ConnectionThreadUser() 

View 1 Replies View Related

Stack Dump

Apr 26, 2007

Hi;

I am frequently seeing the below errors in our SQL 7 Server running on Windows NT. I need your help to analze the problem. Thanks.

nitconfig: Number of user connections limited to 32767.

Module(sqlservr+e4c0) (CMsqlExecContext::Execute+1bb)

Module(sqlservr+e9ab) (CMsqlExecContext::ExecuteStmts+11b)

Module(sqlservr+1ce59) (CStmtSelect::XretExecute+1f8)

Module(sqlservr+10d22) (CStmtQuery::FExecuteQuery+1df)

Module(sqlservr+11f86) (CQuery::Execute+4f)

Module(sqlservr+120f5) (CQueryScan::CQueryScan+22c)

Module(sqlservr+12336) (CQueryScan::InitLockClasses+c3)

Module(sqlservr+12373) (CTableIsolation::FNeedLockClass+14)

Short Stack Dump

******************************************************************************
*
* BEGIN STACK DUMP:
* 04/25/07 08:32:19 spid 22
*
* Exception Address = 00412373 (CTableIsolation::FNeedLockClass + 14)
* Exception Code = c0000005 E
* Access Violation occurred reading address 00000014
* Input Buffer 132 bytes -
* S E L E C T S u p F r o m , S u p T o F R O M S u p p o r t P r
* o f i l e s w h e r e S u p P r o f i l e = 3 0 4 5
*
*
* MODULE BASE END SIZE
* sqlservr 00400000 008d2fff 004d3000
* ntdll 77f60000 77fbefff 0005f000
* KERNEL32 77f00000 77f5efff 0005f000
* ADVAPI32 77dc0000 77dfefff 0003f000
* USER32 77e70000 77ec1fff 00052000
* GDI32 78140000 78174fff 00035000
* RPCRT4 77e10000 77e66fff 00057000
* ole32 77b20000 77bd0fff 000b1000
* OLEAUT32 65340000 653dafff 0009b000
* VERSION 77a90000 77a9afff 0000b000
* SHELL32 77c40000 77d7afff 0013b000
* COMCTL32 71710000 71793fff 00084000
* LZ32 779c0000 779c7fff 00008000
* opends60 41060000 41085fff 00026000
* ums 41090000 4109cfff 0000d000
* MSVCRT 78000000 78045fff 00046000
* sqlsort 04000000 0408efff 0008f000
* MSVCIRT 780a0000 780b1fff 00012000
* sqlevn70 410a0000 410a6fff 00007000
* rpcltc1 77bf0000 77bf6fff 00007000
* COMNEVNT 410b0000 410fefff 0004f000
* ODBC32 1f7d0000 1f803fff 00034000
* comdlg32 77d80000 77db1fff 00032000
* SQLWOA 41100000 4110bfff 0000c000
* odbcint 1f8c0000 1f8d5fff 00016000
* NDDEAPI 75a80000 75a86fff 00007000
* WINSPOOL 77c00000 77c17fff 00018000
* SQLTrace 41130000 4117dfff 0004e000
* NETAPI32 4ca00000 4ca40fff 00041000
* NETRAP 77840000 77848fff 00009000
* SAMLIB 777e0000 777ecfff 0000d000
* WSOCK32 776d0000 776d7fff 00008000
* WS2_32 776b0000 776c3fff 00014000
* WS2HELP 776a0000 776a6fff 00007000
* WLDAP32 77950000 77978fff 00029000
* SQLFTQRY 41020000 4103afff 0001b000
* SSNMPN70 41190000 41195fff 00006000
* SSMSSO70 411a0000 411aafff 0000b000
* SSMSRP70 411b0000 411b7fff 00008000
* ENUDTC 74e20000 74e36fff 00017000
* XOLEHLP 74e40000 74e48fff 00009000
* MTXCLU 74e50000 74e5cfff 0000d000
* ADME 74e60000 74e72fff 00013000
* DTCUtil 74e80000 74e89fff 0000a000
* DTCTRACE 74e90000 74e96fff 00007000
* CLUSAPI 7f230000 7f23cfff 0000d000
* RESUTILS 7f250000 7f259fff 0000a000
* MSDTCPRX 74ea0000 74ed0fff 00031000
* DTCCM 74ee0000 74efdfff 0001e000
* msafd 77660000 7766efff 0000f000
* wshtcpip 77690000 77698fff 00009000
* rpclts1 77e00000 77e05fff 00006000
* RpcLtScm 755b0000 755bafff 0000b000
* MSWSOCK 77670000 77684fff 00015000
* rnr20 75600000 7560dfff 0000e000
* RpcLtCcm 756d0000 756defff 0000f000
* security 76e70000 76e81fff 00012000
* msapsspc 756e0000 756f3fff 00014000
* MSVCRT40 779d0000 779e4fff 00015000
* schannel 77400000 7741dfff 0001e000
* MSOSS 75710000 75734fff 00025000
* CRYPT32 75740000 757b4fff 00075000
* MSASN1 757c0000 757cffff 00010000
* msnsspc 757d0000 757eefff 0001f000
* digest 757f0000 757fffff 00010000
* SQLRGSTR 01b60000 01b64fff 00005000
* xpsqlbot 01bf0000 01bf5fff 00006000
* sqlboot 01c00000 01c07fff 00008000
* EntApi 0a000000 0a011fff 00012000
* PSAPI 76bf0000 76bfafff 0000b000
* WININET 01db0000 01e45fff 00096000
* SHLWAPI 01e50000 01eb8fff 00069000
* xpstar 02440000 02470fff 00031000
* SQLWID 02480000 02485fff 00006000
* SQLSVC 02490000 024a8fff 00019000
* odbcbcp 024b0000 024b5fff 00006000
* SQLRESLD 024c0000 024c5fff 00006000
* W95SCM 024d0000 024d7fff 00008000
* SQLSVC 024e0000 024e5fff 00006000
* sqlimage 02590000 025bcfff 0002d000
*
* Edi: 00100C70: 000a0100 00030008 00000000 00000000 00100e70 00100e50
* Esi: 00000000:
* Eax: 00000000:
* Ebx: 00000004:
* Ecx: 00000000:
* Edx: 00000004:
* Eip: 00412373: 007ea6e2 05f61577 01f88318 468b0013 d49f850f 00147e83
* Ebp: 01C8F864: 00000001 00000000 2149a1e4 00000000 00412336 01c8f898
* SegCs: 0000001B:
* EFlags: 00010246: 003d0052 00490044 005f004c 00410043 004f004c 005f0053
* Esp: 01C8F854: 00412336 01c8f898 00000000 00000004 2149a1e4 00000000
* SegSs: 00000023:
*******************************************************************************

SqlDumpExceptionHandler: Process 22 generated fatal exception c0000005 EXCEPTION_ACCESS_VIOLATION. SQL Server is terminating this process.

Using 'sqlimage.dll' version '4.0.5'
Stack Dump being sent to C:MSSQL7logSQL00026.dmp

Sunrise406, creation date and time: 2001/11/16(14:34:00), first LSN: 647599:6555:1, last LSN: 647633:8427:1, striped: 0, number of dump devices: 1, device information: (FILE=1, TYPE=DISK: {'D:MSSQL7BACKUPSunrise406_tlog_200704250000.TRN'}).

Using 'xpstar.dll' version '2000.28.09' to execute extended stored procedure 'xp_regread'.

Database backed up with following information: Database: Sunrise406, creation date and time: 2001/11/16(14:34:00), pages dumped: 47456, first LSN: 647633:8425:1, last LSN: 647633:8427:1, sort order: 52, striped: 0, number of dump devices: 1, device information: (FILE=1, TYPE=DISK: {'D:MSSQL7ackupSunriseDailyBackup9pm'}).

View 5 Replies View Related

SqlDumpExceptionHandler - STACK DUMP

Oct 10, 2007

Hi,

I noted some strange errors on my server log (SQL 2005):

-----------------------------------------------------------------------------------------------------------------------------------------------------------------
Date,Source,Severity,Message
10/02/2007 09:15:24,Server,Unknown,A user request from the session with SPID 191 generated a fatal exception. SQL Server is terminating this session. Contact Product Support Services with the dump produced in the log directory.
10/02/2007 09:15:24,Server,Unknown,Error: 17310<c/> Severity: 20<c/> State: 1.
10/02/2007 09:15:24,spid191,Unknown,External dump process return code 0x20000001.<nl/>External dump process returned no errors.
10/02/2007 09:15:23,spid191,Unknown,Stack Signature for the dump is 0x724D13B0
10/02/2007 09:15:23,spid191,Unknown,78132A36 Module(MSVCR80+00002A36)
10/02/2007 09:15:23,spid191,Unknown,781329AA Module(MSVCR80+000029AA)
10/02/2007 09:15:23,spid191,Unknown,010D83F0 Module(sqlservr+000D83F0)
10/02/2007 09:15:23,spid191,Unknown,010D746E Module(sqlservr+000D746E)
10/02/2007 09:15:23,spid191,Unknown,010D7B71 Module(sqlservr+000D7B71)
10/02/2007 09:15:23,spid191,Unknown,010D764A Module(sqlservr+000D764A)
10/02/2007 09:15:23,spid191,Unknown,010086E7 Module(sqlservr+000086E7)
10/02/2007 09:15:23,spid191,Unknown,010089C5 Module(sqlservr+000089C5)
10/02/2007 09:15:23,spid191,Unknown,0100889F Module(sqlservr+0000889F)
10/02/2007 09:15:23,spid191,Unknown,01041C35 Module(sqlservr+00041C35)
10/02/2007 09:15:23,spid191,Unknown,010438E5 Module(sqlservr+000438E5)
10/02/2007 09:15:23,spid191,Unknown,0102C5F8 Module(sqlservr+0002C5F8)
10/02/2007 09:15:23,spid191,Unknown,011D37E7 Module(sqlservr+001D37E7)
10/02/2007 09:15:23,spid191,Unknown,01BDBEB6 Module(sqlservr+00BDBEB6)
10/02/2007 09:15:23,spid191,Unknown,013C6DB8 Module(sqlservr+003C6DB8)
10/02/2007 09:15:23,spid191,Unknown,01C11D65 Module(sqlservr+00C11D65)
10/02/2007 09:15:23,spid191,Unknown,0102C5F8 Module(sqlservr+0002C5F8)
10/02/2007 09:15:23,spid191,Unknown,011D37E7 Module(sqlservr+001D37E7)
10/02/2007 09:15:23,spid191,Unknown,01BDBEB6 Module(sqlservr+00BDBEB6)
10/02/2007 09:15:23,spid191,Unknown,0103D0C6 Module(sqlservr+0003D0C6)
10/02/2007 09:15:23,spid191,Unknown,0103D23D Module(sqlservr+0003D23D)
10/02/2007 09:15:23,spid191,Unknown,0103D2FE Module(sqlservr+0003D2FE)
10/02/2007 09:15:23,spid191,Unknown,0103D441 Module(sqlservr+0003D441)
10/02/2007 09:15:23,spid191,Unknown,010784B4 Module(sqlservr+000784B4)
10/02/2007 09:15:23,spid191,Unknown,01E22809 Module(sqlservr+00E22809)
10/02/2007 09:15:23,spid191,Unknown,01E28713 Module(sqlservr+00E28713)
10/02/2007 09:15:23,spid191,Unknown,01E15AA8 Module(sqlservr+00E15AA8)
10/02/2007 09:15:23,spid191,Unknown,01E15B68 Module(sqlservr+00E15B68)
10/02/2007 09:15:23,spid191,Unknown,0102E827 Module(sqlservr+0002E827)
10/02/2007 09:15:23,spid191,Unknown,019E9DEB Module(sqlservr+009E9DEB)
10/02/2007 09:15:23,spid191,Unknown,01DA687B Module(sqlservr+00DA687B)
10/02/2007 09:15:23,spid191,Unknown,01DA9914 Module(sqlservr+00DA9914)
10/02/2007 09:15:23,spid191,Unknown,010D3CAC Module(sqlservr+000D3CAC)
10/02/2007 09:15:23,spid191,Unknown,010040C2 Module(sqlservr+000040C2)
10/02/2007 09:15:23,spid191,Unknown,01002C90 Module(sqlservr+00002C90)
10/02/2007 09:15:23,spid191,Unknown,* Short Stack Dump
10/02/2007 09:15:23,spid191,Unknown,* -------------------------------------------------------------------------------
10/02/2007 09:15:23,spid191,Unknown,* *******************************************************************************
10/02/2007 09:15:23,spid191,Unknown,* SegSs: 0000002B:
10/02/2007 09:15:23,spid191,Unknown,* Esp: 1054EBAC: 00000038 C02280E8 00000001 00000000 00000000 1054EBE4
10/02/2007 09:15:23,spid191,Unknown,* EFlags: 00010246: 0057005C 004E0049 004F0044 00530057 0073005C 00730079
10/02/2007 09:15:23,spid191,Unknown,* SegCs: 00000023:
10/02/2007 09:15:23,spid191,Unknown,* Ebp: 1054EBC0: 1054EBE4 010040C2 0000096C FFFFFFFF 1054EC10 00000000
10/02/2007 09:15:23,spid191,Unknown,* Eip: 01002C90: 0AB10FF0 850FC085 0005BAD0 0F003B83 0013C685 0C7D8300
10/02/2007 09:15:23,spid191,Unknown,* Edx: 00000028:
10/02/2007 09:15:23,spid191,Unknown,* Ecx: 0000096C:
10/02/2007 09:15:23,spid191,Unknown,* Ebx: 00000020:
10/02/2007 09:15:23,spid191,Unknown,* Eax: 00000000:
10/02/2007 09:15:23,spid191,Unknown,* Esi: C02280E8: 00000000 00000000 BAA660F0 CF2BC0F0 00000001 009C61F0
10/02/2007 09:15:23,spid191,Unknown,* Edi: 00000028:
10/02/2007 09:15:23,spid191,Unknown,*
10/02/2007 09:15:23,spid191,Unknown,* dbghelp 0D190000 0D2A7FFF 00118000
10/02/2007 09:15:23,spid191,Unknown,* MSVCR71 7C340000 7C395FFF 00056000
10/02/2007 09:15:23,spid191,Unknown,* XPMetaphone 0DD00000 0DD07FFF 00008000
10/02/2007 09:15:23,spid191,Unknown,* xplog70 0DE00000 0DE02FFF 00003000
10/02/2007 09:15:23,spid191,Unknown,* xplog70 0DD20000 0DD2BFFF 0000c000
10/02/2007 09:15:23,spid191,Unknown,* xpsqlbot 0EA50000 0EA55FFF 00006000
10/02/2007 09:15:23,spid191,Unknown,* xpstar90 0DC00000 0DC25FFF 00026000
10/02/2007 09:15:23,spid191,Unknown,* SQLSVC90 0DBF0000 0DBF2FFF 00003000
10/02/2007 09:15:23,spid191,Unknown,* odbcint 0DBD0000 0DBE6FFF 00017000
10/02/2007 09:15:23,spid191,Unknown,* ATL80 7C630000 7C64AFFF 0001b000
10/02/2007 09:15:23,spid191,Unknown,* SqlResourceLoader 0D8F0000 0D8F5FFF 00006000
10/02/2007 09:15:23,spid191,Unknown,* SQLSVC90 0D8C0000 0D8D9FFF 0001a000
10/02/2007 09:15:23,spid191,Unknown,* BatchParser90 0D890000 0D8ADFFF 0001e000
10/02/2007 09:15:23,spid191,Unknown,* ODBC32 0D850000 0D88CFFF 0003d000
10/02/2007 09:15:23,spid191,Unknown,* SQLSCM90 0D830000 0D838FFF 00009000
10/02/2007 09:15:23,spid191,Unknown,* xpstar90 0D7D0000 0D814FFF 00045000
10/02/2007 09:15:23,spid191,Unknown,* msxml3 72E50000 72F61FFF 00112000
10/02/2007 09:15:23,spid191,Unknown,* msxml2 0B7E0000 0B88EFFF 000af000
10/02/2007 09:15:23,spid191,Unknown,* msxmlsql 78800000 788DEFFF 000df000
10/02/2007 09:15:23,spid191,Unknown,* msftepxy 09790000 097A4FFF 00015000
10/02/2007 09:15:23,spid191,Unknown,* SQLNCLIR 095D0000 09602FFF 00033000
10/02/2007 09:15:23,spid191,Unknown,* comdlg32 762B0000 762F9FFF 0004a000
10/02/2007 09:15:23,spid191,Unknown,* COMCTL32 77530000 775C6FFF 00097000
10/02/2007 09:15:23,spid191,Unknown,* sqlncli 337A0000 339BDFFF 0021e000
10/02/2007 09:15:23,spid191,Unknown,* CLBCatQ 777B0000 77832FFF 00083000
10/02/2007 09:15:23,spid191,Unknown,* xpsp2res 10000000 102C4FFF 002c5000
10/02/2007 09:15:23,spid191,Unknown,* ntdsapi 766F0000 76704FFF 00015000
10/02/2007 09:15:23,spid191,Unknown,* SAMLIB 094A0000 094AEFFF 0000f000
10/02/2007 09:15:23,spid191,Unknown,* NTMARTA 77E00000 77E21FFF 00022000
10/02/2007 09:15:23,spid191,Unknown,* dssenh 094B0000 094D3FFF 00024000
10/02/2007 09:15:23,spid191,Unknown,* imagehlp 76C10000 76C38FFF 00029000
10/02/2007 09:15:23,spid191,Unknown,* WINTRUST 76BB0000 76BDAFFF 0002b000
10/02/2007 09:15:23,spid191,Unknown,* dbghelp 09130000 09247FFF 00118000
10/02/2007 09:15:23,spid191,Unknown,* msfte 08ED0000 09127FFF 00258000
10/02/2007 09:15:23,spid191,Unknown,* security 71F60000 71F63FFF 00004000
10/02/2007 09:15:23,spid191,Unknown,* rasadhlp 76F80000 76F84FFF 00005000
10/02/2007 09:15:23,spid191,Unknown,* wshtcpip 07DB0000 07DB7FFF 00008000
10/02/2007 09:15:23,spid191,Unknown,* hnetcfg 07D10000 07D68FFF 00059000
10/02/2007 09:15:23,spid191,Unknown,* WLDAP32 76F10000 76F3DFFF 0002e000
10/02/2007 09:15:23,spid191,Unknown,* winrnr 76F70000 76F76FFF 00007000
10/02/2007 09:15:23,spid191,Unknown,* DNSAPI 76ED0000 76EF8FFF 00029000
10/02/2007 09:15:23,spid191,Unknown,* WSOCK32 07AD0000 07AD8FFF 00009000
10/02/2007 09:15:23,spid191,Unknown,* VERSION 77B90000 77B97FFF 00008000
10/02/2007 09:15:23,spid191,Unknown,* MTXCLU 74F40000 74F58FFF 00019000
10/02/2007 09:15:23,spid191,Unknown,* msvcp60 07A60000 07AC4FFF 00065000
10/02/2007 09:15:23,spid191,Unknown,* MSDTCPRX 079E0000 07A57FFF 00078000
10/02/2007 09:15:23,spid191,Unknown,* XOLEHLP 079D0000 079D5FFF 00006000
10/02/2007 09:15:23,spid191,Unknown,* COMRES 77010000 770D5FFF 000c6000
10/02/2007 09:15:23,spid191,Unknown,* schannel 76750000 76776FFF 00027000
10/02/2007 09:15:23,spid191,Unknown,* cryptdll 766E0000 766EBFFF 0000c000
10/02/2007 09:15:23,spid191,Unknown,* Kerberos 71CA0000 71CF7FFF 00058000
10/02/2007 09:15:23,spid191,Unknown,* iphlpapi 76CF0000 76D09FFF 0001a000
10/02/2007 09:15:23,spid191,Unknown,* msv1_0 76C90000 76CB6FFF 00027000
10/02/2007 09:15:23,spid191,Unknown,* msnsspc 71E20000 71E6FFFF 00050000
10/02/2007 09:15:23,spid191,Unknown,* MSVCRT40 78080000 78090FFF 00011000
10/02/2007 09:15:23,spid191,Unknown,* msapsspc 71E00000 71E13FFF 00014000
10/02/2007 09:15:23,spid191,Unknown,* MSCOREE 79000000 79044FFF 00045000
10/02/2007 09:15:23,spid191,Unknown,* AUTHZ 76C40000 76C53FFF 00014000
10/02/2007 09:15:23,spid191,Unknown,* rsaenh 06450000 0647EFFF 0002f000
10/02/2007 09:15:23,spid191,Unknown,* SQLOS 344D0000 344D4FFF 00005000
10/02/2007 09:15:23,spid191,Unknown,* sqlevn70 4F610000 4F7A0FFF 00191000
10/02/2007 09:15:23,spid191,Unknown,* RESUTILS 74EF0000 74F02FFF 00013000
10/02/2007 09:15:23,spid191,Unknown,* OLEAUT32 77D00000 77D8BFFF 0008c000
10/02/2007 09:15:23,spid191,Unknown,* ole32 77670000 777A3FFF 00134000
10/02/2007 09:15:23,spid191,Unknown,* CLUSAPI 74DE0000 74DF1FFF 00012000
10/02/2007 09:15:23,spid191,Unknown,* instapi 48060000 48069FFF 0000a000
10/02/2007 09:15:23,spid191,Unknown,* psapi 76B70000 76B7AFFF 0000b000
10/02/2007 09:15:23,spid191,Unknown,* comctl32 7DBD0000 7DCD2FFF 00103000
10/02/2007 09:15:23,spid191,Unknown,* SHLWAPI 77DA0000 77DF1FFF 00052000
10/02/2007 09:15:23,spid191,Unknown,* SHELL32 7C8D0000 7D0D2FFF 00803000
10/02/2007 09:15:23,spid191,Unknown,* NETAPI32 71C40000 71C97FFF 00058000
10/02/2007 09:15:23,spid191,Unknown,* opends60 333E0000 333E6FFF 00007000
10/02/2007 09:15:23,spid191,Unknown,* USERENV 76920000 769E3FFF 000c4000
10/02/2007 09:15:23,spid191,Unknown,* WS2HELP 71BF0000 71BF7FFF 00008000
10/02/2007 09:15:23,spid191,Unknown,* WS2_32 71C00000 71C16FFF 00017000
10/02/2007 09:15:23,spid191,Unknown,* MSWSOCK 7DB30000 7DBAFFFF 00080000
10/02/2007 09:15:23,spid191,Unknown,* Secur32 7D8D0000 7D91FFFF 00050000
10/02/2007 09:15:23,spid191,Unknown,* MSASN1 76190000 761A1FFF 00012000
10/02/2007 09:15:23,spid191,Unknown,* CRYPT32 761B0000 76242FFF 00093000
10/02/2007 09:15:23,spid191,Unknown,* GDI32 7D800000 7D88FFFF 00090000
10/02/2007 09:15:23,spid191,Unknown,* USER32 7D930000 7D9FFFFF 000d0000
10/02/2007 09:15:23,spid191,Unknown,* RPCRT4 7DA20000 7DAFFFFF 000e0000
10/02/2007 09:15:23,spid191,Unknown,* ADVAPI32 77F50000 77FEBFFF 0009c000
10/02/2007 09:15:23,spid191,Unknown,* MSVCP80 7C420000 7C4A6FFF 00087000
10/02/2007 09:15:23,spid191,Unknown,* msvcrt 77BA0000 77BF9FFF 0005a000
10/02/2007 09:15:23,spid191,Unknown,* MSVCR80 78130000 781CAFFF 0009b000
10/02/2007 09:15:23,spid191,Unknown,* kernel32 7D4C0000 7D5EFFFF 00130000
10/02/2007 09:15:23,spid191,Unknown,* ntdll 7D600000 7D6EFFFF 000f0000
10/02/2007 09:15:23,spid191,Unknown,* sqlservr 01000000 02BA7FFF 01ba8000
10/02/2007 09:15:23,spid191,Unknown,* MODULE BASE END SIZE
10/02/2007 09:15:23,spid191,Unknown,*
10/02/2007 09:15:23,spid191,Unknown,*
10/02/2007 09:15:23,spid191,Unknown,* TableConfig where number = 186
10/02/2007 09:15:23,spid191,Unknown,* 4240-8be7-b3e5e3a0398e";Local Database="db_name"select val from dbo.Tab
10/02/2007 09:15:23,spid191,Unknown,* c8faa7889b9e53cd3d8b#198;Service="SqlQueryNotificationService-70595aa0-5133-
10/02/2007 09:15:23,spid191,Unknown,* #362; #154;180f615b-9449-472b-bea0-64a372ffd178;c39a6e91984467e28bf6
10/02/2007 09:15:23,spid191,Unknown,* Input Buffer 496 bytes -
10/02/2007 09:15:23,spid191,Unknown,* Access Violation occurred writing address 00000028
10/02/2007 09:15:23,spid191,Unknown,* Exception Code = c0000005 EXCEPTION_ACCESS_VIOLATION
10/02/2007 09:15:23,spid191,Unknown,* Exception Address = 01002C90 Module(sqlservr+00002C90)
10/02/2007 09:15:23,spid191,Unknown,*
10/02/2007 09:15:23,spid191,Unknown,*
10/02/2007 09:15:23,spid191,Unknown,* 10/02/07 09:15:23 spid 191
10/02/2007 09:15:23,spid191,Unknown,* BEGIN STACK DUMP:
10/02/2007 09:15:23,spid191,Unknown,*
10/02/2007 09:15:23,spid191,Unknown,* *******************************************************************************
10/02/2007 09:15:23,spid191,Unknown,SqlDumpExceptionHandler: Process 191 generated fatal exception c0000005 EXCEPTION_ACCESS_VIOLATION. SQL Server is terminating this process.
10/02/2007 09:15:23,spid191,Unknown,***Stack Dump being sent to d:Microsoft SQL ServerMSSQL.1MSSQLLOGSQLDump2875.txt
10/02/2007 09:15:22,spid191,Unknown,Using 'dbghelp.dll' version '4.0.5'
10/02/2007 09:14:47,Server,Unknown,A user request from the session with SPID 243 generated a fatal exception. SQL Server is terminating this session. Contact Product Support Services with the dump produced in the log directory.
10/02/2007 09:14:47,Server,Unknown,Error: 17310<c/> Severity: 20<c/> State: 1.
10/02/2007 09:14:47,spid243,Unknown,External dump process return code 0x20000001.<nl/>External dump process returned no errors.
10/02/2007 09:14:46,spid243,Unknown,Stack Signature for the dump is 0x724D13B0
10/02/2007 09:14:46,spid243,Unknown,78132A36 Module(MSVCR80+00002A36)
10/02/2007 09:14:46,spid243,Unknown,781329AA Module(MSVCR80+000029AA)
10/02/2007 09:14:46,spid243,Unknown,010D83F0 Module(sqlservr+000D83F0)
-----------------------------------------------------------------------------------------------------------------------------------------------------------------

Could somebody explain me what may cause this error and how repair this, please.

--
Regards,
anxcomp

View 5 Replies View Related

Stack Error - EXCEPTION_ACCESS_VIOLATION

Nov 16, 2007

Folks:


I am getting the following stack error in my SQL Server logs. I understand that there is a Microsoft Hotfix available for this and would like to know where will I find the HOTFIX for this because I didn't find it on Microsoft Website. We are currently on SQL 2000 SP 4 (Windows Server 2003 SP1).


Thanks !


*****************************************************************************
Computer type is AT/AT COMPATIBLE.
Bios Version is IBM - 1000
Current time is 09:02:25 11/16/07.
4 Intel x86 level 6, 2992 Mhz processor(s).
Windows NT 5.2 Build 3790 CSD Service Pack 1.


Memory
MemoryLoad = 56%
Total Physical = 4095 MB
Available Physical = 1800 MB
Total Page File = 8026 MB
Available Page File = 6052 MB
Total Virtual = 2047 MB
Available Virtual = 203 MB

*Stack Dump being sent to e:mssql2000dataMSSQLlogSQLDump0014.txt
* *****************************************************************************
**
*
* BEGIN STACK DUMP:
* 11/16/07 09:02:25 spid 59
*
* Exception Address = 009BF883 (CDStream:rintDumpHeader + 000007A7 Line 0+0
0000000)
* Exception Code = c0000005 EXCEPTION_ACCESS_VIOLATION
* Access Violation occurred reading address FFFF0002
* Input Buffer 92 bytes -
* exec dbo.QS_SoSSE15_ConnectionDetails @spid=67
*
*
* MODULE BASE END SIZE
* sqlservr 00400000 00CBAFFF 008bb000
* ntdll 7C800000 7C8BFFFF 000c0000
* kernel32 77E40000 77F41FFF 00102000
* ADVAPI32 77F50000 77FEBFFF 0009c000
* RPCRT4 77C50000 77CEEFFF 0009f000
* MSVCP71 7C3A0000 7C41AFFF 0007b000
* MSVCR71 7C340000 7C395FFF 00056000
* opends60 41060000 41065FFF 00006000
* SHELL32 7C8D0000 7D0D3FFF 00804000
* msvcrt 77BA0000 77BF9FFF 0005a000
* GDI32 77C00000 77C48FFF 00049000
* USER32 77380000 77411FFF 00092000
* SHLWAPI 77DA0000 77DF1FFF 00052000
* sqlsort 42AE0000 42B6FFFF 00090000
* ums 41070000 4107DFFF 0000e000

*****************************************************************************


View 1 Replies View Related

Query Optimisor Out Of Stack Space

Oct 4, 2006

Hi,

I have recently upgraded to SQL Server 2005 (SP1) Developer Edition from SQL Server 2000 (SP4). Since doing so, i have been unable to delete any records from a specific table.

I have found this is due to having approximately 340 foreign key constraints referencing the UserID column of the table.

This functionality worked in SQL Server 2000. Do Microsoft plan to release any fixes for this issue?

Kind Regards,
Martyn...

View 4 Replies View Related

BEGIN STACK DUMP Error In Log Viewer

Dec 5, 2006

Hi

We are having problems with our application that uses SQL Server 2005 in a cluster environment. Sometimes the system stops answering and registers in the log viewer the following error:

=====================================================================
BugCheck Dump
=====================================================================

This file is generated by Microsoft SQL Server
version 9.00.1399.06
upon detection of fatal unexpected error. Please return this file, the query or program that produced the bugcheck, the database and the error log, and any other pertinent information with a Service Request.

Computer type is AT/AT COMPATIBLE.
Bios Version is IBM - 1001
Current time is 16:48:36 12/05/06.
2 Intel x86 level 15, 3600 Mhz processor (s).
Windows NT 5.2 Build 3790 CSD Service Pack 1.

Memory
MemoryLoad = 74%
Total Physical = 3327 MB
Available Physical = 858 MB
Total Page File = 9318 MB
Available Page File = 7058 MB
Total Virtual = 2047 MB
Available Virtual = 274 MB
**Dump thread - spid = 132, PSS = 0x71E09588, EC = 0x71E09590
***Stack Dump being sent to E:Microsoft SQL ServerMSSQL.1MSSQLLOGSQLDump0178.txt
* *******************************************************************************
*
* BEGIN STACK DUMP:
* 12/05/06 16:48:36 spid 132
*
* Location: lckmgr.cpp:10820
* Expression: GetLocalLockPartition () == xactLockInfo->GetLocalLockPartition ()
* SPID: 132
* Process ID: 2436
*
* Input Buffer 255 bytes -
* „ 16 00 00 00 12 00 00 00 02 00 01 00 00 00 84 00 00 00
* ΓΏΓΏ Γ§d Γ? 01 00 00 00 ff ff 0a 00 02 00 00 00 e7 64 09 09 04 d0
* 4d S E L E C T 00 34 64 09 20 00 53 00 45 00 4c 00 45 00 43 00 54 00
* TAbleA (*) 20 00 54 00 48 00 69 00 73 00 74 00 6f 00 72 00 69 00

(*) There is a query here that I have excluded in the message

*
* MODULE BASE END SIZE
* sqlservr 01000000 02BA7FFF 01ba8000
* ntdll 7C910000 7C9D3FFF 000c4000
* kernel32 7C800000 7C90BFFF 0010c000
* MSVCR80 78130000 781CAFFF 0009b000
* msvcrt 77B90000 77BE9FFF 0005a000
* MSVCP80 7C420000 7C4A6FFF 00087000
* ADVAPI32 77D90000 77E3DFFF 000ae000
* RPCRT4 77C40000 77CDEFFF 0009f000
* USER32 77F40000 77FD1FFF 00092000
* GDI32 77BF0000 77C37FFF 00048000
* CRYPT32 760D0000 76164FFF 00095000
* MSASN1 760B0000 760C1FFF 00012000
* Secur32 76E70000 76E82FFF 00013000
* MSWSOCK 71970000 719B1FFF 00042000
* WS2_32 71A50000 71A66FFF 00017000
* WS2HELP 71A40000 71A47FFF 00008000
* USERENV 76840000 76904FFF 000c5000
* opends60 333E0000 333E6FFF 00007000
* NETAPI32 71A90000 71AE7FFF 00058000
* SHELL32 7C9E0000 7D1EAFFF 0080b000
* SHLWAPI 77EE0000 77F31FFF 00052000
* comctl32 77360000 77462FFF 00103000
* EntApi 37000000 37012FFF 00013000
* PSAPI 76A90000 76A9AFFF 0000b000
* WININET 779D0000 77A78FFF 000a9000
* OLEAUT32 77CF0000 77D7BFFF 0008c000
* ole32 77510000 77643FFF 00134000
* instapi 48060000 48069FFF 0000a000
* CLUSAPI 74CF0000 74D01FFF 00012000
* RESUTILS 74E00000 74E12FFF 00013000
* sqlevn70 4F610000 4F7A0FFF 00191000
* SQLOS 344D0000 344D4FFF 00005000
* rsaenh 68000000 6802EFFF 0002f000
* AUTHZ 76B60000 76B73FFF 00014000
* MSCOREE 340C0000 34104FFF 00045000
* msv1_0 76BB0000 76BD6FFF 00027000
* iphlpapi 76C10000 76C29FFF 0001a000
* kerberos 34330000 34387FFF 00058000
* cryptdll 76600000 7660BFFF 0000c000
* schannel 76670000 76696FFF 00027000
* COMRES 76F30000 770BCFFF 0018d000
* XOLEHLP 343F0000 343F5FFF 00006000
* MSDTCPRX 34400000 34477FFF 00078000
* msvcp60 780C0000 78120FFF 00061000
* MTXCLU 74E50000 74E68FFF 00019000
* VERSION 77B80000 77B87FFF 00008000
* WSOCK32 71A00000 71A09FFF 0000a000
* DNSAPI 76DF0000 76E1EFFF 0002f000
* winrnr 76E90000 76E96FFF 00007000
* WLDAP32 76E30000 76E5EFFF 0002f000
* rasadhlp 76EA0000 76EA7FFF 00008000
* hnetcfg 36190000 361E8FFF 00059000
* wshtcpip 71930000 71937FFF 00008000
* security 36340000 36343FFF 00004000
* msfte 36A60000 36CB7FFF 00258000
* dbghelp 36D00000 36E17FFF 00118000
* WINTRUST 76AD0000 76AFAFFF 0002b000
* imagehlp 76B30000 76B58FFF 00029000
* dssenh 68100000 68123FFF 00024000
* NTMARTA 777B0000 777D1FFF 00022000
* SAMLIB 36FE0000 36FEEFFF 0000f000
* ntdsapi 76610000 76624FFF 00015000
* xpsp2res 61BF0000 61EBFFFF 002d0000
* CLBCatQ 77650000 776D2FFF 00083000
* sqlncli 61EC0000 620E1FFF 00222000
* COMCTL32 77E40000 77ED6FFF 00097000
* comdlg32 761D0000 76218FFF 00049000
* SQLNCLIR 007C0000 007F2FFF 00033000
* msftepxy 621F0000 62204FFF 00015000
* xpsqlbot 62860000 62865FFF 00006000
* xpstar90 62880000 628C4FFF 00045000
* SQLSCM90 628E0000 628E8FFF 00009000
* ODBC32 62900000 6293CFFF 0003d000
* BatchParser90 62940000 6295DFFF 0001e000
* SQLSVC90 62970000 62989FFF 0001a000
* SqlResourceLoader 629A0000 629A5FFF 00006000
* ATL80 7C630000 7C64AFFF 0001b000
* odbcint 62B00000 62B17FFF 00018000
* SQLSVC90 62B20000 62B22FFF 00003000
* xpstar90 62B30000 62B55FFF 00026000
* xplog70 62B60000 62B6BFFF 0000c000
* xplog70 62B80000 62B82FFF 00003000
* oledb32 631B0000 63228FFF 00079000
* MSDART 63230000 63249FFF 0001a000
* OLEDB32R 634D0000 634E1FFF 00012000
* activeds 76D10000 76D42FFF 00033000
* adsldpc 76CE0000 76D06FFF 00027000
* credui 76AA0000 76ACDFFF 0002e000
* ATL 769A0000 769B7FFF 00018000
* adsldp 71110000 7113DFFF 0002e000
* SXS 75CB0000 75D6BFFF 000bc000
* dbghelp 65D40000 65E52FFF 00113000
*
* Edi: 6610BCB8: 636A1900 3E3A6040 62F1A040 6610D8AD 0279E900 3E3A63D8
* Esi: 00000000:
* Eax: 6610BB9C: 000042AC 00000000 00000000 7C815E02 00000000 7C931B34
* Ebx: 0000003F:
* Ecx: 6610C20C: 00000000 00010007 00000000 00740072 636A1904 6610BBCC
* Edx: 0000003D:
* Eip: 7C815E02: 10C2C95E 90909000 A1649090 00000018 C334408B 891C428B
* Ebp: 6610BBEC: 6610BC30 02172CE4 000042AC 00000000 00000000 00000000
* SegCs: 0000001B:
* EFlags: 00000246:
* Esp: 6610BB98: 71E09588 000042AC 00000000 00000000 7C815E02 00000000
* SegSs: 78130023: 00000000 00000000 00000000 00000000 00000000 00000000
* *******************************************************************************
* -------------------------------------------------------------------------------
* Short Stack Dump
7C815E02 Module(kernel32+00015E02)
02172CE4 Module(sqlservr+01172CE4)
02176BA0 Module(sqlservr+01176BA0)
02019506 Module(sqlservr+01019506)
015738EE Module(sqlservr+005738EE)
021B15B6 Module(sqlservr+011B15B6)
0163DD36 Module(sqlservr+0063DD36)
010E9FA3 Module(sqlservr+000E9FA3)
010B0F5F Module(sqlservr+000B0F5F)
0102C5F8 Module(sqlservr+0002C5F8)
01BEE12B Module(sqlservr+00BEE12B)
01BF2BCB Module(sqlservr+00BF2BCB)
01BF353D Module(sqlservr+00BF353D)
010438E5 Module(sqlservr+000438E5)
01041C35 Module(sqlservr+00041C35)
0100889F Module(sqlservr+0000889F)
010089C5 Module(sqlservr+000089C5)
010086E7 Module(sqlservr+000086E7)
010D764A Module(sqlservr+000D764A)
010D7B71 Module(sqlservr+000D7B71)
010D746E Module(sqlservr+000D746E)
010D83F0 Module(sqlservr+000D83F0)
781329AA Module(MSVCR80+000029AA)
78132A36 Module(MSVCR80+00002A36)

PSS @0x71E09588
---------------

CSession @0x71E08278
--------------------
m_spid = 132 m_cRef = 12 m_rgcRefType[0] = 1
m_rgcRefType[1] = 1 m_rgcRefType[2] = 9 m_rgcRefType[3] = 1
m_rgcRefType[4] = 0 m_rgcRefType[5] = 0 m_pmo = 0x71E08040
m_pstackBhfPool = 0x00000000 m_dwLoginFlags = 0x03e0 m_fBackground = 0
m_fClientRequestConnReset = 0 m_fUserProc = -1 m_fConnReset = 0
m_fIsConnReset = 0 m_fInLogin = 0 m_fReplRelease = 0
m_fKill = 0 m_ulLoginStamp = 3105683 m_eclClient = 5
m_protType = 5 m_hHttpToken = FFFFFFFF

m_pV7LoginRec
---------------------
00000000: 18010000 02000972 401f0000 00000006 400c0000 € .......r@.......@...
00000014: 00000000 e0030000 00000000 00000000 5e000400 € ................^...
00000028: 66000200 6a000000 7a001c00 b2000c00 ca000000 € f...j...z...........
0000003C: ca001c00 02010000 02010b00 60f120db ad481801 € ............`. ..H..
00000050: 00001801 00001801 00000000 0000€ € € € € € € € € € € € € € € ..............

CPhysicalConnection @0x71E08188
-------------------------------
m_pPhyConn->m_pmo = 0x71E08040 m_pPhyConn->m_pNetConn = 0x71E08788 m_pPhyConn->m_pConnList = 0x71E08260
m_pPhyConn->m_pSess = 0x71E08278 m_pPhyConn->m_fTracked = -1 m_pPhyConn->m_cbPacketsize = 8000
m_pPhyConn->m_fMars = 0 m_pPhyConn->m_fKill = 0

CBatch @0x71E08A90
------------------
m_pSess = 0x71E08278 m_pConn = 0x71E089F0 m_cRef = 3
m_rgcRefType[0] = 1 m_rgcRefType[1] = 1 m_rgcRefType[2] = 1
m_rgcRefType[3] = 0 m_rgcRefType[4] = 0 m_pTask = 0x006F9D38

EXCEPT (null) @0x6610B4AC
-------------------------
exc_number = 0 exc_severity = 0 exc_func = 0x023D96B0

Task @0x006F9D38
----------------
CPU Ticks used (ms) = 1 Task State = 2
WAITINFO_INTERNAL: WaitResource = 0x00000000 WAITINFO_INTERNAL: WaitType = 0x0
WAITINFO_INTERNAL: WaitSpinlock = 0x00000000 SchedulerId = 0x0
ThreadId = 0x444 m_state = 0 m_eAbortSev = 0

EC @0x71E09590
--------------
spid = 132 ecid = 0 ec_stat = 0x0
ec_stat2 = 0x40 ec_atomic = 0x4 __fSubProc = 1
ec_dbccContext = 0x00000000 __pSETLS = 0x71E08A30 __pSEParams = 0x71E08CD0
__pDbLocks = 0x71E09878

SEInternalTLS @0x71E08A30
-------------------------
m_flags = 0 m_TLSstatus = 3 m_owningTask = 0x006F9D38
m_activeHeapDatasetList = 0x71E08A30 m_activeIndexDatasetList = 0x71E08A38


SEParams @0x71E08CD0
--------------------
m_lockTimeout = -1 m_isoLevel = 1048576 m_logDontReplicate = 0
m_neverReplicate = 0 m_XactWorkspace = 0x03F78940 m_pSessionLocks = 0x71E09A88
m_pDbLocks = 0x71E09878 m_execStats = 0x3F867018 m_pAllocFileLimit = 0x00000000




Does anybody know what€™s going on?
I will be very appreciate if someone can help me to solve this problem. Thank you!





View 3 Replies View Related

DB Engine :: Stack Dump While Taking Any Backup?

Nov 26, 2015

I keep getting below stack dump errors whenever I try to take Full/T-Log backup.

2015-11-26 05:18:03.44 spid79 Β  Β  Β * Β  Exception Code Β  Β = c0000005 EXCEPTION_ACCESS_VIOLATION
2015-11-26 05:18:03.44 spid79 Β  Β  Β * Β  Access Violation occurred reading address 00007FFFA6CF9C60

I used debugger and got below stack trace.

0:048> kC Β 1000
Call Site
sqlmin!GetObjOffsets
sqlmin!PerfmonManager::AddInstance
sqlmin!BackupPerfmonCounter::AddInstance

[Code] ....

View 5 Replies View Related

T-SQL (SS2K8) :: Stack / Transpose One Row With 3 Fields To A Single Column?

Apr 29, 2015

I have the following result set but I want to stack or transpose the 3 fields into a single column. I may add more fields later, but right now I want to know what's the best and simplest way.

Current result set:

TotalAllCustomersOnFile | TotalConsumersWithValidEmail | TotalConsumersWithValidEmailAndOptedIn
2,500 1,750 1,500

Desired result set:

Audience | Totals
----------------------------------------------------
TotalAllCustomersOnFile | 2,500
TotalConsumersWithValidEmail | 1,750
TotalConsumersWithValidEmailAndOptedIn | 1,500

View 3 Replies View Related

Error Occurred During Rendering Of The Report. Stack Empty.

Jun 28, 2007

I have developed a report in SSRS 2005. When I try to export the output to Excel, it shows an error saying:



Error occurred during local report processing.

Error occurred during rendering of the report. Stack Empty.



Do anyone have any idea what this means and how to fix it?



I can render the report in other formats (Adobe, csv etc) without any problem. My other reports, under same project and using same dataset, are working fine.



Thanks in Advance.

View 1 Replies View Related

CLR Stored Procedure And Stack Trace Line Numbers

Sep 27, 2007

Hello you all CLR stored procedure experts,

When a self-developed CLR stored procedure throws an Exception and the Exception is caught in the code and for example logged, there only are class and method names in the stack trace lines, but not the line numbers. Can the line numbers somehow be included in the stack trace?

I'm not familiar with .NET framework stack traces, but when I tried to find out more information I hit concepts like PDB files, are such things somehow needed to enable line numbers in stack traces?

Big thanks already in advance,
J

View 2 Replies View Related

CheckDB Stack Dump And Reports Corrupt Sys.sysobjvalues Only When Read_only

Apr 9, 2008



Hi, I've been getting stack dumps and reports of corruption in sys.sysobjvalues in a series of different read_only databases. Each time the CheckDB runs over the set of databases it reports exactly the same errors (listed below) in a subset of databases, but only ever in the read_only databases, not the read_write ones on the drive.

I've got three 2TB drives allocated to the cluster and the errors are ONLY ever happening on one of the drives (lets call it N: ), however under the covers all three drives are hosted on a virtualised SAN (EVA8000) on the same spindles so I'm a bit confused about why we're getting the errors. Thinking that perhaps there was a problem with cabling/HBA, etc I failed the instance to another node at another site which completely eliminates all hardware except the disks, yet the problem still happens. I've yet to failover to the mirrored set of disks in another EVA cabinet to test there, but can't take the outage hit just yet.

I can run the checkdb multiple times and get exactly the same error, yet if I set the DB to read_write then the corruption and stack dumps magically go away - even after I set db back to read_only - after I cycle SQL server then the whole sequence will start again - corruption while read_only and then no corruption once altered to read_write and after. If I restore a backup of the database taken either before or after the corruption was first reported then the restored DB checks out fine. Of course I can restore from backups but I've got 2TBs worth of databases to restore and I don't want to do that until I *KNOW* exactly what the cause is.

Anyone got any good ideas what may be happening?

Microsoft SQL Server 2005 - 9.00.3054.00 (X64) Mar 23 2007 18:41:50 Copyright (c) 1988-2005 Microsoft Corporation Enterprise Edition (64-bit) on Windows NT 5.2 (Build 3790: Service Pack 2)

Here's the error and stack dump:

dbcc checkdb (MyDB) with physical_only


DBCC results for 'MyDB'.

Msg 2515, Level 16, State 1, Line 1

The page (1:24), object ID 60, index ID 1, partition ID 281474980642816, allocation unit ID 281474980642816 (type In-row data) has been modified, but is not marked as modified in the differential backup bitmap.

There are 0 rows in 0 pages for object "sys.sysobjvalues".

CHECKDB found 0 allocation errors and 1 consistency errors in table 'sys.sysobjvalues' (object ID 60).

CHECKDB found 0 allocation errors and 1 consistency errors in database 'MyDB'.

repair_allow_data_loss is the minimum repair level for the errors found by DBCC CHECKDB (MyDB).

DBCC execution completed. If DBCC printed error messages, contact your system administrator.

* *******************************************************************************
*
* BEGIN STACK DUMP:
* 04/09/08 10:35:49 spid 241
*
* DBCC database corruption
*
* Input Buffer 130 bytes -
* dbcc checkdb (MYDB) with physical_only
*
* *******************************************************************************
* -------------------------------------------------------------------------------
* Short Stack Dump
PSS @0x0000000187995AC0
-----------------------

CSession @0x0000000187994410
----------------------------
m_spid = 241 m_cRef = 14 m_rgcRefType[0] = 1
m_rgcRefType[1] = 1 m_rgcRefType[2] = 11 m_rgcRefType[3] = 1
m_rgcRefType[4] = 0 m_rgcRefType[5] = 0 m_pmo = 0x0000000187994080
m_pstackBhfPool = 0x00000000E67B0BC0 m_dwLoginFlags = 0x83e0 m_fBackground = 0
m_fClientRequestConnReset = 0 m_fUserProc = -1 m_fConnReset = 0
m_fIsConnReset = 0 m_fInLogin = 0 m_fAuditLoginSent = 1
m_fAuditLoginFailedSent = 0 m_fReplRelease = 0 m_fKill = 0
m_ulLoginStamp = 783607 m_eclClient = 5 m_protType = 5
m_hHttpToken = FFFFFFFFFFFFFFFF
m_pV7LoginRec
---------------------
0000000000000000: 2f290000 02000972 00100000 00000006 800c0000 € /).....r............
0000000000000014: 00000000 e0830000 00000000 00000000 5e000900 € ................^...
0000000000000028: 00000000 00000000 70002e00 cc000800 dc000000 € ........p...........
000000000000003C: dc001c00 14010000 14010000 7b2a2625 406c1401 € ............{*&%@l..
0000000000000050: 1b282f29 00002f29 00000000 0000€ € € € € € € € € € € € € € € .(/)../)......


CPhysicalConnection @0x00000001879942E0
---------------------------------------
m_pPhyConn->m_pmo = 0x0000000187994080
m_pPhyConn->m_pNetConn = 0x0000000187994B00
m_pPhyConn->m_pConnList = 0x00000001879943E0
m_pPhyConn->m_pSess = 0x0000000187994410 m_pPhyConn->m_fTracked = -1
m_pPhyConn->m_cbPacketsize = 4096 m_pPhyConn->m_fMars = 0 m_pPhyConn->m_fKill = 0

CBatch @0x0000000187994FD0
--------------------------
m_pSess = 0x0000000187994410 m_pConn = 0x0000000187994EC0 m_cRef = 3
m_rgcRefType[0] = 1 m_rgcRefType[1] = 1 m_rgcRefType[2] = 1
m_rgcRefType[3] = 0 m_rgcRefType[4] = 0 m_pTask = 0x0000000000FC4868

EXCEPT (null) @0x00000000111CA168
---------------------------------
exc_number = 0 exc_severity = 0 exc_func = 0x0000000001875D30

Task @0x0000000000FC4868
------------------------
CPU Ticks used (ms) = 450 Task State = 2
WAITINFO_INTERNAL: WaitResource = 0x0000000000000000 WAITINFO_INTERNAL: WaitType = 0x0
WAITINFO_INTERNAL: WaitSpinlock = 0x0000000000000000 SchedulerId = 0x1
ThreadId = 0x21f4 m_state = 0 m_eAbortSev = 0

EC @0x0000000187995AD0
----------------------
spid = 241 ecid = 0 ec_stat = 0x0
ec_stat2 = 0x0 ec_atomic = 0x0 __fSubProc = 1
ec_dbccContext = 0x00000000111CEF80 __pSETLS = 0x0000000187994F30 __pSEParams = 0x0000000187995350
__pDbLocks = 0x0000000187995F20
SEInternalTLS @0x0000000187994F30
---------------------------------
m_flags = 0 m_TLSstatus = 3 m_owningTask = 0x0000000000FC4868
m_activeHeapDatasetList = 0x0000000187994F30
m_activeIndexDatasetList = 0x0000000187994F40
SEParams @0x0000000187995350
----------------------------
m_lockTimeout = -1 m_isoLevel = 4096 m_logDontReplicate = 0
m_neverReplicate = 0 m_XactWorkspace = 0x00000000C1AF8080
m_pSessionLocks = 0x00000000E67B0320 m_pDbLocks = 0x0000000187995F20
m_execStats = 0x00000000D85E5CB0 m_pAllocFileLimit = 0x0000000000000000



View 3 Replies View Related

The Query Processor Ran Out Of Stack Space....Please Simplify The Query.

Oct 9, 2007



I received the following error today while migrating some code from SQL 2000 standard to SQL 2005 standard:

The query processor ran out of stack space during query optimization. Please simplify the query.

From what I gather, this error is usually an indication that one of the SQL Server 2005 maximum capacity specifications has been exceeded. However, I'm not sure which one. The only one that seems suspect is the number of nested subqueries (32), however I believe the numerous subqueries in my query would be classified as correlated rather than nested.

An example of my code is below. It is necessarily messy, as the output needs to be denormalized somewhat. Note that this runs just fine on SQL 2000, and it retrieves the 1500 or so rows of data in about 30 seconds. Thanks in advance for any ideas as to what may be causing this error. (Sorry for not using code-block, but all the html tags it threw in were exceeding the 50,000 character limit for the message)


BEGIN

SELECT

(SELECT Agent FROM Agent a WHERE a.Card_Number = c.Card_Number AND Agent_Number = 1) AS A5,

(SELECT Agent FROM Agent a WHERE a.Card_Number = c.Card_Number AND Agent_Number = 2) AS A6,

(SELECT Agent FROM Agent a WHERE a.Card_Number = c.Card_Number AND Agent_Number = 3) AS A7,

(SELECT Agent FROM Agent a WHERE a.Card_Number = c.Card_Number AND Agent_Number = 4) AS A8,

dbo.f_formatpseudodate(Accrued_Interest_To) AS AI,

dbo.f_getmiscdescription('AM', c.Card_Number, Amended) AS AM,

Basis_Shareblock_1 AS B1,

Basis_Shareblock_2 AS B2,

Basis_Shareblock_3 AS B3,

Basis_Shareblock_4 AS B4,

Basis AS BS,

dbo.f_getmiscdescription('C1', c.Card_Number, Price_Code_1) AS C1,

dbo.f_getmiscdescription('C2', c.Card_Number, Price_Code_2) AS C2,

dbo.f_getmiscdescription('C3', c.Card_Number, Price_Code_3) AS C3,

dbo.f_getmiscdescription('C4', c.Card_Number, Price_Code_4) AS C4,

dbo.f_getmiscdescription('C5', c.Card_Number, Price_Code_5) AS C5,

dbo.f_getmiscdescription('C6', c.Card_Number, Price_Code_6) AS C6,

CAST(Card_Date AS smalldatetime) AS CD,

c.Card_Number AS CN,

dbo.f_getisocurrencycode(Currency_Code) AS CR,

Card_Status AS CS,

dbo.f_formatpseudodate(Record_Date) AS CT,

Currency_Description AS CU,

(SELECT New_Issue_Description FROM New_Issue ni WHERE ni.Card_Number = c.Card_Number AND New_Issue_Number = 1) AS D1,

(SELECT New_Issue_Description FROM New_Issue ni WHERE ni.Card_Number = c.Card_Number AND New_Issue_Number = 2) AS D2,

(SELECT New_Issue_Description FROM New_Issue ni WHERE ni.Card_Number = c.Card_Number AND New_Issue_Number = 3) AS D3,

(SELECT New_Issue_Description FROM New_Issue ni WHERE ni.Card_Number = c.Card_Number AND New_Issue_Number = 4) AS D4,

(SELECT New_Issue_Description FROM New_Issue ni WHERE ni.Card_Number = c.Card_Number AND New_Issue_Number = 5) AS D5,

(SELECT New_Issue_Description FROM New_Issue ni WHERE ni.Card_Number = c.Card_Number AND New_Issue_Number = 6) AS D6,

dbo.f_formatboolean(Dutch_Auction) AS DA,

dbo.f_formatpseudodate(Dated_Date) AS DD,

dbo.f_getmiscdescription('DI', c.Card_Number, Distribution_In) AS DI,

Dealer_Manager_2 AS DL,

Dealer_Manager_1 AS DM,

dbo.f_getmiscdescription('DV', c.Card_Number, Dividend_In) AS DV,

Basis_Surrender_1 AS E1,

Basis_Receive_1_1 AS E2,

Basis_Amount_1_1 AS E3,

Basis_CUSIP_1_1 AS E4,

Basis_Receive_1_2 AS E5,

Basis_Amount_1_2 AS E6,

Basis_CUSIP_1_2 AS E7,

Basis_Receive_1_3 AS E8,

Basis_Amount_1_3 AS E9,

dbo.f_getmiscdescription('EC', c.Card_Number, Record_Date_Code) AS EC,

Equity_Debt AS ED,

dbo.f_getmiscdescription('EF', c.Card_Number, Effective_Date_Code) AS EF,

dbo.f_getmiscdescription('EX', c.Card_Number, Expiration_Date_Code) AS EX,

dbo.f_getmiscdescription('F1', c.Card_Number, Refer_Code_1) AS F1,

dbo.f_getmiscdescription('F2', c.Card_Number, Refer_Code_2) AS F2,

dbo.f_getmiscdescription('F3', c.Card_Number, Refer_Code_3) AS F3,

dbo.f_formatpseudodate(Effective_Date) AS FD,

File_Activity_Type AS FT,

dbo.f_getmiscdescription('G1', c.Card_Number, Rights_Ratio_1) AS G1,

dbo.f_getmiscdescription('G2', c.Card_Number, Rights_Ratio_2) AS G2,

dbo.f_getmiscdescription('G3', c.Card_Number, Rights_Ratio_3) AS G3,

RTRIM(LTRIM(Original_Card_Number)) AS GC,

dbo.f_getmiscdescription('GD', c.Card_Number, Ex_Rights_Date_Code) AS GD,

dbo.f_getmiscdescription('GT', c.Card_Number, Rights_To) AS GT,

Basis_Amount_2_3 AS H1,

Basis_CUSIP_2_3 AS H2,

Basis_Surrender_3 AS H3,

Basis_Receive_3_1 AS H4,

Basis_Amount_3_1 AS H5,

Basis_CUSIP_3_1 AS H6,

Basis_Receive_3_2 AS H7,

Basis_Amount_3_2 AS H8,

Basis_CUSIP_3_2 AS H9,

Information_Agent_1 AS I1,

Information_Agent_2 AS I2,

Interest_Rate AS [IN],

dbo.f_getmiscdescription('J1', c.Card_Number, Subscription_Ratio_Code_1) AS J1,

dbo.f_getmiscdescription('J2', c.Card_Number, Subscription_Ratio_Code_2) AS J2,

dbo.f_getmiscdescription('J3', c.Card_Number, Subscription_Ratio_Code_3) AS J3,

Basis_CUSIP_4_2 AS K1,

Basis_Receive_4_3 AS K2,

Basis_Amount_4_3 AS K3,

Basis_CUSIP_4_3 AS K4,

Basis_Receive_3_3 AS L1,

Basis_Amount_3_3 AS L2,

Basis_CUSIP_3_3 AS L3,

Basis_Surrender_4 AS L4,

Basis_Receive_4_1 AS L5,

Basis_Amount_4_1 AS L6,

Basis_CUSIP_4_1 AS L7,

Basis_Receive_4_2 AS L8,

Basis_Amount_4_2 AS L9,

dbo.f_formatpseudodate(Withdrawal_After) AS LA,

dbo.f_getmiscdescription('LC', c.Card_Number, Withdrawal_After_Code) AS LC,

dbo.f_getmiscdescription('LG', c.Card_Number, Eligibility) AS LG,

Withdrawal_After_Time AS LT,

dbo.f_getmiscdescription('LZ', c.Card_Number, Withdrawal_After_Zone) AS LZ,

Option_Expiration_Time AS M1,

Rights_Expire_Time AS M3,

Expiration_Date_Time AS M4,

dbo.f_formatpseudodate(Maturity_Date) AS MD,

Maximum_Eligibility AS ME,

dbo.f_validatecardnumber(Refer_Card_1) AS N1,

dbo.f_validatecardnumber(Refer_Card_2) AS N2,

dbo.f_validatecardnumber(Refer_Card_3) AS N3,

dbo.f_getmiscdescription('NT', c.Card_Number, Interest_Rate_Code) AS NT,

DTC_Match_Card_Number AS O3,

Offer_By AS OB,

Odd_Lot AS OD,

dbo.f_getmiscdescription('OV', c.Card_Number, OverSubscription) AS OV,

dbo.f_formatpseudodate(Option_Expiration_Date) AS OX,

(SELECT Agent_Telephone FROM Agent a WHERE a.Card_Number = c.Card_Number AND Agent_Number = 4) AS P1,

Information_Agent_Telephone_1 AS P2,

Information_Agent_Telephone_2 AS P3,

Dealer_Manager_Telephone_1 AS P4,

Dealer_Manager_Telephone_2 AS P5,

CUSIP_Number AS PN,

dbo.f_formatpseudodate(Pro_Ration_Date) AS PO,

dbo.f_getmiscdescription('PY', c.Card_Number, Payable_To) AS PY,

dbo.f_getmiscdescription('PZ', c.Card_Number, Protect_Period) AS PZ,

Price_1 AS R1,

Price_2 AS R2,

Price_3 AS R3,

Price_4 AS R4,

Price_5 AS R5,

Price_6 AS R6,

dbo.f_getmiscdescription('RB', c.Card_Number, Rights_Transferable) AS RB,

Rights_CUSIP AS RC,

Issuer_Description AS RD,

dbo.f_getmiscdescription('RI', c.Card_Number, Pro_Ration_Date_Code) AS RI,

Record_Type AS RT,

dbo.f_formatpseudodate(Rights_Expire_Date) AS RX,

CAST(Subscription_Ratio_1 AS varchar(12)) + Subscription_Ratio_1_Unit AS S1,

CAST(Subscription_Ratio_2 AS varchar(12)) + Subscription_Ratio_2_Unit AS S2,

CAST(Subscription_Ratio_3 AS varchar(12)) + Subscription_Ratio_3_Unit AS S3,

dbo.f_getmiscdescription('SC', c.Card_Number, Source_Name) AS SC,

Service_Type AS SE,

dbo.f_getmiscdescription('ST', c.Card_Number, Subscription_To) AS ST,

(SELECT Redemption_Agent_Telephone FROM Redemption_Agent ra WHERE ra.Card_Number = c.Card_Number AND Redemption_Agent_Number = 1) AS T2,

(SELECT Redemption_Agent_Telephone FROM Redemption_Agent ra WHERE ra.Card_Number = c.Card_Number AND Redemption_Agent_Number = 2) AS T3,

(SELECT Redemption_Agent_Telephone FROM Redemption_Agent ra WHERE ra.Card_Number = c.Card_Number AND Redemption_Agent_Number = 3) AS T4,

(SELECT Redemption_Agent_Telephone FROM Redemption_Agent ra WHERE ra.Card_Number = c.Card_Number AND Redemption_Agent_Number = 4) AS T5,

(SELECT Agent_Telephone FROM Agent a WHERE a.Card_Number = c.Card_Number AND Agent_Number = 1) AS T7,

(SELECT Agent_Telephone FROM Agent a WHERE a.Card_Number = c.Card_Number AND Agent_Number = 2) AS T8,

(SELECT Agent_Telephone FROM Agent a WHERE a.Card_Number = c.Card_Number AND Agent_Number = 3) AS T9,

Tickler_Date AS TK,

dbo.f_getmiscdescription('TP', c.Card_Number, To_Purchase) AS TP,

dbo.f_getmiscdescription('TS', c.Card_Number, Transaction_Status) AS TS,

dbo.f_gettxtext(c.Card_Number) AS TX,

Basis_CUSIP_1_3 AS U1,

Basis_Surrender_2 AS U2,

Basis_Receive_2_1 AS U3,

Basis_Amount_2_1 AS U4,

Basis_CUSIP_2_1 AS U5,

Basis_Receive_2_2 AS U6,

Basis_Amount_2_2 AS U7,

Basis_CUSIP_2_2 AS U8,

Basis_Receive_2_3 AS U9,

RTRIM(Issue_Description) AS UD,

Voluntary_Mandatory AS VM,

(SELECT New_Issue_CUSIP FROM New_Issue ni WHERE ni.Card_Number = c.Card_Number AND New_Issue_Number = 1) AS W1,

(SELECT New_Issue_CUSIP FROM New_Issue ni WHERE ni.Card_Number = c.Card_Number AND New_Issue_Number = 2) AS W2,

(SELECT New_Issue_CUSIP FROM New_Issue ni WHERE ni.Card_Number = c.Card_Number AND New_Issue_Number = 3) AS W3,

(SELECT New_Issue_CUSIP FROM New_Issue ni WHERE ni.Card_Number = c.Card_Number AND New_Issue_Number = 4) AS W4,

(SELECT New_Issue_CUSIP FROM New_Issue ni WHERE ni.Card_Number = c.Card_Number AND New_Issue_Number = 5) AS W5,

(SELECT New_Issue_CUSIP FROM New_Issue ni WHERE ni.Card_Number = c.Card_Number AND New_Issue_Number = 6) AS W6,

dbo.f_formatpseudodate(Withdrawal_Prior_To) AS WD,

Withdrawal_Prior_To_Time AS WH,

dbo.f_getmiscdescription('WO', c.Card_Number, Withdrawal_Prior_To_Code) AS WO,

dbo.f_getmiscdescription('WZ', c.Card_Number, Withdrawal_Prior_To_Zone) AS WZ,

(SELECT Payable_Rate_Amount FROM Payable_Rate pr WHERE pr.Card_Number = c.Card_Number AND Payable_Rate_Number =3) AS X1,

(SELECT Payable_Rate_CUSIP FROM Payable_Rate pr WHERE pr.Card_Number = c.Card_Number AND Payable_Rate_Number = 3) AS X2,

dbo.f_formatpseudodate(Expiration_Date) AS XD,

dbo.f_formatpseudodate(Ex_Rights_Date) AS XR,

dbo.f_getmiscdescription('XT', c.Card_Number, Rights_Expire_Code) AS XT,

Payable_Rate_Shareblock AS Y1,

Payable_Rate_Surrender AS Y2,

(SELECT Payable_Rate_Receive FROM Payable_Rate pr WHERE pr.Card_Number = c.Card_Number AND Payable_Rate_Number =1) AS Y3,

(SELECT Payable_Rate_Amount FROM Payable_Rate pr WHERE pr.Card_Number = c.Card_Number AND Payable_Rate_Number =1) AS Y4,

(SELECT Payable_Rate_CUSIP FROM Payable_Rate pr WHERE pr.Card_Number = c.Card_Number AND Payable_Rate_Number =1) AS Y5,

(SELECT Payable_Rate_Receive FROM Payable_Rate pr WHERE pr.Card_Number = c.Card_Number AND Payable_Rate_Number =2) AS Y6,

(SELECT Payable_Rate_Amount FROM Payable_Rate pr WHERE pr.Card_Number = c.Card_Number AND Payable_Rate_Number =2) AS Y7,

(SELECT Payable_Rate_CUSIP FROM Payable_Rate pr WHERE pr.Card_Number = c.Card_Number AND Payable_Rate_Number =2) AS Y8,

(SELECT Payable_Rate_Receive FROM Payable_Rate pr WHERE pr.Card_Number = c.Card_Number AND Payable_Rate_Number =3) AS Y9,

dbo.f_formatpseudodate(Payment_Date) AS YD,

dbo.f_getmiscdescription('YR', c.Card_Number, Payable_Rate) AS YR,

dbo.f_getmiscdescription('Z1', c.Card_Number, Option_Expiration_Zone) AS Z1,

Rights_Expire_Zone AS Z3,

Expiration_Date_Zone AS Z4

FROM COMMON c

INNER JOIN DC_DailyCard dc ON c.Card_Number = dc.Card_Number

WHERE c.Card_Status = 'R' AND c.Card_Date BETWEEN @start_date AND @end_date

END

View 2 Replies View Related

SqlDateTime Overflow

Aug 6, 2007

I've seen a few comments on this error and they've all been basically "You're passing a bad date time". I don't think that's what's happening in my case though.
I'm trying to write a record to my SQL database using a business logic layer class that writes the record with a stored procedure. Here's the codebehind on the page: Protected Sub btnSubmit_Click(ByVal sender As Object, ByVal e As System.EventArgs)
'Create New User
UsersBLL.NewUser(txtFirstName.Text, _
txtLastName.Text, _
txtPhone1.Text, _
ddlOffice.SelectedIndex, _
lblManager.Text, _
lblManagerAlt.Text, _
txtDepartment.Text, _
cbxNewPosition.Checked, _
cbxContractor.Checked, _
Calendar1.SelectedDate.ToString, _
txtJobTitle.Text, _
ddlFunctionCodes.SelectedIndex)

End Sub 
Here's the BLL function that I'm calling:
    Public Shared Function NewUser(ByVal UsersNameFirst As String, _                    ByVal UsersNameLast As String, _                    ByVal UsersPhone1 As String, _                    ByVal OfficesID As Int32, _                    ByVal UsersID_Manager As Int32, _                    ByVal UsersID_ManagerAlt As Int32, _                    ByVal UsersDepartment As String, _                    ByVal UsersNewPosition As Boolean, _                    ByVal UsersContractor As Boolean, _                    ByVal UsersStartDate As DateTime, _                    ByVal UsersJobTitle As String, _                    ByVal FunctionCodesID As Int32, _                    Optional ByVal UsersGSN As String = Nothing, _                    Optional ByVal UsersEmail As String = Nothing, _                    Optional ByVal UsersNameMiddle As String = Nothing, _                    Optional ByVal UsersKnownAs As String = Nothing, _                    Optional ByVal UsersPhone2 As String = Nothing, _                    Optional ByVal UsersPhoneMobile1 As String = Nothing, _                    Optional ByVal UsersPhoneMobile2 As String = Nothing, _                    Optional ByVal UsersSSN As String = Nothing, _                    Optional ByVal UsersContractType As String = Nothing, _                    Optional ByVal UsersContractAgency As String = Nothing, _                    Optional ByVal UsersEndDate As DateTime = Nothing, _                    Optional ByVal UsersCompanyCode As String = Nothing, _                    Optional ByVal UsersCostCenter As String = Nothing, _                    Optional ByVal UsersRole As String = Nothing, _                    Optional ByVal StatusesID As Int32 = Nothing)        Dim dbConnection As SqlConnection, Command As SqlCommand        dbConnection = New SqlConnection(DBConnectionString)        dbConnection.Open()        Command = New SqlCommand("EXECUTE NewUser", dbConnection)        Command.Connection = dbConnection        Command.CommandText = "NewUser"        Command.CommandType = Data.CommandType.StoredProcedure        Command.Parameters.Add(New SqlParameter("@UsersNameFirst", UsersNameFirst))        Command.Parameters.Add(New SqlParameter("@UsersNameLast", UsersNameLast))        Command.Parameters.Add(New SqlParameter("@UsersPhone1", UsersPhone1))        Command.Parameters.Add(New SqlParameter("@OfficesID", OfficesID))        Command.Parameters.Add(New SqlParameter("@UsersID_Manager", UsersID_Manager))        Command.Parameters.Add(New SqlParameter("@UsersID_ManagerAlt", UsersID_ManagerAlt))        Command.Parameters.Add(New SqlParameter("@UsersNewPosition", UsersNewPosition))        Command.Parameters.Add(New SqlParameter("@UsersContractor", UsersContractor))        Command.Parameters.Add(New SqlParameter("@UsersStartDate", UsersStartDate))        Command.Parameters.Add(New SqlParameter("@UsersJobTitle", UsersJobTitle))        Command.Parameters.Add(New SqlParameter("@FunctionCodesID", FunctionCodesID))        Command.Parameters.Add(New SqlParameter("@UsersGSN", UsersGSN))        Command.Parameters.Add(New SqlParameter("@UsersEmail", UsersEmail))        Command.Parameters.Add(New SqlParameter("@UsersNameMiddle", UsersNameMiddle))        Command.Parameters.Add(New SqlParameter("@UsersKnownAs", UsersKnownAs))        Command.Parameters.Add(New SqlParameter("@UsersPhone2", UsersPhone2))        Command.Parameters.Add(New SqlParameter("@UsersPhoneMobile1", UsersPhoneMobile1))        Command.Parameters.Add(New SqlParameter("@UsersPhoneMobile2", UsersPhoneMobile2))        Command.Parameters.Add(New SqlParameter("@UsersSSN", UsersSSN))        Command.Parameters.Add(New SqlParameter("@UsersContractType", UsersContractType))        Command.Parameters.Add(New SqlParameter("@UsersContractAgency", UsersContractAgency))        Command.Parameters.Add(New SqlParameter("@UsersEndDate", UsersEndDate))        Command.Parameters.Add(New SqlParameter("@UsersCompanyCode", UsersCompanyCode))        Command.Parameters.Add(New SqlParameter("@UsersCostCenter", UsersCostCenter))        Command.Parameters.Add(New SqlParameter("@UsersCostCenter", UsersCostCenter))        Command.Parameters.Add(New SqlParameter("@UsersRole", UsersRole))        Command.Parameters.Add(New SqlParameter("@StatusesID", StatusesID))        Return Command.ExecuteScalar()        dbConnection.Close()  
 
Here's the stored procedure I'm running in SQL:
  (
@UsersGSNvarchar(20) = Nothing,
@UsersNameFirstvarchar(20),
@UsersNameMiddlevarchar(20) = Nothing,
@UsersNameLastvarchar(20),
@UsersKnownAsvarchar(20) = Nothing,
@UsersPhone1varchar(50),
@UsersPhone2varchar(50) = Nothing,
@UsersPhoneMobile1varchar(20) = Nothing,
@UsersPhoneMobile2varchar(20) = Nothing,
@UsersEmailvarchar(50) = Nothing,
@OfficesIDint,
@UsersDepartmentvarchar(50),
@UsersSSNvarchar(5) = Nothing,
@UsersNewPositionbit,
@UsersContractorbit,
@UsersContractTypevarchar(20) = Nothing,
@UsersContractAgencyvarchar(50) = Nothing,
@UsersStartDatedatetime,
@UsersEndDatedatetime = Nothing,
@UsersJobTitlevarchar(50),
@FunctionCodesIDint,
@UsersCompanyCodevarchar(20) = Nothing,
@UsersCostCentervarchar(20) = Nothing,
@UsersID_Managerint,
@UsersID_ManagerAltint,
@UsersRolevarchar(20) = "User",
@StatusesIDint = 1
)
AS
SET NOCOUNT OFF;

INSERT INTO [Users]
(UsersGSN,
UsersNameFirst,
UsersNameMiddle,
UsersNameLast,
UsersKnownAs,
UsersPhone1,
UsersPhone2,
UsersPhoneMobile1,
UsersPhoneMobile2,
UsersEmail,
OfficesID,
UsersDepartment,
UsersSSN,
UsersNewPosition,
UsersContractor,
UsersContractType,
UsersContractAgency,
UsersStartDate,
UsersEndDate,
UsersJobTitle,
FunctionCodesID,
UsersCompanyCode,
UsersCostCenter,
UsersID_Manager,
UsersID_ManagerAlt,
UsersRole,
StatusesID)

VALUES
(@UsersGSN,
@UsersNameFirst,
@UsersNameMiddle,
@UsersNameLast,
@UsersKnownAs,
@UsersPhone1,
@UsersPhone2,
@UsersPhoneMobile1,
@UsersPhoneMobile2,
@UsersEmail,
@OfficesID,
@UsersDepartment,
@UsersSSN,
@UsersNewPosition,
@UsersContractor,
@UsersContractType,
@UsersContractAgency,
@UsersStartDate,
@UsersEndDate,
@UsersJobTitle,
@FunctionCodesID,
@UsersCompanyCode,
@UsersCostCenter,
@UsersID_Manager,
@UsersID_ManagerAlt,
@UsersRole,
@StatusesID);  
 
Seems about as simple as it can get to me. UsersStartDate is a datetime (which I'm picking from a calendar control on the web page) and it's passing (for example) "08/01/2007 12:00:00 AM". I've debugged and that's the value being passed.
 Now when I go to my DB and write a simple insert query and insert exactly that date, it works fine. Maybe my development machine date settings are changing it somehow before it sends to the DB?
Also I'm pretty sure there's a lot of redundant passing of all those vars but I'm brand new to tiered apps and just learning. If there's a simpler way, feel free to enlighten me. :)

View 8 Replies View Related

SqlDateTime Overflow

Mar 13, 2006

Hi All,
Please help!!! I've looked all over the place and tried all the solutions that worked for others. I just want to insert a Null value to a DateTime field in my SQL db! I am calling dv_ItemInserting on ItemInserting of my FormView.
I tried using a stored procedure to fix this problem SET @opDate = NullIf(@opDate, NULL). I am still getting the same error.
Please forward any info you have. Thanks!!!
----------------------------------------------
Error:
SqlDateTime overflow. Must be between 1/1/1753 12:00:00 AM and 12/31/9999 11:59:59 PM.
Protected Sub dv_ItemInserting(ByVal sender As Object, ByVal e As System.Web.UI.WebControls.FormViewInsertEventArgs)
 If e.Values.Item("opDate").Equals(Nothing) OrElse e.Values.Item("opDate").Equals(DateTime.MinValue) Then'Tried the followings and they do not work !!!     
      'SqlDataSource1.InsertParameters("opDate").DefaultValue = System.DBNull.Value      'e.Values.Item("opDate") = System.Data.SqlTypes.SqlDateTime.Null.Value
 end if End sub

View 3 Replies View Related

- SQL 7.0 / DTS / SMALLEDATETIME / Overflow -

Jun 24, 1999

I've got a comma delimited text file that I am bringing into a table with DTS. The time values in this text file come in as 4 character fields like "0948", "2359", and "1325".

What I'm trying to do is import these values into a field with a type of SMALLDATETIME, by assigning the field as follows...

DTSDestination("EnterTime") =
Left(DTSSource("Col017"), 2) & ":" & Right(DTSSource("Col017"), 2)

This doesn't work -- I get an overflow error. If I change the field type to DATETIME it works. I'm confused! What am I doing wrong? I'm not trying to include seconds, so why am I getting an overflow error?

View 1 Replies View Related

Buffer Overflow In DTS

Apr 3, 2001

I'm having a problem importing a text file into a SQL db using DTS. I have to transform some of the data that is being imported so I think Bulk import is out of the question.

Everything works fine until a hit a row that contains more than 255 characters in one cell. Once it encounters that row, it fires this error:

"Error at source for row number 9.Errors encountered so far in this task :1
General Error: -2147217887(80040E21)
Data for Source Column 3('Col3') is too large for the specified buffer size."

I found a entry in the MS KnowledgeBase that addresses the symptom but the workaround doesn't fix it:

http://support.microsoft.com/support/kb/articles/Q281/5/17.ASP?LN=EN-US&SD=tech&FR=0&qry=DTS%20buffer&rnk=3&src=DHCS_MSPSS_tech_SRCH&SPR=SQL

Anyone have any ideas.....

View 2 Replies View Related

Arithmetic Overflow

May 1, 2000

I have a field of type numeric(5) in a SQL 7.0table that I'm trying to assign the value -100. I get an 8115 error. Does anybody know where I can find out what the possible values I can put into this field.

View 3 Replies View Related

Arithmetic Overflow

Feb 6, 2001

Dear All,

Despite multiple, unsuccessful attempts, I am unable to populate a table with converted int data using the following select syntax:

select name, convert(size*8000)/1024000 as Size into 'TableName' from sysfiles
order by name

results in the following:

Server: Msg 8115, Level 16, State 2, Line 1
Arithmetic overflow error converting expression to data type int.
The statement has been terminated.

What change/code is necessary for a successful select?

Regards, John

TIA

View 1 Replies View Related

Overflow Error

Feb 7, 2004

Can i change from datetime data type to small datetime coz when i tried it produced an overflow error??

View 1 Replies View Related

Arithmetic Overflow

Apr 28, 2008

Hello,

I am trying to get a value from a select-query that is of the datatype int. The code below will not, I think it is because I mix up datetime with int conversion. Anyway, I am not really sure how to subtract

Select datediff(day,convert(int, SUBSTRING('198001010012', 1, 8)),convert(int, getdate()))

Results in: Arithmetic overflow error converting expression to data type datetime..

I really need to get the difference because in my next select query I will use the ">" , "<" and "=" to filter the result.

If I do not convert and use this code
SELECT name, datediff(day, SUBSTRING(clientno, 1, 8), getdate()), email
FROM ...

I get this message:
The conversion of a char data type to a datetime data type resulted in an out-of-range datetime value.

clientno is of data type char(12)

Any suggestions?

View 10 Replies View Related

Overflow At Runtime

Nov 30, 2006

We run a regular query through Excel that is linked to a Microsoft SQL Server data source.

We have run this query routinely for the past few years. Suddenly this query has started returning an error message - β€œ[Microsoft][ODBC SQL Server Driver] [SQL Server] Difference of two datetime columns caused overflow at runtimeβ€?. It seems to be a common error (as per Google search) however I don’t want to go messing around with something I don’t fully understand. Can anyone point me in the direction of what to look out for?

View 2 Replies View Related

Overflow Error

Oct 13, 2005

On Thu, 13 Oct 2005 19:35:16 GMT, Mike wrote:[color=blue]>I have the SQL table column PRICE set for decimal (14,14).[/color]Hi Mike,That means that you have a total of 14 digits, 14 of which are to theright of the decimal. Leaving no digits to the left.[color=blue]>Any one know why I would get an overflow error.[/color]Probably because there's a value above 1.000 or below -1.000 in yourdata.Best, Hugo--(Remove _NO_ and _SPAM_ to get my e-mail address)

View 5 Replies View Related

OleDBException Overflow

Jan 18, 2007

Im getting the following error :

System.Data.OleDb.OleDbException was unhandled

ErrorCode=-2147217833

Message="Overflow"

Source="Microsoft JET Database Engine"

StackTrace:

at
System.Data.OleDb.OleDbCommand.ExecuteCommandTextForSingleResult(tagDBPARAMS
dbParams, Object& executeResult)

at System.Data.OleDb.OleDbCommand.ExecuteCommandText(Object& executeResult)

at
System.Data.OleDb.OleDbCommand.ExecuteCommand(CommandBehavior behavior,
Object& executeResult)

at
System.Data.OleDb.OleDbCommand.ExecuteReaderInternal(CommandBehavior
behavior, String method)

at System.Data.OleDb.OleDbCommand.ExecuteNonQuery()

at
Home_Party_Solutions.PartyDBaseAccess.getCustomerID(Customer cust) in
C:Documents and SettingsAndrew Buis.HALMy DocumentsVisual Studio
2005ProjectsTrunkPartyDBaseAccess.vb:line 138

at
Home_Party_Solutions.Customer.getCustomerID(IPartyDBase& p_dbase)
in C:Documents and SettingsAndrew Buis.HALMy DocumentsVisual Studio
2005ProjectsTrunkCustomer.vb:line 212

at
Home_Party_Solutions.PartyOrder.Done_Click(Object sender, EventArgs e)
in C:Documents and SettingsAndrew Buis.HALMy DocumentsVisual Studio
2005ProjectsTrunkPartyOrder.vb:line 150

at System.Windows.Forms.Control.OnClick(EventArgs e)

at System.Windows.Forms.Button.OnClick(EventArgs e)

at System.Windows.Forms.Button.OnMouseUp(MouseEventArgs mevent)

at
System.Windows.Forms.Control.WmMouseUp(Message& m, MouseButtons
button, Int32 clicks)

at System.Windows.Forms.Control.WndProc(Message& m)

at System.Windows.Forms.ButtonBase.WndProc(Message& m)

at System.Windows.Forms.Button.WndProc(Message& m)

at System.Windows.Forms.Control.ControlNativeWindow.OnMessage(Message& m)

at System.Windows.Forms.Control.ControlNativeWindow.WndProc(Message& m)

at
System.Windows.Forms.NativeWindow.DebuggableCallback(IntPtr hWnd, Int32
msg, IntPtr wparam, IntPtr lparam)

at System.Windows.Forms.UnsafeNativeMethods.DispatchMessageW(MSG& msg)

at
System.Windows.Forms.Application.ComponentManager.System.Windows.Forms.UnsafeNativeMethods.IMsoComponentManager.FPushMessageLoop(Int32
dwComponentID, Int32 reason, Int32 pvLoopData)

at
System.Windows.Forms.Application.ThreadContext.RunMessageLoopInner(Int32
reason, ApplicationContext context)

at
System.Windows.Forms.Application.ThreadContext.RunMessageLoop(Int32
reason, ApplicationContext context)

at System.Windows.Forms.Application.Run(ApplicationContext context)

at Microsoft.VisualBasic.ApplicationServices.WindowsFormsApplicationBase.OnRun()

at
Microsoft.VisualBasic.ApplicationServices.WindowsFormsApplicationBase.DoApplicationModel()

at
Microsoft.VisualBasic.ApplicationServices.WindowsFormsApplicationBase.Run(String[]
commandLine)

at
Home_Party_Solutions.My.MyApplication.Main(String[] Args) in
17d14f5c-a337-4978-8281-53493378c1071.vb:line 81



Basically I am inserting a row into a table. The sql line looks like :

Insert into Customer VALUES ('1', 'Jane', 'Doe', '123 Nowhere', 'Kalamazoo', 'MI', '49024', 'a@a.com', '3335551234')

When I copy and paste the command into Access, it successfully adds the
row into the table. However, I am getting that error when I run
it in my program. I create the string, then this is the code I am
using :

command = New OleDbCommand

command = m_Connection.CreateCommand()

command.CommandText = tempString

Dim tempInt As Integer = -1

tempInt = command.ExecuteNonQuery()

At the last line, I get the overflow.

Just for clarification, the values are (Cust ID as long, firstName as
text, lastName as text, Street as text, City as text, State as text,
Zip as long, email as text, phone as double).



Any insights into the problem? The error message isnt all that insightful.



Thanks

View 5 Replies View Related

Data Overflow

May 11, 2007



Hi,



I would like to know if we can define an unsigned integer data type in SQL Server 2005. We have a situation where one of the integer columns will reach its 2 billion limit. I want to know if there's any way in which I can extend this to say 4 billion by making the data type unsigned or any other way which doesn't require me to change the data type to bigint.



Any help is highly appreciated.



TIA

Ritesh





View 1 Replies View Related

Overflow Error

Mar 2, 2007

Hi:

I am trying to pump data from Sybase to SQL Server using SSIS and I get this error:

Conversion failed because the data overflowed the specified type

The data on the external column metadata shows as type database timestamp, as does the output column. The database values are all datetime, coming in through OLEDB to Sybase. Any idea what could be going on here?

Thanks,

Kayda

View 7 Replies View Related

STACK DUMPS AND SYMPTOM DUMPS

Apr 26, 1999

Can anyone tell me where I can find information about why sql server might be executing a stack and/or symptom dump?
That is, what are some of the conditions that might cause this. Every time I try to DBCC DBREINDEX on a certain table, stack
and symptom dumps occur and SQL Server remains incommunicado (can't connect, even locally) until I restart it. I'm going to try to fix the table by using
rename table, create new table (and dependent objects) , transfer data, and toast the original table. No problem, I've done that
before with smashing success. But, if this solves my problem, I'll still be no wiser about what it was that caused the problem in
the first place. Any suggestions, questions, comments, or even jeers would be appreciated.
Thanks,
Chris

View 1 Replies View Related

Arithmetic Overflow Error

Feb 16, 2008

hi, can someone please tell me what this error is, i am trying to create a quiz engine but i keep getting this error when i try to save the results of me quiz in the results page. i have been following the tutorial from this website. Please can someone help me, thanks 



Arithmetic overflow error converting expression to data type smalldatetime.The statement has been terminated.
Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code. Exception Details: System.Data.SqlClient.SqlException: Arithmetic overflow error converting expression to data type smalldatetime.The statement has been terminated.Source Error:



Line 46: userQuizDataSource.InsertParameters.Add("UserName", User.Identity.Name)
Line 47:
Line 48: Dim rowsAffected As Integer = userQuizDataSource.Insert()
Line 49: If rowsAffected = 0 Then
Line 50: ' Let's just notify that the insertion didn't

View 8 Replies View Related

Error: SqlDateTime Overflow !!!???

Jul 24, 2004

When I run my query

dr = Me.SqlComm_Chk_ATLGroup.ExecuteReader

it give me this error:

SqlDateTime overflow. Must be between 1/1/1753 12:00:00 AM and 12/31/9999 11:59:59 PM.


This is my Query :

SELECT break_time, break_rep_no, break_type, break_user_id
FROM breaks
WHERE (break_date = @p1) AND (break_group = @p2) AND (break_time > @p3) AND (break_time < @P4)
ORDER BY break_time

This is the code

Dim dr As SqlClient.SqlDataReader

Me.SqlConn.Open()
Me.SqlComm_Chk_ATLGroup.Parameters(0).Value = #7/23/2004#
Me.SqlComm_Chk_ATLGroup.Parameters(1).Value = 0
Me.SqlComm_Chk_ATLGroup.Parameters(2).Value = #10:00:00 AM#
Me.SqlComm_Chk_ATLGroup.Parameters(3).Value = #2:00:00 PM#

dr = Me.SqlComm_Chk_ATLGroup.ExecuteReader

While dr.Read

End While

Me.SqlConn.Close()

Note : when I store the time in a string and display it it gives me 10:00:00 AM 1/1/0001 or something like that ?

Where is the problem?

View 3 Replies View Related

Decimal Scale Overflow

Jun 27, 2001

This is not a real big deal, cause I worked around it.. but I just tried to INCREASE the scale on a decimal column & got an arithmatic overflow error. I can understand why this would occur if trying to decrease the scale, but not increasing it. This is not a computed column.. why does SQL give an overflow error if all it has to do is add a couple of zeros to the end? Yes, I know SQL considers them to be different data types, but this is still confusing me.

View 2 Replies View Related

Tinyint Overflow Error

Jan 16, 2006

I encounter the following error :

Server: Msg 8115, Level 16, State 2, Procedure kssp_UpdateLeague, Line 107
Arithmetic overflow error converting expression to data type tinyint.

When I hit the following code:

SET @A = @B - @C

-------------------------------------------

@A is defined as :
DECLARE @A INT

@B and @C are populated in a fetch :
FETCH NEXT FROM FixtureList INTO @B, @C

and FixtureList is defined as :

DECLARE FixtureList CURSOR FOR
SELECT HomeScore, AwayScore FROM fixtures
WHERE homescore IS NOT NULL AND awayscore IS NOT NULL

The fields HomeScore and AwayScore are defined as Tinyint

@B and @C are typically between 0 and 10. I reckon the problem may be with the precision of the data types but I don't know how to prove this or how to fix. I've tried various combinations of convert and cast at various points in the expression (SET @A = @B - @C) but to no avail.

Interestingly (or not) if I run the following select I get the same error :

SELECT DATE01, HOMESCORE, AWAYSCORE, HOMESCORE - AWAYSCORE FROM fixtures

View 4 Replies View Related







Copyrights 2005-15 www.BigResource.com, All rights reserved