Viewing 15 posts - 9,841 through 9,855 (of 13,880 total)
ChrisM@Work (6/6/2013)
ERIC CRUDELI (6/6/2013)
Jesus !!!He's gone home, there's just us geeks eating fish sandwiches and slugging Bordeaux.
--
Chris, reading this has made me feel queasy :sick: :hehe:
June 6, 2013 at 6:24 am
Something like this?
with msgTypes as (select distinct msgType from #t1)
select m.msgType, ADAM = a.MsgType, CDM = c.msgType
from msgTypes m
left join #T1 a on m.msgType = a.MsgType and a.Provider = 'ADAM'
left...
June 6, 2013 at 2:46 am
Do you know in advance what the column names will be? That is, does this have to be a dynamic query? The static version is easier to write ...
June 6, 2013 at 1:14 am
KoldCoffee (6/5/2013)
June 5, 2013 at 7:12 am
I don't like it either, but can't see any way of turning it off.
I know it's a bit OTT, but I've actually written a program to automate certain 'tweaks' to...
June 5, 2013 at 4:29 am
No problem & post back with any specific questions about the implementation. It takes a while to get to grips with the SSIS way of doing things.
June 5, 2013 at 4:19 am
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
Viewing 15 posts - 9,841 through 9,855 (of 13,880 total)