Viewing 14 posts - 1 through 14 (of 14 total)
Agree much less costly to just do a if exists (select top 1 from tablename)
April 10, 2015 at 2:35 pm
I just noticed you are using the import/export wizard which I have never had luck with working right. I have always had to edit the package afterwards and go...
April 10, 2015 at 2:13 pm
Is the source a table or a query?
April 10, 2015 at 2:08 pm
I use a slightly different query. I like to get the rows from the sys.dm_db_partition_stats
SELECT
so.name as TableName
,ps.row_count as TotalRows
FROM sys.dm_db_partition_stats ps
LEFT JOIN sys.objects so
ON ps.object_id=so.object_id
WHERE
so.name='TableName'
and ps.index_id =...
April 10, 2015 at 2:04 pm
Here you go
declare @test-2 varchar(20)
set @test-2 ='30/04/2015 23:59:59'
select CONVERT(datetime, @test-2,103)
April 8, 2015 at 7:46 am
In that case I would change the script task to be a script source component in the data flow task. That way the output from the webservice would already...
March 4, 2015 at 1:08 pm
Are you only inserting a single row that is just values stored in package variables?
March 4, 2015 at 12:53 pm
You can use a derived column task and use an expression like this where [date] is the column name
(DT_WSTR,4)YEAR((DT_DATE)[date]) + "/" + RIGHT("0" + (DT_WSTR,2)MONTH((DT_DATE)[date]),2) + "/" + RIGHT("0" +...
February 19, 2015 at 9:04 am
What is the data type of the column coming from the test file?
February 19, 2015 at 8:45 am
SSIS can do this. Performance will depend on how many columns your are comparing? Are you just trying to do a join on keys or is it a...
February 4, 2015 at 2:10 pm
You might want to check out Aaron Betrand's article on dynamic PIVOT.
http://www.mssqltips.com/sqlservertip/2783/script-to-create-dynamic-pivot-queries-in-sql-server/
February 3, 2015 at 7:21 am
Depending on how you are trying to use the values the more appropriate variable may be a Table Variable and something like this.
DECLARE @w_man TABLE (
[Name] Varchar(50)
);
INSERT INTO @w_man ([Name])
SELECT...
January 28, 2015 at 9:56 am
Kevin,
I guess it's out of habit when working with fields and searching for actual text and wanting to eliminate white space from the beginning and end. No real purpose...
January 16, 2015 at 1:22 pm
when you cut and pasted did you put it into an editor that can show ASCII characters? Just want to make sure there isn't something like a CR...
January 16, 2015 at 12:45 pm
Viewing 14 posts - 1 through 14 (of 14 total)