Viewing 15 posts - 541 through 555 (of 1,554 total)
Seems we could use a little more details about what needs to be done..
Is it to just add nonexisting (new) rows from table1 to table2, or is it to update...
April 13, 2006 at 3:22 am
No particular thoughts except that it seems to be permissions related in one way or another. I don't use DTS much, so I can't really say if this behaviour is...
April 12, 2006 at 7:56 am
It could be either, I guess. Take a look on the columnname in question if it allows nulls or not on your destination, and whether it also is as it's...
April 12, 2006 at 6:25 am
create table that has columns that fits what the sproc returns.
INSERT myTable (col1, col2...)
EXEC @err = myProc
if (@err <> 0) goto errhandler
The insert/execute combo is what you're looking for. The...
April 12, 2006 at 6:10 am
Sergiy got it right. You have to turn around your thinking.
Instead of attempting a (possibly fatal) operation and only after the fact evaluate if it did or did not work,...
April 12, 2006 at 3:07 am
No, not really.
Some errors in T-SQL are fatal to the batch and will abort it immediately, and this is one of them. It's not possible to trap these in T-SQL,...
April 11, 2006 at 2:27 am
You really don't need a temptable for this. While it may work now, it's unnecessary much extra work for the server, and there is a slight chance that it may...
April 11, 2006 at 2:19 am
Maybe an issue, or maybe not. ##temp_table is a global table, so concurrent executes will share the same table. Perhaps it's just as well to make it a permanent table...
April 11, 2006 at 2:14 am
They also go by the name 'derived tables'.
You can find a good explanation here http://www.sqlservercentral.com/columnists/rmarda/derivedtablebasics_printversion.asp
/Kenneth
April 10, 2006 at 8:12 am
Can't help much on the DTS part, unfortunately, but if this is a simple task like picking data from one table and inserting them into another on the same server,...
April 10, 2006 at 2:55 am
I'm sorry, it should have read like this to be (hopefully) a bit clearer..
select sum(x.c) as totalCount
from (
select count(*) as...
April 10, 2006 at 1:00 am
Almost there, you just need a pair of parenthesis
Declare @numRows int
select @numrows = (select count
April 7, 2006 at 5:38 am
Here's one way....
select sum(c) as totalCount
from (
select count(*) as c from table1
union all
select count(*) as c from table2
) x
/Kenneth
April 7, 2006 at 5:24 am
There are many reasons to abandon the 'old' syntax and convert to the 'new' ANSI syntax, both subjective and objective ones.
For equi-joins (inner) there is no functional difference. The old...
April 6, 2006 at 8:17 am
As well noted, there are different kinds of 'performance', and different ways to measure it.
As I see it, there are two kinds that sometimes get mixed up, but I believe...
April 5, 2006 at 12:49 am
Viewing 15 posts - 541 through 555 (of 1,554 total)