Viewing 15 posts - 9,841 through 9,855 (of 13,874 total)
No problem - it's pretty much the same as I described in my previous post.
The ExecuteSQL task will run the proc.
The proc will return a result which can be stored...
June 5, 2013 at 3:38 am
That's nice & easy.
Here's one way:
1) Create an integer package variable - say NumRows
2) Create an ExecuteSQL task to get the table's rowcount & return the result into NumRows. (You...
June 5, 2013 at 3:04 am
jampabsatish (6/4/2013)
I'm facing the same issue but not able to figure out wt the issue is .
Im attaching a screenshot of the same error i got . could you...
June 5, 2013 at 1:12 am
krypto69 (6/4/2013)
changed it to datetime and got:Conversion failed when converting datetime from character string
cast(left('pehPErcontrol',8) as datetime),
Is there a chance that any of the values in pehPErcontrol is not a valid...
June 4, 2013 at 6:56 am
Ah - sorry - that came in a later version of SQL Server.
Try 'datetime' instead of 'date'.
June 4, 2013 at 6:51 am
select cast(left('201301042',8) as date)
June 4, 2013 at 6:45 am
Here is a small piece of code to back up my assertion that this is a datatype problem:
if object_id('tempdb..#ex', 'U') is not null
drop table #ex
create table #ex
...
June 4, 2013 at 5:59 am
If field2 is a datetime, trying to return 'nothing' if it is null will be giving the database engine a headache in terms of mismatching data types.
Instead, maybe try returning...
June 4, 2013 at 1:47 am
KoldCoffee (6/3/2013)
it does not parse.:-P
I just created a text file to check this. It parses for me.
--Edit: added screen shot
June 4, 2013 at 1:22 am
bobd125 (6/3/2013)
June 4, 2013 at 1:04 am
homebrew01 (6/3/2013)
June 3, 2013 at 10:53 am
What do you mean by 'wrong'? Looks OK to me. Does it not parse?
June 3, 2013 at 10:40 am
You can right-click on a task and select 'Execute Task' - is that what you're after?
June 3, 2013 at 10:38 am
Well, I counted only one colon (:) even though you have two conditions. Everything needs to balance.
No nesting:
expression1?true1:false1
Insert one level of nesting:
expression1?(expression2?true2:false2):false1
June 3, 2013 at 9:14 am
KoldCoffee (6/2/2013)
To be sure, you could try something like:
SUBSTRING(TRIM([Business Unit]), 1, 3) == "MFM" ? SUBSTRING(TRIM([Business Unit]), 4, 50): [Business Unit]
--snip
I've tried this but it doesn't...
June 3, 2013 at 6:38 am
Viewing 15 posts - 9,841 through 9,855 (of 13,874 total)