Viewing 15 posts - 12,496 through 12,510 (of 13,876 total)
Maybe you could add the variables as derived columns in your dataflow and then use a Data Viewer ...
October 23, 2009 at 10:24 am
John McC (10/23/2009)
It could be an Excel driver limitation as explained here:http://sqlserversd.wordpress.com/2008/09/14/ssis-excel-values-import-as-nulls/
I've run across it a couple of times with "apparently" good data being NULLed.
That was what I was trying...
October 23, 2009 at 10:21 am
Tim, I think you may have misunderstood the requirement.
Sounds to me like the OP needs to read up on the use of FOREACH containers in iterating round folders of 0...
October 23, 2009 at 1:09 am
Please post the command line which executes the job.
October 23, 2009 at 1:05 am
SQL Learner-684602 (10/22/2009)
it works....... 😎
I have one more question,
Is there any way to split this long string into columns partitioned by DOTS
For Ex:
ab.cd.ef.gh
gives
Col1 Col2 Col3...
October 22, 2009 at 11:10 am
Erik Kutzler (10/22/2009)
Beat me to it Phil.<snip>
Same logic ... must be good! 🙂
October 22, 2009 at 11:09 am
OK, maybe this works:
declare @a varchar(100)
set @a = 'a.b.c.d.f.g'
SELECT REPLACE(SUBSTRING(@a, charindex('.', @a), LEN(@a) - charindex('.', REVERSE(@a))-1), '.','')
October 22, 2009 at 10:51 am
SELECT SUBSTRING(REPLACE('ab.cd.ef.gh.kl','.',''), 3, len(REPLACE('ab.cd.ef.gh.kl','.',''))-4)
SELECT SUBSTRING(REPLACE('hh.jj.kk.rr.ee.bb','.',''), 3, len(REPLACE('hh.jj.kk.rr.ee.bb','.',''))-4)
You didn't remove the left and right 2 characters 🙂
--edit aaah, just seen the latest post - that's tougher
October 22, 2009 at 10:34 am
My best guess is that the data is probably coming in as null from Excel (you can check this using a data viewer). Excel has 'decided' that that field contains...
October 22, 2009 at 10:12 am
So the requirement is to remove all the dots and remove the left 2 chars and the right 2 chars?
Would you like it in SQL or in script?
October 22, 2009 at 9:59 am
What is the datatype of the column to which you would like to pass this data?
October 22, 2009 at 9:55 am
Try removing the T2 aliasing and writing out the full name of the table. You cannot alias a table in the first line of an update statement, even in T-SQL...
October 21, 2009 at 2:05 pm
Is the PK an IDENTITY field? If so, you'll have to enable IDENTITY insert.
October 21, 2009 at 1:22 pm
bitbucket-25253 (10/21/2009)
Phil Parkin
You are wrong in thinking that SSIS cannot import values from Excel which are the result of calculations. I just tried this and it works fine.
Phil did...
October 21, 2009 at 10:05 am
I just expanded my testing to include cells populated via drop-down and these worked fine too. So there must be something more to this ...
October 21, 2009 at 9:51 am
Viewing 15 posts - 12,496 through 12,510 (of 13,876 total)