I have this query that I run and it runs correctly. But when I create a view with it (the view runs correctly) and then script it back out to the query grid, it adds extra quote single marks ('). The script that was scripted out will then not run until I find out what was wrong. It was confusing at first. Is there a way to avoid this. Here is my script. I have duplicated the lines in red the way they come back when being scripted out. As you can see, they are definitely changed:SELECT [ResourceID] ,[ComputerName] ,[PrimaryUser] ,RIGHT(PrimaryUser,LEN(PrimaryUser)- charindex('\',PrimaryUser,1)) PrimaryUserShort ,[EmployeeNumber] ,[EMPLID] ,[UserFullName] ,[UserGivenName] FirstName ,[UserSurname] LastNameFROM [SoftwareReporting].[dbo].[General_Info_PM]WHERE LEN(RIGHT(PrimaryUser,LEN(PrimaryUser)- CHARINDEX('\',PrimaryUser,1))) = 7 AND SUBSTRING(RIGHT(PrimaryUser,LEN(PrimaryUser)- CHARINDEX('\',PrimaryUser,1)),2,1) BETWEEN '1' and '9'AND substring(RIGHT(PrimaryUser,LEN(PrimaryUser)- charindex('\',PrimaryUser,1)),1,1) BETWEEN 'A' and 'Z'AND nullif(EMPLID,'') IS NOT NULL-- Now, the way it comes back:SELECT [ResourceID] ,[ComputerName] ,[PrimaryUser] ,RIGHT(PrimaryUser,LEN(PrimaryUser)- charindex(''\'',PrimaryUser,1)) PrimaryUserShort ,[EmployeeNumber] ,[EMPLID] ,[UserFullName] ,[UserGivenName] FirstName ,[UserSurname] LastNameFROM [SoftwareReporting].[dbo].[General_Info_PM]WHERE LEN(RIGHT(PrimaryUser,LEN(PrimaryUser)- CHARINDEX(''\'',PrimaryUser,1))) = 7 AND SUBSTRING(RIGHT(PrimaryUser,LEN(PrimaryUser)- CHARINDEX(''\'',PrimaryUser,1)),2,1) BETWEEN ''1'' and ''9''AND substring(RIGHT(PrimaryUser,LEN(PrimaryUser)- charindex(''\'',PrimaryUser,1)),1,1) BETWEEN ''A'' and ''Z''AND nullif(EMPLID,'''') IS NOT NULLThis is very inconvenient at best and could be very confusing especially the first time around. I have not included the actual create view lines here. Also, I attempted to put a comment in there with the correct syntax and it even added quotes to the comment. Thank you for any help in this.Duane