Viewing 15 posts - 12,466 through 12,480 (of 13,849 total)
OK, try
select ID, Max(Cost), Max(ItemNumber)
from ...
Group By ID
October 23, 2009 at 10:49 am
If there is more than one item number, as in the case of
2 30 D
2 30 EE
which item number would you want to select? D, EE or does not...
October 23, 2009 at 10:36 am
Don't do the deinstall, it won't fix this.
Sounds like an Excel driver 'feature', see here[/url]. You could try the solutions offered there. Or ...
Try adding a column to the right...
October 23, 2009 at 10:31 am
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
Viewing 15 posts - 12,466 through 12,480 (of 13,849 total)