Forum Replies Created

Viewing 14 posts - 46 through 60 (of 60 total)

  • RE: Help with CASE statement

    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 ''...

    [font="Times New Roman"]For better assistance in answering your questions
    Click Here[/url][/font]

  • RE: Need to show status change indicator

    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...

    [font="Times New Roman"]For better assistance in answering your questions
    Click Here[/url][/font]

  • RE: Need to show status change indicator

    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 INT

    DECLARE @status...

    [font="Times New Roman"]For better assistance in answering your questions
    Click Here[/url][/font]

  • RE: (OLEDB Source) no Column returns from the code

    Thanks for the insight...

    [font="Times New Roman"]For better assistance in answering your questions
    Click Here[/url][/font]

  • RE: (OLEDB Source) no Column returns from the code

    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...

    [font="Times New Roman"]For better assistance in answering your questions
    Click Here[/url][/font]

  • RE: (OLEDB Source) no Column returns from the code

    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 *...

    [font="Times New Roman"]For better assistance in answering your questions
    Click Here[/url][/font]

  • RE: From TableA, TableB. Whats happening here?

    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...

    [font="Times New Roman"]For better assistance in answering your questions
    Click Here[/url][/font]

  • RE: TSQL - want to get count of other column...how to

    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...

    [font="Times New Roman"]For better assistance in answering your questions
    Click Here[/url][/font]

  • RE: Parse the dependency chain of an object

    If i more than 4 levels of nesting in the objects with dependencies the proc doesn work... any other alternatives?

    [font="Times New Roman"]For better assistance in answering your questions
    Click Here[/url][/font]

  • RE: Time Bomb Coding

    "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...

    [font="Times New Roman"]For better assistance in answering your questions
    Click Here[/url][/font]

  • RE: Time Bomb Coding

    Excellent article... Especially the list!!!!

    [font="Times New Roman"]For better assistance in answering your questions
    Click Here[/url][/font]

  • RE: Time Bomb Coding

    Excellent article... Especially the list!!!!

    [font="Times New Roman"]For better assistance in answering your questions
    Click Here[/url][/font]

  • RE: Transposing the data in the table

    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 ...

    [font="Times New Roman"]For better assistance in answering your questions
    Click Here[/url][/font]

  • RE: delete repeated rows

    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...

    [font="Times New Roman"]For better assistance in answering your questions
    Click Here[/url][/font]

Viewing 14 posts - 46 through 60 (of 60 total)