Viewing 15 posts - 12,811 through 12,825 (of 13,849 total)
There are loads of examples on the Internet. This one is nice and detailed and will help you get started:
http://www.codebeach.com/tutorials/sql-server-integration-services-your-first-script-component.asp
This one generates multiple output rows from a single input:
Phil
May 6, 2009 at 12:05 am
Maybe this article gives you what you need:
http://www.sqlservercentral.com/articles/Integration+Services/61542/
May 5, 2009 at 9:23 pm
steveb (5/5/2009)
May 5, 2009 at 10:06 am
Your requirement is still puzzling me. You want to create a single XML file and store that in a single BLOB field?
May 5, 2009 at 6:16 am
What is the purpose of using XML here? Are you planning to insert the data, including the XML tags, into the table? Please explain a little more what the requirement...
May 5, 2009 at 4:30 am
So the regions on your spreadsheet may or may not match existing regions in your region table.
If they do, pick up the region ID
If they don't, create the region and...
May 4, 2009 at 11:46 pm
It seems that you need to modify the script, which looks curiously like a VBScript DTS script.
Try replacing this line
DTSDestination("CreateDate") = CDate(DTSSource("Col095"))
With this
If IsDate(DTSSource("Col095")) Then
DTSDestination("CreateDate") = CDate(DTSSource("Col095"))
End If
May 4, 2009 at 4:59 pm
That sounds a bit nasty - I think you might end up having to do that work in a Script Component, where you can certainly generate multiple output rows for...
May 4, 2009 at 5:29 am
Change your data source from 'table' to SQL command.
Select fields from your table and (critically) add a Row_Number() column partitioned on the fields you are using to identify duplicates. So...
May 4, 2009 at 12:02 am
You have provided neither
a) sample data, nor
b) an example of what you want to print
yet you are asking for sample code. Leaving aside paranormal abilities, just how do you expect...
May 3, 2009 at 11:25 pm
When you say the second value, you mean the one which is zero in your sample data? Zero is different from null and needs to be handled differently.
If the value...
May 3, 2009 at 5:56 pm
Have a look here for an example of how it can be done.
http://blogs.conchango.com/jamiethomson/archive/2006/07/11/4209.aspx
May 3, 2009 at 3:15 pm
GSquared (5/1/2009)
One way to do that would be something like this:
;with Dupes as
(select row_number() over (partition by facilityid, measureid, order by date desc) as Row,
facilityid,
measureid
from dbo.MyHoldingTable)
delete from Dupes
where Row >...
May 1, 2009 at 8:41 pm
So the records coming out of the OLEDB source are in the correct order, yet they are written in some other order?
Can you confirm that by adding a Data Viewer...
May 1, 2009 at 8:36 pm
Viewing 15 posts - 12,811 through 12,825 (of 13,849 total)