> SELECT (SELECT [my complex query]) INTO myNewTable FROM
???
on second thought, that wouldn't work.
A bit more background:
We have two servers, one internal, one external.
The internal one has 5 tables that we are using to track some
data.
We need to make a copy of this for the public, but need to
filter it as much
of the data is private data.
What we have been doing is using a DTS package to make a
complex query of
joins and unions on the 5 tables and sending it out to the
public server as
a single table.
The problem is that this DTS package is failing on occasion
sans any errors.
So we can't really figure out what the issue may be.
As a workaround, I'm rewriting the DTS package as a stored
procedure that
will then be triggered manually.
Maybe that's too much info. ;o)
_Darrel