Click here to monitor SSC
SQLServerCentral is supported by Redgate
 
Log in  ::  Register  ::  Not logged in
 
 
 


SQL 2000 DBA Toolkit Part 3


SQL 2000 DBA Toolkit Part 3

Author
Message
Mike C
Mike C
UDP Broadcaster
UDP Broadcaster (1.5K reputation)UDP Broadcaster (1.5K reputation)UDP Broadcaster (1.5K reputation)UDP Broadcaster (1.5K reputation)UDP Broadcaster (1.5K reputation)UDP Broadcaster (1.5K reputation)UDP Broadcaster (1.5K reputation)UDP Broadcaster (1.5K reputation)

Group: General Forum Members
Points: 1475 Visits: 1168
Comments posted to this topic are about the content posted at http://www.sqlservercentral.com/columnists/mcoles/sql2000dbatoolkitpart3.asp
Mike C
Mike C
UDP Broadcaster
UDP Broadcaster (1.5K reputation)UDP Broadcaster (1.5K reputation)UDP Broadcaster (1.5K reputation)UDP Broadcaster (1.5K reputation)UDP Broadcaster (1.5K reputation)UDP Broadcaster (1.5K reputation)UDP Broadcaster (1.5K reputation)UDP Broadcaster (1.5K reputation)

Group: General Forum Members
Points: 1475 Visits: 1168

Further reading resources

(forgot these in the article - sorry!):

Daitch-Mokotoff Soundex: http://www.avotaynu.com/soundex.html

Double Metaphone: http://www.ddj.com/184401251?pgno=2

Celko Improved Soundex: http://books.elsevier.com/bookscat/links/details.asp?isbn=1558605762

NYSIIS: http://www.dropby.com/NYSIIS.html

Jaro-Winkler: http://www.dcs.shef.ac.uk/~sam/stringmetrics.html#jarowinkler

Levenshtein Edit Distance: http://www.dcs.shef.ac.uk/~sam/stringmetrics.html#Levenshtein

Also a minor correction to the text of the article.

The article states that the Daitch-Mokotoff algorithm returns:

"...all-numeric values between 100000 and 999999"

This should read:

"...all-numeric values between 000000 and 999999"


henrik staun poulsen
henrik staun poulsen
SSCommitted
SSCommitted (1.9K reputation)SSCommitted (1.9K reputation)SSCommitted (1.9K reputation)SSCommitted (1.9K reputation)SSCommitted (1.9K reputation)SSCommitted (1.9K reputation)SSCommitted (1.9K reputation)SSCommitted (1.9K reputation)

Group: General Forum Members
Points: 1873 Visits: 1212

Mike,

Thank you very much for sharing these functions with us. We have a SQL 2005 Server where the Levenshtein Edit Distance function may be useful. What are the chances for this? Is it possible to purchase the source code, so that we can upgrade it?

Best regards

Henrik Staun Poulsen





Mike C
Mike C
UDP Broadcaster
UDP Broadcaster (1.5K reputation)UDP Broadcaster (1.5K reputation)UDP Broadcaster (1.5K reputation)UDP Broadcaster (1.5K reputation)UDP Broadcaster (1.5K reputation)UDP Broadcaster (1.5K reputation)UDP Broadcaster (1.5K reputation)UDP Broadcaster (1.5K reputation)

Group: General Forum Members
Points: 1475 Visits: 1168

Hi Henrik,

I sent you a message here on SSC. If I didn't answer your questions fully, feel free to contact me directly via email.

Thanks


Mike C
Mike C
UDP Broadcaster
UDP Broadcaster (1.5K reputation)UDP Broadcaster (1.5K reputation)UDP Broadcaster (1.5K reputation)UDP Broadcaster (1.5K reputation)UDP Broadcaster (1.5K reputation)UDP Broadcaster (1.5K reputation)UDP Broadcaster (1.5K reputation)UDP Broadcaster (1.5K reputation)

Group: General Forum Members
Points: 1475 Visits: 1168

FYI to Everyone:

Steve has made the source code (VC++ 7.1 solution) for this project available in a ZIP file from http://www.sqlservercentral.com/products/mcoles/default.asp.

Compilation of some parts requires Boost Library source (in particular the Regular Expression extended procedures require Boost). Boost source is available for free download at http://www.boost.org/.

If you do download and compile the source, I highly recommend downloading the latest Platform SDK from http://www.microsoft.com/downloads/details.aspx?FamilyId=A55B6B43-E24F-4EA3-A93E-40C0EC4F68E5&displaylang=en.

I've also been asked several times about the license for this toolkit. Here it is:

DBA Toolkit License

The DBA Toolkit is composed of my original source code, and/or other source code that the original authors have placed in the public domain. Credit has been given throughout the source code to those original authors, and their original licensing agreements have been maintained in the source code where appropriate.

You are free to use this source code and binaries however you want, modify it however you like, and use it for any purpose you like, personal or commercial. All I ask is two things:

1. If you redistribute the source code, modified or unmodified, give me a shout out in the comments or something

2. If you do something really cool and make big and/or useful improvements, consider sharing it with the rest of the world (this is not mandatory, but it is the nice thing to do). I'm particularly interested in the improvements people make to the source, and always appreciate the feedback.

Obviously the Boost Library is covered by Boost's own licensing agreement which you will need to observe if you decide to use the portions of code that interface with it (the Regular Expression functionality). And Microsoft has their own licensing agreements you might need to review when before distributing programs compiled using the Platform SDK.


Dave Frankson
Dave Frankson
Forum Newbie
Forum Newbie (2 reputation)Forum Newbie (2 reputation)Forum Newbie (2 reputation)Forum Newbie (2 reputation)Forum Newbie (2 reputation)Forum Newbie (2 reputation)Forum Newbie (2 reputation)Forum Newbie (2 reputation)

Group: General Forum Members
Points: 2 Visits: 3

In the NYSIIS algorithm I am getting what I believe is an incorrect result. The algorithm states:

1.Transcode first characters of name:
MAC»MCC
KN»NN
K»C
PH»FF
PF»FF
SCH»SSS

But in my results, it doesn't look like the K is being replaced.

select dbo.fn_phon_nysiis('Karen'), dbo.fn_phon_nysiis('Caren')

-------- --------

KARAN CARAN

(1 row(s) affected)


Mike C
Mike C
UDP Broadcaster
UDP Broadcaster (1.5K reputation)UDP Broadcaster (1.5K reputation)UDP Broadcaster (1.5K reputation)UDP Broadcaster (1.5K reputation)UDP Broadcaster (1.5K reputation)UDP Broadcaster (1.5K reputation)UDP Broadcaster (1.5K reputation)UDP Broadcaster (1.5K reputation)

Group: General Forum Members
Points: 1475 Visits: 1168

Hi Dave,

I was able to confirm the issue and fix it. I've resubmitted the recompiled binaries and the fixed source code to Steve and asked him to repost. I also sent you a private message, in case you want me to send the ZIP file directly to you.

Thanks

Michael


Conor O Doherty
Conor O Doherty
Forum Newbie
Forum Newbie (1 reputation)Forum Newbie (1 reputation)Forum Newbie (1 reputation)Forum Newbie (1 reputation)Forum Newbie (1 reputation)Forum Newbie (1 reputation)Forum Newbie (1 reputation)Forum Newbie (1 reputation)

Group: General Forum Members
Points: 1 Visits: 14
Does this work with MSSQL x64?



Mike C
Mike C
UDP Broadcaster
UDP Broadcaster (1.5K reputation)UDP Broadcaster (1.5K reputation)UDP Broadcaster (1.5K reputation)UDP Broadcaster (1.5K reputation)UDP Broadcaster (1.5K reputation)UDP Broadcaster (1.5K reputation)UDP Broadcaster (1.5K reputation)UDP Broadcaster (1.5K reputation)

Group: General Forum Members
Points: 1475 Visits: 1168

Hi Conor,

I didn't compile it on x64, but the source code is available for download here: http://www.sqlservercentral.com/products/mcoles/default.asp. If you download and compile the source code targeted for x64, I don't know of any reason it shouldn't work. If you decide to test it on x64, I'd be interested in your results.

Thanks

Michael


pmarcozzi
pmarcozzi
Forum Newbie
Forum Newbie (1 reputation)Forum Newbie (1 reputation)Forum Newbie (1 reputation)Forum Newbie (1 reputation)Forum Newbie (1 reputation)Forum Newbie (1 reputation)Forum Newbie (1 reputation)Forum Newbie (1 reputation)

Group: General Forum Members
Points: 1 Visits: 14
Great Article.

The link for downloading the source doe is not working:
http://www.sqlservercentral.com/products/mcoles/default.asp

Any chance this code can be reposted.
Go


Permissions

You can't post new topics.
You can't post topic replies.
You can't post new polls.
You can't post replies to polls.
You can't edit your own topics.
You can't delete your own topics.
You can't edit other topics.
You can't delete other topics.
You can't edit your own posts.
You can't edit other posts.
You can't delete your own posts.
You can't delete other posts.
You can't post events.
You can't edit your own events.
You can't edit other events.
You can't delete your own events.
You can't delete other events.
You can't send private messages.
You can't send emails.
You can read topics.
You can't vote in polls.
You can't upload attachments.
You can download attachments.
You can't post HTML code.
You can't edit HTML code.
You can't post IFCode.
You can't post JavaScript.
You can post emoticons.
You can't post or upload images.

Select a forum

































































































































































SQLServerCentral


Search