I am converting an Access 2000 database to SQL / VB. I am new to SQL and Crystal so forgive me if this is an easy question. All my searches here didn't turn up what I was looking for.
My SQL database stores phone numbers as 1234567890. I would like them displayed as (123)456-7890 on my crystal reports. Do I need to do this in my Stored Proc? If so how do I select a field and format it on the fly?
Example
********Stored Proc***************
CREATE PROCEDURE sp_Information
@CustID INT
AS
SELECT *
FROM
viewPatientInformation
WHERE
CustID = @CustID
GO
********Views***************
SELECT (whole lot of fields), PhoneNumber FROM ztblSomeTable
How do I get the PhoneNumber field displayed with formatting?
My SQL database stores phone numbers as 1234567890. I would like them displayed as (123)456-7890 on my crystal reports. Do I need to do this in my Stored Proc? If so how do I select a field and format it on the fly?
Example
********Stored Proc***************
CREATE PROCEDURE sp_Information
@CustID INT
AS
SELECT *
FROM
viewPatientInformation
WHERE
CustID = @CustID
GO
********Views***************
SELECT (whole lot of fields), PhoneNumber FROM ztblSomeTable
How do I get the PhoneNumber field displayed with formatting?