Forum Replies Created

Viewing 15 posts - 31 through 45 (of 60 total)

  • RE: How to remove duplicates from column without using Temp table

    Jeff Moden (6/17/2011)


    Sriram.RM (6/16/2011)


    u might wanna try this!!!!

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

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

  • RE: kinly give reply as early as possible

    Hi..

    Firstly... it would be great if you can give the DDL scripts for the tables along with relations/indices etc. and the scripts to insert the...

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

  • RE: How to remove duplicates from column without using Temp table

    u might wanna try this!!!!

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

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

  • RE: Need to show status change indicator

    Sorry for the delay in reply... u can use the query i posted earlier to achieve the same result... made some modifications to it...

    DECLARE @FLAG INT

    DECLARE @CLUB_ID INT

    DECLARE @status VARCHAR(15)

    UPDATE...

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

  • RE: Update a record based on another record

    you can use Upper()/Lower() function to overcome issues related case sensitive issues or look at collation...

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

  • RE: I've been away from SQL Server for several years ....

    you can check this out

    link to get the features/differences of various editions...

    I believe you should have come across this already...

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

  • RE: Is it Possible to get a session values in sql server?

    Im not sure where do you want to use session values from the .net code... you want to pass it to some procedure or to a query?

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

  • RE: To validate the column with only alphabets

    Not sure what he actually wanted.:doze:.. i just modified the query what he had given... :hehe:

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

  • RE: To validate the column with only alphabets

    your query would not find if it contains special charecters.... try this..

    SELECT COUNT(*) VAL2 FROM

    (

    SELECT COLUMN_NAME FROM TABLE_NAME WHERE (C1 NOT LIKE '%[^A-Z]%'...

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

  • RE: adding preyear column besides year column

    In case you require it in the table structure, you can go for computed columns... more details from MSDN

    http://msdn.microsoft.com/en-us/library/ms191250.aspx

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

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

    My bad.. Missed it out somehow...:(

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

  • RE: OLD is GOLD

    same article quoted by 2 people with a time difference of one min!!!

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

  • RE: OLD is GOLD

    Please see the article below written by Jeff Moden on running totals...

    http://www.sqlservercentral.com/articles/T-SQL/68467/

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

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

    found a work around..... thought might be helpful to others.

    Add an empty result set at the top with the same structure as the select statement, this will return the metadata...

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

  • RE: Passing a value into a Stored Procedure using an OUTPUT parameter

    Aplogies.. removed the post... read it wrong...

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

Viewing 15 posts - 31 through 45 (of 60 total)