Hi,
I'm using SQL Server 2005 Express SP1 & Mgmt Studio express.
I'm trying to use the script output to track my db changes in source code mgmt, but when I output a table to a script the first two bytes of the "text" file are 0xFF and 0xFE which sends my SCM into storingthe file in binary defeating the purpose of storing text files I can "diff" to see the changes.
Does anyone know why the mgmt studio is doing this and is there a way to stop it?
thanks!
Management Studio creates UNICODE files so characters from all alphabets can be represented in the same file. Your SCM system is probably interpretting the UNICODE signature at the top of the file as being "binary."
If you are scripting to a Query Editor Window, you can save the script as an ASCII file by clicking File | Save As... and clicking the little pull-down arrow on the right side of the save button to select the file type. US-ASCII is toward the bottom of the list.
Hope this helps,
Steve
Thanks! This was helpful and it explains the situation.
I'm working around it by the copy & paste method you mention while I deal with the SCM issue.
It's interesting that SQL Server Mgmt Studio uses unicode BOM and Visual Studio uses utf-8 for it's configuration files, so the SCM has to deal with the many "standards" of unicode...
life was not mean't to be easy...
No comments:
Post a Comment