Here is my original view. Please note that Field1 and Field2 are of type varchar(5) and varchar(100) respectively:
CREATE VIEW [dbo].[myView]
AS
SELECT Field1,
Field2
FROM Table1
Here is what I modified my view to and what worked for me:
CREATE VIEW [dbo].[myView]
AS
SELECT CAST(Field1 As Varchar(50)) as Field1,
CAST (Field2 as Varchar(100)) As Field2
FROM Table1
No comments:
Post a Comment