Viewing 15 posts - 12,451 through 12,465 (of 13,838 total)
Sounds like it's going into Excel as text to me.
October 26, 2009 at 9:52 am
So if you remove all display formatting in Excel, what does the field actually contain?
October 26, 2009 at 9:25 am
OK, if your table is called t1, this should do it:
with t as (
select distinct ID, Max(Cost) Cost
from T1
group by ID
)
select t1.ID, max(t1.Cost), Max(t1.ItemNumber) from T1
join T on T1.ID =...
October 23, 2009 at 11:23 am
If you can use SQL Server to do the work:
Select Convert(Varchar(10) , Cast('12-OCT-2009 18:23:20' as Datetime), 103)
--edit - oops, misread your post. That's not a date datatype 🙁 ignore me.
October 23, 2009 at 11:11 am
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
Viewing 15 posts - 12,451 through 12,465 (of 13,838 total)