Viewing 15 posts - 76 through 90 (of 399 total)
i have changed datatype of parameters from DATE to VARCHAR and now the package runs but sql task inserting NULL for all values dependent on the value of passed parameters. --Quote me
June 21, 2017 at 10:51 pm
I have discovered that I used name of variable as part of Variable expression. I have removed that and am now getting error about parameter binding.
[Execute SQL Task] Error:...
--Quote me
June 21, 2017 at 10:23 pm
Turns out, that since I was assigning DATE datatype to @FromDate parameter, it was not passing the expression to Exec SQL Query as '2017-06-01 00:00:00.000'. After I changed datatype...
--Quote me
June 21, 2017 at 9:26 pm
I need to pass params in integration Services as Variables to to Exec SQL Task query where I have already set and declared parameters.
I need SSIS expression...
--Quote me
June 21, 2017 at 3:26 pm
Sorry Phil, i actually need expression to return this format,'2017-06-01 00:00:00.000' .
I do realize I thought I needed 6/01/2017 12:00:00 AM format, but it's causing ssis pkg to...
--Quote me
June 21, 2017 at 2:32 pm
Phil, ....are you providing SQL as template for what to do in SSIS?
= (DT_DATE) DATEADD("DAY", -1,getdate())
way i see it, if i just knew...
--Quote me
June 19, 2017 at 12:27 pm
(have same question. Since this is old post, deleted and made new one at https://www.sqlservercentral.com/Forums/1882132/Expression-needed-for-Midnight-of-previous-day)
--Quote me
June 19, 2017 at 11:07 am
Would BETWEEN work?
WHERE cte_start_date BETWEEN @FromDate AND @ToDate
--Quote me
June 15, 2017 at 12:54 pm
Jacob....oh I sure hope this is mundane case! Heart rate quickened... here's what I have been doing:
1rst run
SET @FromDate = '2017-04-01 00:00:00.000'
SET @ToDate =...
--Quote me
June 15, 2017 at 10:58 am
(deleted)
--Quote me
June 15, 2017 at 10:52 am
Alastair, no ofcourse not. The sample dataset is so small that the top 1000 isn't a problem. In real life I am not using top 1000! i would be missing...
--Quote me
June 15, 2017 at 10:25 am
Yes, I added Time tbl DDL to original post. I just finished editing my original reply.
I do have correct counts in Solution 2 and even in both...
--Quote me
June 15, 2017 at 9:30 am
(1)
Eirikur: I think OUTER APPLY is only way to do accomplish task because I need either a 1 or 0 for every *hour* of the day to drive the...
--Quote me
June 15, 2017 at 8:56 am
OK, all good, thanks everyone for help. Appreciate people are willing to share their talent.
--Quote me
May 23, 2017 at 4:57 pm
Very helpful guys. Thanks everyone.
Joe, I didn't get the query because the where clause wasn't there. You gave me too much credit thinking I'd figure that out!
--Quote me
May 23, 2017 at 3:05 pm
Viewing 15 posts - 76 through 90 (of 399 total)