Viewing 9 posts - 1 through 10 (of 10 total)
Matt, Can you see anything I could do to speed up the code below?
using System;
using System.Data;
using Microsoft.SqlServer.Server;
using System.Data.SqlTypes;
using System.Data.SqlClient;
using System.IO;
public class SQLCLRIO
{
[Microsoft.SqlServer.Server.SqlProcedure]
public...
June 9, 2010 at 2:26 am
Cheers Matt,
That document looks pretty useful, its pretty hard trying to find a decent website on this topic.
MY CLR is currently exporting a table with 98,308 rows in 3...
June 3, 2010 at 8:45 am
slightly updated quasi working version below is only writing the last row of the table, So I guess I need to either
A. build up a buffer
B. Write or...
June 3, 2010 at 6:47 am
i havent tried to compile the code below but this would be my attempt without knowing c#
using System;
using System.Data;
using Microsoft.SqlServer.Server;
using System.Data.SqlTypes;
using System.IO;
public class SQLCLRIO
{
conn = new SqlConnection(
...
June 3, 2010 at 5:10 am
Hi Matt,
Re: "Your CLR should do both the building of each row AND the streaming of the data out", thats what I need thanks then I can avoid slow performing...
June 3, 2010 at 4:38 am
thanks stewart,
I've already written the c# class so I'm not a completely new to c#
I'm looking for help with achieving the above with something like
http://dotnetguts.blogspot.com/2007/01/exporting-datatable-to-csv-file-format.html
(without the front end button click...
May 26, 2010 at 8:16 am
as long as != flexible
I would have to do something like run an SSIS package programmatically
e.g.
create an export package
configure an agent job to run the package
call sp_start_job from proc
all of...
May 26, 2010 at 6:41 am
thanks Stewart for the suggestion but SSIS doesnt offer the flexibility I need....
e.g. the filename is dynamic, the source could be dyanmic. You could say am trying to replicate SQL...
May 26, 2010 at 6:29 am
SELECT TT.ID,
CASE WHEN TT.ID = -1 THEN 'NOVALUE' ELSE T.IdName END IDNAME ,
VALUE1
FROM #tmpTran...
May 26, 2010 at 4:25 am
Viewing 9 posts - 1 through 10 (of 10 total)