Viewing 15 posts - 5,626 through 5,640 (of 7,164 total)
Revenant (7/6/2011)
opc.three (7/6/2011)
...even with the nested loops introduced by the CTE I just posted I am not sure I would choose the cursor method you posted over them
Yes, RBAR...
There are no special teachers of virtue, because virtue is taught by the whole community.
--Plato
July 6, 2011 at 1:11 pm
kingrudedog (7/6/2011)
There are no special teachers of virtue, because virtue is taught by the whole community.
--Plato
July 6, 2011 at 1:08 pm
Revenant (7/6/2011)
There are no special teachers of virtue, because virtue is taught by the whole community.
--Plato
July 6, 2011 at 1:01 pm
I think he was asking why you don't refactor your tables. Your comment is where I was headed. Here is what I came up with:
IF EXISTS ( SELECT *
...
There are no special teachers of virtue, because virtue is taught by the whole community.
--Plato
July 6, 2011 at 12:52 pm
Cool. Thanks for posting back. It's nice to hear the direction after the questions are answered and a decision is made 🙂
There are no special teachers of virtue, because virtue is taught by the whole community.
--Plato
July 6, 2011 at 12:27 pm
There is no security table in your sample script :ermm:
No matter though. Here is your insert reformatted:
-- insert statement
INSERT INTO VimasProFast1
SELECT...
There are no special teachers of virtue, because virtue is taught by the whole community.
--Plato
July 6, 2011 at 12:23 pm
Here is the fastest known method:
http://www.sqlservercentral.com/articles/T-SQL/68467/%5B/url%5D
There are no special teachers of virtue, because virtue is taught by the whole community.
--Plato
July 6, 2011 at 12:08 pm
I have used all three you mentioned and IMHO TFS is the best fit for you mainly because of the development environment integration it offers into BIDS and the testing...
There are no special teachers of virtue, because virtue is taught by the whole community.
--Plato
July 6, 2011 at 11:46 am
You could continue to use SSIS but change your source to a query like this:
SELECT *,
NULL AS LastColumn
FROM ...
There are no special teachers of virtue, because virtue is taught by the whole community.
--Plato
July 6, 2011 at 11:36 am
Which jdbc driver are you using? And can you post the code for the temporary stored proc?
(@P0 bigint, @P1 datetime)EXEC Test_db1.dbo.sp_CreateDynamic @P0, @P1
</curious>
There are no special teachers of virtue, because virtue is taught by the whole community.
--Plato
July 6, 2011 at 11:32 am
It sounds like you want to know the row in the database that corresponds to the first line in the file, and the second, and so on. To do that...
There are no special teachers of virtue, because virtue is taught by the whole community.
--Plato
July 6, 2011 at 11:15 am
greg.bull (7/6/2011)
Not really, it wouldn't be a problem when plotting as a visualisation.
I only asked because if you are not interested in pulling a complete set of deciles from SQL...
There are no special teachers of virtue, because virtue is taught by the whole community.
--Plato
July 6, 2011 at 10:58 am
Uggh...I thought about this a few different ways, maybe normalizing your Xref table a bit more, maybe running different queries based on inputs that would only join to a subset...
There are no special teachers of virtue, because virtue is taught by the whole community.
--Plato
July 6, 2011 at 10:43 am
Another tricky (not intuitive) thing with Booleans in SSIS when coming from T-SQL is that you do not need to do any equality test. Consider something that looks like this:
@IsHoliday...
There are no special teachers of virtue, because virtue is taught by the whole community.
--Plato
July 6, 2011 at 10:24 am
See if something like this works for you:
CREATE TABLE #tmp (errorcount INT) ;
DECLARE @sql NVARCHAR(MAX) ;
SET @sql = 'select 1 as errorcount;'
INSERT INTO #tmp
...
There are no special teachers of virtue, because virtue is taught by the whole community.
--Plato
July 6, 2011 at 10:14 am
Viewing 15 posts - 5,626 through 5,640 (of 7,164 total)