I have the following code:
select @SQL = 'insert into #TempXML (XMLContent) select convert(xml,BulkColumn, 2) From openrowset(Bulk ''' + @Dir + '\FDistribContents_TMP.xml'', single_blob) [rowsetresults]'
exec(@SQL)
The FDistribContents_TMP.xml file is 2.588.235 KB large. When I execute the procedure I get the following error:
Msg 7119, Level 16, State 1, Line 1
Attempting to grow LOB beyond maximum allowed size of 2,147,483,647 bytes.
Msg 7399, Level 16, State 1, Line 1
The OLE DB provider "BULK" for linked server "(null)" reported an error. The provider did not give any information about the error.
Msg 7330, Level 16, State 2, Line 1
Cannot fetch a row from OLE DB provider "BULK" for linked server "(null)".
The database is in simple mode. The tempDB should have enough room.
What can I do to avoid this?