Viewing 14 posts - 46 through 59 (of 59 total)
As per my intepretation of your question iv written this snippet..
hope it helps..
CREATE TABLE #ACCT(ACCOUNTID NVARCHAR(50),VALUE INT IDENTITY(1,1))
INSERT INTO #ACCT(ACCOUNTID)
SELECT '' UNION ALL
SELECT '' UNION ALL
SELECT '' UNION ALL
SELECT ''...
May 30, 2011 at 11:55 pm
if you have the ORG_STATUS_CHANGE_IND column in your table you can directly use it in an Execute SQL task and use a select statement in the oledb source to load...
May 30, 2011 at 6:11 am
This Should help... Used Jeff Moden's running total method mentioned in the below mentioned article.
http://www.sqlservercentral.com/articles/T-SQL/68467/
SELECT *,0 AS [ORG_STATUS_CHANGE_IND] INTO #TMP FROM D_ORG_TEST ORDER BY 5
DECLARE @FLAG INT
DECLARE @CLUB_ID...
May 30, 2011 at 5:37 am
Thanks for the insight...
May 30, 2011 at 12:14 am
Thanks Koen for your reply.. however im not in a position to go for an alternative method in this case... and after breaking my head with that issue i found...
May 29, 2011 at 11:36 pm
Im facing a similar issue as well... Im calling a SP inside an OLEDB source and the structure of the SP goes like this..
Create proc usp_procforssis
as
begin
Exec USP_Logwrite @param1,@param2,@param3
Select *...
May 29, 2011 at 10:46 pm
to add.... These types of queries have variations, eg:
Select a.*,b.* from
TableA a,TableB b
where a.ColName *= b.ColName --"*=" implies a left outer join and "=*' implies a right outer...
May 25, 2011 at 3:02 am
It would be great if there was more information. for example, the table structure of "tasks" and some sample data.
Please see the article for more information on best practices...
May 25, 2011 at 12:14 am
If i more than 4 levels of nesting in the objects with dependencies the proc doesn work... any other alternatives?
February 15, 2010 at 2:27 am
"Catch all Lookup tables are the bane of my life.
I've lost count of how many times I've had to write queries which join to the same lookup table 10 or...
February 10, 2010 at 6:02 am
this is a better option... this works well for 3 columns... was developed by my friend.... good one...
create the below table
PIVOTTABLE
Col1varchar(100)
col2varchar(100)
Col3varchar(100)
create Proc Usp_PivotRep ...
August 29, 2008 at 8:15 am
Even this works....
SET ROWCOUNT 1
DELETE YOURTABLE
FROM YOURTABLE A WHERE (SELECT COUNT(*) FROM YOURTABLE B WHERE A.COLNAME=B.COLNAME) >1
WHILE @@ROWCOUNT >0
DELETE YOURTABLE
FROM YOURTABLE A WHERE (SELECT COUNT(*) FROM YOURTABLE B WHERE A.COLNAME=B.COLNAME...
August 29, 2008 at 7:55 am
Viewing 14 posts - 46 through 59 (of 59 total)