Viewing 15 posts - 166 through 180 (of 182 total)
I thought about it for a while and you either do it like the first post I made for rhetro or you do it with a cursor. The cursor...
February 17, 2006 at 7:15 am
OK...just thinking about this a little more. If the above isn't what you had in mind, the next course of action gets trickier if you want to go rhetro-active.
CREATE...
February 16, 2006 at 9:36 pm
UPDATE myTable
SET myFlag = 1
FROM myTable mt1
WHERE NOT EXISTS
(
SELECT *
FROM myTable mt2
WHERE mt1.marcode
AND DATEPART(yy,mt1.dateTimeStamp) = DATEPART(yy,mt2.dateTimeStamp)
AND...
February 16, 2006 at 8:16 pm
In a SQL Task..
Select FOO
FROM schema.table2
WHERE...
Click the parameters button...go to the output parameters tab...
pick FOO from the drop-down
Now you have the variable to procede to the datapump. From your...
February 16, 2006 at 2:52 pm
I was thinking about when I have multiple statements in an SQL task. It would bomb on me. On another hand, large queries are easier to mange in...
February 16, 2006 at 1:46 pm
create a stored proc on your local server
create procedure sp_GetDataFromOracleTable
AS
select *
from schema.table
where id_column > @Foo
When you call it inside the datapump...
EXEC sp_GetDataFromOracleTable ?
click...
February 16, 2006 at 12:30 pm
My CIO almost hit the floor when I showed him. That is awesome!
February 15, 2006 at 3:16 pm
CREATE FUNCTION fn_StripChars(@val varchar(50)) RETURNS int
AS
BEGIN
DECLARE @int varchar(50)
WHILE LEN(@val) > 0
BEGIN
IF ISNUMERIC(LEFT(@val,1)) = 1 SET @int = ISNULL(@int,'') + LEFT(@val,1)
...
February 15, 2006 at 3:06 pm
Run the first task 5 times on one job (00:00 to 16:01)
Run the last task on 1 job with 2 steps (20:00 once a day)
February 15, 2006 at 12:40 pm
are you making a Windows or SQL Server Authentication Connection?
are you using named pipes?
are you using a DSN or DSN'less connection?
you may want to Google "SQL Server 80004005"
February 15, 2006 at 12:35 pm
I just had to do this task a few weeks ago... and a quick little reminder because it's not the first thing that I thought of. You must script...
February 15, 2006 at 7:55 am
That's really interesting, but I think recursion is more fun! unless you run out of memory that is (guilty).
February 14, 2006 at 8:38 am
I'd keep track of the files you've already uploaded in a table, and move the processed file to a "processed" directory. It's good practice anyhow. Do an inner...
February 14, 2006 at 8:01 am
Doesn't task3 wait for task1 and task2 to complete before execution?
you can just connect them sequentially, if you're looking to find an error.
February 14, 2006 at 7:46 am
Viewing 15 posts - 166 through 180 (of 182 total)