Hi,
I'm running a simple view which has one function yo strip out spaces from a postcode. The pertinent part is:
CREATE VIEW dbo.nospace
AS
SELECT CONTACT1.*,
{ fn REPLACE(ZIP, ' ', '') } AS shrunkZIP
FROM CONTACT1
In the table, ZIP is only 10 characters in length, however, in query analyser, the returned shrunkZIP from the view is 255 characters in length. Which is really confusing an access2000 query which is linking to the database.
Any ideas why it may be doing this and ways to bring the length back down again?
Thanks
I'm running a simple view which has one function yo strip out spaces from a postcode. The pertinent part is:
CREATE VIEW dbo.nospace
AS
SELECT CONTACT1.*,
{ fn REPLACE(ZIP, ' ', '') } AS shrunkZIP
FROM CONTACT1
In the table, ZIP is only 10 characters in length, however, in query analyser, the returned shrunkZIP from the view is 255 characters in length. Which is really confusing an access2000 query which is linking to the database.
Any ideas why it may be doing this and ways to bring the length back down again?
Thanks