Viewing 15 posts - 76 through 90 (of 149 total)
SSIS column mappings must be done in "design time". We humans do this manually in SSIS. To do it programmatically means manipulating a template SSIS pkg and then executing that...
Here's...
August 28, 2013 at 11:58 am
Another gah!!! You'll need to grab the columns for a specific table... doh!
foreach(DataRow t in tbls.Rows) {
sql.Clear();
sql.AppendFormat("create table {0}(", t["TABLE_NAME"]);
...
August 28, 2013 at 11:32 am
Gah. you'll want this in the first for loop:
foreach (DataRow t in ...) {
sql.Clear();
...
August 28, 2013 at 11:22 am
Here's one way, using ADO.Net + ODBC connection... (this is more or less from my working SSIS 2008/2010 ScriptTask C# code...)
The methodology is similar for ADO.Net + SqlConnection. SqlConnection also...
August 28, 2013 at 11:16 am
xp_cmdshell has some serious security implications. In that case, it's easier to not deal with that particular set of landmines and just implement that functionality through SSIS.
August 15, 2013 at 12:34 am
Last place I worked used DataJunction for the print service bureau side of the business (e.g., bank check printing, etc). While what DJ does is cool, it does store the...
August 15, 2013 at 12:31 am
...and if you're using OleDB connection managers, the EzAPI code seems to work to create SSIS packages as well.
Here's the latest source on CodePlex:
http://sqlsrvintegrationsrv.codeplex.com/SourceControl/list/changesets
The problem I had with the 2008...
July 15, 2013 at 10:29 am
This link might be helpful too...
http://bifuture.blogspot.com/2011/01/ssis-adding-derived-column-to-ssis.html
July 15, 2013 at 10:25 am
Hmm... The features mentioned in the article are done or doable by SSMS Tools Pack (sql snippets)...
May 15, 2012 at 5:58 pm
I'll bite, as I use regex's much for cases like this (again, on recordsets > million_rows, too).
The patindex is fine, but now, isolate the matched substring.
The regex functions on my...
May 9, 2012 at 12:08 pm
I've used our own in-house implementations of some of the .Net RexEx functions on seemingly large datasets (several million records each), mostly to help clean up, validate and parse addresses,...
May 8, 2012 at 1:02 am
Hmm... it's a double-edged sword sometimes, too... Just ask our (ex-)spouses...
January 9, 2012 at 2:14 pm
one way is to just do something like...
[font="Courier New"]select acct_num, icd9_code,
row_number() over (partition by acct_num order by acct_num, icd9_code) as rn
[/font]
Put this in a sub-select or temp...
December 16, 2011 at 1:37 pm
Hmm... ICD-9 codes... There's a bit more than 1024 different ICD-9 "base" codes...
but maybe he's only going to possibly have no more than 1023 distinct codes over a population (not...
December 15, 2011 at 5:48 pm
Viewing 15 posts - 76 through 90 (of 149 total)