Are you able to put the data in the datatable into a Staging area on a SQL Server? If so, you can spawn off a BCP process.
BCP: http://msdn.microsoft.com/en-us/library/aa174646%28SQL.80%29.aspx
For example, I use:
BCP Database.Schema.TableName OUT FileName.Ext -S ServerName -T -n
Switches:
- -S is for server
- -T is for trusted connection
- -n is for Native format
EDIT + New Idea:
If you have access to the queries that fill up the datatable, you could use those with BCP or SQLDMO to export out a native format file. The following queries use the QUERYOUT switch instead of the OUT switch because they contain inline queries
Export specific columns from a view:
BCP "SELECT Column1, Column2 FROM MyViewName" QUERYOUT FileName.Ext -S ServerName -T -n
Export specific columns from a JOIN:
BCP "SELECT Table1.Column1, Table2.Column2 FROM Table1 INNER JOIN Table2 on Table1.Column33 = Table2.Column33" QUERYOUT FileName.Ext -S ServerName -T -n