Drop Table
Support Forum for database administrators and web based access to important newsgroups related to databasesI have a .net program which usually create temp table in SQL Server 2005 and populate it from com contrlol to apply later to the main table.But sometimes I need to delete some of previously inserted rows to replace them with maybe more and adjusted ones. I did this by deleting suspicious rows and going back on com control to inserting rows. I did found that I am missing some rows. It seems that deletion does not synchronized with consequenced insertions. Is it neccessary to do explicit transaction or this is one of 2005 optimizations on temp tables?
Post Follow-up to this messageHi I am not really clear how you are doing this, maybe you would like to post some sample code? If the com control has it's own connection then you may no t be using the same temporary table! John "UncleSam89" wrote: > I have a .net program which usually create temp table in SQL Server 2005 a nd > populate it from com contrlol to apply later to the main table.But sometim es > I need to delete some of previously inserted rows to replace them with may be > more and adjusted ones. > I did this by deleting suspicious rows and going back on com control to > inserting rows. > I did found that I am missing some rows. > It seems that deletion does not synchronized with consequenced insertions. > Is it neccessary to do explicit transaction or this is one of 2005 > optimizations on temp tables?
Post Follow-up to this messageIt seems that it was my own bug sorry "John Bell" wrote: > Hi > > I am not really clear how you are doing this, maybe you would like to post > some sample code? If the com control has it's own connection then you may not > be using the same temporary table! > > John > > "UncleSam89" wrote: >
Post Follow-up to this message
Show a Printable Version
Email This Page to Someone!
Receive updates to this thread