Overview
Examples
Screenshots
Comparisons
Applications
Download
Documentation
Tutorials
Bazaar
Status & Roadmap
FAQ
Authors & License
Forums
Funding Ultimate++
Search on this site
Search in forums












SourceForge.net Logo
Home » U++ Library support » U++ SQL » MSSQL strange problem and ugly workaround patch...
Re: MSSQL strange problem and ugly workaround patch... [message #19306 is a reply to message #19294] Tue, 25 November 2008 11:25 Go to previous messageGo to previous message
mirek is currently offline  mirek
Messages: 14255
Registered: November 2005
Ultimate Member
unodgs wrote on Mon, 24 November 2008 13:08

Or try: select SCOPE_IDENTITY.


Tried. The same problem as with @@IDENTITY.

BTW, this is really so weird that I would like somebody else to check and try.

AFAIK, the critical moment is when 'outer' select loop has more rows than can be prefetched in single step. In that case, @@IDENTITY (and SCOPE_IDENTITY) does not work until the last prefetch is performed.

That OTOH means that unless you do inserts in large fetch loop, the bug is hidden.

Of course, still possible something is wrong in OleDB.

Mirek
 
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: PostgreSQL string insert fix [with patch]
Next Topic: SqlArray/SqlCtrl/Select problem
Goto Forum:
  


Current Time: Mon Apr 28 13:28:39 CEST 2025

Total time taken to generate the page: 0.05734 seconds