J
John Saunders
I'm writing a program which is meant to write Event Log entries into a SQL
Server database. I'm using a SqlDataAdapter with stored procedures generated
by the Configure Data Adapter wizard. I'm using the strongly-typed dataset
this generated for me (EntryDS). The one table is EventLogEntries, so the
row is EventLogEntriesRow.
For each Event Log entry, I get a row with NewEventLogEntriesRow, fill it
in, and then add it to the DataSet with AddEventLogEntriesRow. I wait until
all rows are filled in before doing the Update.
The problem comes when I do the Update. It fails as follows:
----------------------------------------------------------------------------
----
1
system.data.dll!System.Data.Common.DbDataAdapter::Update(System.Data.DataRow
[] dataRows = {Length=10000}, System.Data.Common.DataTableMapping
tableMapping = {System.Data.Common.DataTableMapping}) + 0x766 bytes
2
system.data.dll!System.Data.Common.DbDataAdapter::Update(System.Data.DataRow
[] dataRows = {Length=10000}) + 0x215 bytes
*3 EventLogTestConsole.exe!EventLogTestConsole.DataAccess.Update()
4 EventLogTestConsole.exe!EventLogTestConsole.MainClass.Main(string[] args =
{Length=0})
[The "10000" is due to a failed attempt to make it work a little at a time.
Almost the same stack occurs when I just use Update(DataSet)]
This is with Framework 1.0.3705.288.
Through the magic of "binary search", I discovered that I can successfully
write 27011 rows, but not 27012. 27012 and above cause the exception.
I can't figure out what's going on here. I thought there might be some bad
value in row 27012, but I looked at it, and it's almost identical to 27011.
Beyond that, I have no clue, since it's not obvious where I'm supplying a
null. I wonder if someone who knows the Framework better than I do can give
me something to look for?
Server database. I'm using a SqlDataAdapter with stored procedures generated
by the Configure Data Adapter wizard. I'm using the strongly-typed dataset
this generated for me (EntryDS). The one table is EventLogEntries, so the
row is EventLogEntriesRow.
For each Event Log entry, I get a row with NewEventLogEntriesRow, fill it
in, and then add it to the DataSet with AddEventLogEntriesRow. I wait until
all rows are filled in before doing the Update.
The problem comes when I do the Update. It fails as follows:
Index FunctionDebug.ListCallStack
----------------------------------------------------------------------------
----
1
system.data.dll!System.Data.Common.DbDataAdapter::Update(System.Data.DataRow
[] dataRows = {Length=10000}, System.Data.Common.DataTableMapping
tableMapping = {System.Data.Common.DataTableMapping}) + 0x766 bytes
2
system.data.dll!System.Data.Common.DbDataAdapter::Update(System.Data.DataRow
[] dataRows = {Length=10000}) + 0x215 bytes
*3 EventLogTestConsole.exe!EventLogTestConsole.DataAccess.Update()
4 EventLogTestConsole.exe!EventLogTestConsole.MainClass.Main(string[] args =
{Length=0})
[The "10000" is due to a failed attempt to make it work a little at a time.
Almost the same stack occurs when I just use Update(DataSet)]
This is with Framework 1.0.3705.288.
Through the magic of "binary search", I discovered that I can successfully
write 27011 rows, but not 27012. 27012 and above cause the exception.
I can't figure out what's going on here. I thought there might be some bad
value in row 27012, but I looked at it, and it's almost identical to 27011.
Beyond that, I have no clue, since it's not obvious where I'm supplying a
null. I wonder if someone who knows the Framework better than I do can give
me something to look for?