Viewing 15 posts - 5,311 through 5,325 (of 7,191 total)
DV
I haven't tried this myself, but you could try casting as the various date data types and see if one of those gives the date portion only. Failing that,...
June 10, 2011 at 8:55 am
Brandie Tarvin (6/10/2011)
John Mitchell-245523 (6/10/2011)
I think if you look in the Variables window, you'll see the value for the variable the last time the package was loaded.
That is an...
June 10, 2011 at 8:34 am
DV
I think if you look in the Variables window, you'll see the value for the variable the last time the package was loaded. If you know a bit of...
June 10, 2011 at 8:02 am
Brandie Tarvin (6/10/2011)
June 10, 2011 at 7:25 am
DV
Please will you post DDL and a sample of data for the CurrPeriod table.
Thanks
John
June 10, 2011 at 7:05 am
WITH NewOrders AS ( -- change prices here as required
SELECT 10 AS orderTotalPrice UNION ALL
SELECT 20 UNION ALL
SELECT 30 UNION ALL
SELECT 40
)
INSERT INTO [Order] (
orderId
,orderCustomerId
,orderTotalPrice
)
SELECT
NEWID()
,c.customerId
,n.orderTotalPrice
FROM
Customer c
CROSS JOIN
NewOrders n
-- Check...
June 10, 2011 at 6:59 am
OK, we're getting closer. Now will you please send some DDL that will actually create the tables when I run it on my SQL server.
Thanks
John
June 10, 2011 at 5:04 am
Table DDL, please, including foreign key constraint.
John
June 10, 2011 at 4:53 am
The same four orders for each customer? If not, what? Also, please provide table DDL in the form of CREATE TABLE statements.
John
June 10, 2011 at 4:48 am
DV
Just search for execute sql task parameter mapping - you should find loads of articles. Also, try searching for your original problem - somebody might already have solved it....
June 10, 2011 at 4:07 am
It should work with just a SELECT statement. How do you know the variable isn't being updated?
I would recommend that you use a stored procedure in any case, if...
June 10, 2011 at 3:33 am
Simon
Since Gail and I have taken the time to help you, and in case anyone else is reading this in the future with a similar problem, please will you post...
June 9, 2011 at 4:55 am
GilaMonster (6/9/2011)
Dynamic SQL.
Not so fast! Two alternatives here:
(1) Something like (simplified):
WHERE (@datatype = 'B' AND tablenameid IN (30,28))
OR (@datatype = 'C' AND tablenameid IN (11,48,132))
OR etc
(2) My preferred solution...
June 9, 2011 at 3:13 am
Triality (6/6/2011)
It's a data warehouse type environment where we load new data a couple of times per month.
If you only have changes to your database that often, then you don't...
June 9, 2011 at 1:39 am
You will need to do some string manipulation or some arithmetic on your date in order to get it into a format that can be converted. '20110607 11:11:11.111' is a...
June 8, 2011 at 8:48 am
Viewing 15 posts - 5,311 through 5,325 (of 7,191 total)