Forum Replies Created

Viewing 15 posts - 46 through 60 (of 620 total)

  • RE: Better Way to Perform this Query

    Alan.B

    I came up with this:

    -- strings to compare

    DECLARE@s1 varchar(8000)='diner',

    @s2 varchar(8000)='dinerr';

    DECLARE @Ld int=ABS(LEN(@s1)-LEN(@s2));

    IF ((@s1=@s2) OR ((ISNULL(LEN(@s1)*LEN(@s2),0)=0))) BEGIN GOTO LD END;

    DECLARE@minlen int=CASE WHEN LEN(@s1)>LEN(@s2) THEN LEN(@s2) ELSE LEN(@s1) END;

    ;WITH...

  • RE: Better Way to Perform this Query

    dwain.c

    I for one have never heard of this famous "Levenshtein Edit Distance" problem, but you can rest assured that now I'm going to have to take a look at it...

  • RE: TSQL for Financial Settlements

    Sridhar, maybe something like this will work for you. I think the desired output you posted does not match the data you provided, because it looks like, according to...

  • RE: query question

    scotdg (1/11/2013)

    Honestly I won't comment on the rest of your post because you come across as extremely arrogant even to go as far as correcting my typos

    You hit the nail...

  • RE: Has to Be a Better Way

    AndrewSQLDBA

    I ran across this bunch of crap written by a DB2 programmer, trying to write SQL Server code. He does not understand SLQ Server at all

    Andrew, I often have to...

  • RE: Access Excel Hyperlinks from SQL

    opc.three

    The C# code I provided does exactly that

    Ah, my bad then. I'm C# illiterate (and all flavors of C for that matter). Now that you pointed that out,...

  • RE: Better Way to Perform this Query

    Alan.B

    (just for fun because it's something I've never seen done

    Here, here brother. That's what its all about. Well, a lot of it anyway.

  • RE: SQL login

    I'm not certain, but I don't think SQL Server cares if you are a domain admin on your network, your network name will still have to be granted a SQL...

  • RE: Access Excel Hyperlinks from SQL

    Philip-1144230 (1/10/2013)the other two would require me to manually go through roughly 12000 excel files with a average of 15 worksheets each to extract the hyperlinks

    Philip, it sounds like you...

  • RE: Am not able to export 10 lakh records to excel sheet.

    ravi@sql (1/9/2013)I'll get sucess message but all data will not get copy to excel sheet .

    Ravi, when you say "all data will not get copy", do you mean the rows...

  • RE: Max Date from Unnormalized Table

    DevSteve (1/10/2013)


    Thanks Greg. Peter's solution is working for me, but I appreciate the input.

    When I tried your method I got an error. I realize I'm using...

  • RE: Max Date from Unnormalized Table

    DevSteve, I think Peter's got it wrapped up, but for some unknown reason I saw this as an unpivot problem. I would probably stick with what you already have,...

  • RE: Dropped connection during Excel VBA

    I would agree with Phil, especially if the data on the spreadsheet comes from manual entry by users. It would be relatively simple to test the datatypes of your...

  • RE: return zero for months where no data exsits

    Sean Lange (1/4/2013)


    I like the MySQL convention of using double zeroes for months and years, That is 'yyyy-mm-00' for a month within a year and 'yyyy-00-00' for the whole year....

  • RE: return zero for months where no data exsits

    Lowell (1/4/2013)


    you need a Calendar table of some sort which gives you the arraay of all possible months;

    from that you change your query to select from that table, and join...

Viewing 15 posts - 46 through 60 (of 620 total)