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
 Transact-SQL (2000)
 divide phone number

Author  Topic 

esthera
Master Smack Fu Yak Hacker

1410 Posts

Posted - 2006-05-26 : 03:26:02
I have a field called phone

how can i in my sp set

@areacode= first 3 digits
@phone3= next 3 digits
@phone = last 4 digits

jen
Master Smack Fu Yak Hacker

4110 Posts

Posted - 2006-05-26 : 03:29:13
use substring



--------------------
keeping it simple...
Go to Top of Page

madhivanan
Premature Yak Congratulator

22864 Posts

Posted - 2006-05-26 : 04:21:08
Read about substring in sql server help file

Madhivanan

Failing to plan is Planning to fail
Go to Top of Page
   

- Advertisement -