Please start any new threads on our new site at https://forums.sqlteam.com. We've got lots of great SQL Server experts to answer whatever question you can come up with.

 All Forums
 SQL Server 2000 Forums
 SQL Server Development (2000)
 address parser

Author  Topic 

cbeganesh
Posting Yak Master

105 Posts

Posted - 2008-10-08 : 10:33:10
does anybody have any code to parse an address
example: 111 MAIN STREET should parse 111 into street number field and MAIN into street name field and STREET should go to street suffix field.
Address can also include post and pre direction
example
275 w main st

visakh16
Very Important crosS Applying yaK Herder

52326 Posts

Posted - 2008-10-08 : 10:35:02
What all will be formats in which address comes? will they be consistent?
Go to Top of Page

cbeganesh
Posting Yak Master

105 Posts

Posted - 2008-10-08 : 10:47:12
the address will not be the same
examples are
585 GARYS DR
1224 MAIN ST APT 2C
45 W OLD MILL TRL
40480 N LAKE SHORE DR
791 ANITA AVE APT 201
292 ANITA TER APT 202
801 RINEAR RD

Go to Top of Page

visakh16
Very Important crosS Applying yaK Herder

52326 Posts

Posted - 2008-10-08 : 10:49:57
which column should W,N,... go?
Go to Top of Page

cbeganesh
Posting Yak Master

105 Posts

Posted - 2008-10-08 : 11:05:31
585 GARYS DR -> 585 into street no, GARYS into street name
1224 MAIN ST APT 2C-> 1224 into street no, MAIN into street name,
45 W OLD MILL TRL -> 45 into street no, OLD MILL into street name
40480 N LAKE SHORE DR -> 40480 into street no, LAKE SHORE into street name
791 ANITA AVE APT 201-> 791 into street no, ANITA into street name,
801 RINEAR RD -> 801 into street no, RINEAR into street name
I need only the street no and street name into fields, remaining i can ignore
Go to Top of Page
   

- Advertisement -