Wrox Programmer Forums
Go Back   Wrox Programmer Forums > SQL Server > SQL Server 2000 > SQL Server 2000
|
SQL Server 2000 General discussion of Microsoft SQL Server -- for topics that don't fit in one of the more specific SQL Server forums. version 2000 only. There's a new forum for SQL Server 2005.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the SQL Server 2000 section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old April 23rd, 2006, 09:52 PM
Registered User
 
Join Date: Apr 2006
Posts: 4
Thanks: 0
Thanked 0 Times in 0 Posts
Default string function in sql verver 2000

greetings,

i would like to ask how to implement string fucntion ove sql server 2000.

i am more on using c language, which have a built in function like strcmp(). instead i find out there's also some built in string function at sql server.

the motive i would like to use string compare is i am merging two similiar replicate table for data integrity.

case1:
let say same vendorid (universal PK), but diffrent description name allocate.

table1 table2
vendorid name vendorid name
A001 abc.com A001 abc.com
A002 abd.com A002 abe.com
A003 aaa.com A003 aaaa.com


i can used len() function to compare the length of any unmatch underlying the name column. (just like example shown at A003)

what if the lenght of the name is equal but with diffrent name description? i want to compare by each character underlying the name column. my concept is just like comparing each character at the array .

idea just like:
comparing
table.1name[n] = table2.name[n]
/*(example A002's abd.com && abe.com; i would like return those tuple which detected the 3rd char is different)*/

where table1.vendorid = table2.vendorid

any function in sql server 2000 can perform this action?

thank you






Similar Threads
Thread Thread Starter Forum Replies Last Post
Sql Server 2000 Connection String ricpue BOOK: ASP.NET 2.0 Website Programming Problem Design Solution ISBN: 978-0-7645-8464-0 1 July 5th, 2006 05:26 PM
looking for access 2000 to sql server 2000 sql/que method SQL Server 2000 0 July 7th, 2005 12:46 PM
sql server 2000 connection string nikotromus Access VBA 6 February 13th, 2005 10:01 PM
SQL SERVER 2000 AND ACCESS 2000 ckentebe SQL Server 2000 3 June 17th, 2004 08:50 PM
Windows 2000 and SQL 2000 in Korean Language mipo SQL Server 2000 0 February 19th, 2004 12:50 PM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.