Viewing 15 posts - 5,311 through 5,325 (of 7,190 total)
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
Gus is right.
I think sp_delete_backuphistory is date specific, not database specific, so you may end up throwing the baby out with the bathwater if you use it.
John
June 7, 2011 at 7:01 am
Viewing 15 posts - 5,311 through 5,325 (of 7,190 total)