the problem is not anything with tempdb. it is the way I am BULK INSERTingDECLARE @xml_table TABLE(xml_data xml)DECLARE @xmlDoc NVARCHAR(MAX), @handle INT, @sqlstmt NVARCHAR(MAX)SET @sqlstmt= 'SELECT * FROM OPENROWSET ( BULK ''' + @xml_path + @xml_file_name + ''', SINGLE_CLOB ) AS XMLDATA'INSERT INTO dbo.xml_table EXEC (@sqlstmt)
I need to do it in batches instead of one swoopIf you don't have the passion to help people, you have no passion