|
dev
newsgroups
|
|||||||||||||||||||||||
|
|||||||||||||||||||||||
Unicode encoding with SQL Management StudioWe have an environment that is a mixture of SQL 2000 and 2005. Most of my developers are switching over to use SQL Management Studio for both SQL 2005 and SQL 2000 (Relational Engine). We also use Visual Source Safe 6.0 for source code control. We're encountering problems with SQL Management Studio re-encoding documents to Unicode. We still need to retain backwards compatibility with VSS 6.0 and with the SQL 2000 tools. When things are in Unicode, we cannot use the "Diff" functions in VSS. (There's even some crusty old coders (me) who still use windiff!) I know the best answer is for us all to move to Team System which presumably wouldn't have any problems with Unicode. But that's not likely to happen in the foreseeable future. How can I use the SQL Management Studio but have it leave the encoding schemes of the SQL source code files in the original form MS-DOS/Code Page 850? Regards, Tom On the File menu select Save As. In the dialog that opens expand the
Save button and select Save with Encoding. Code page 850 is an available option. Andrew Watt MVP On Fri, 30 Jun 2006 10:16:51 -0500, Tom Huguelet <tomhug@spammenot_cdw.com> wrote: Show quote >Greetings all, > >We have an environment that is a mixture of SQL 2000 and 2005. Most of >my developers are switching over to use SQL Management Studio for both >SQL 2005 and SQL 2000 (Relational Engine). > >We also use Visual Source Safe 6.0 for source code control. We're >encountering problems with SQL Management Studio re-encoding documents >to Unicode. We still need to retain backwards compatibility with VSS >6.0 and with the SQL 2000 tools. When things are in Unicode, we cannot >use the "Diff" functions in VSS. (There's even some crusty old coders >(me) who still use windiff!) > >I know the best answer is for us all to move to Team System which >presumably wouldn't have any problems with Unicode. But that's not >likely to happen in the foreseeable future. > >How can I use the SQL Management Studio but have it leave the encoding >schemes of the SQL source code files in the original form MS-DOS/Code >Page 850? > >Regards, > >Tom Visual Sourcesafe 2005 is pretty much the same as VSS 6.0, but it adds
support for Unicode, if upgrading is an option. Paul Shapiro Show quote "Tom Huguelet" <tomhug@spammenot_cdw.com> wrote in message news:mgfaa21q4cnpq8a5fqdm3uusmoi9bgahcq@4ax.com... > Greetings all, > > We have an environment that is a mixture of SQL 2000 and 2005. Most of > my developers are switching over to use SQL Management Studio for both > SQL 2005 and SQL 2000 (Relational Engine). > > We also use Visual Source Safe 6.0 for source code control. We're > encountering problems with SQL Management Studio re-encoding documents > to Unicode. We still need to retain backwards compatibility with VSS > 6.0 and with the SQL 2000 tools. When things are in Unicode, we cannot > use the "Diff" functions in VSS. (There's even some crusty old coders > (me) who still use windiff!) > > I know the best answer is for us all to move to Team System which > presumably wouldn't have any problems with Unicode. But that's not > likely to happen in the foreseeable future. > > How can I use the SQL Management Studio but have it leave the encoding > schemes of the SQL source code files in the original form MS-DOS/Code > Page 850? > > Regards, > > Tom Tom Huguelet (tomhug@spammenot_cdw.com) writes:
> We have an environment that is a mixture of SQL 2000 and 2005. Most of The SQL 2000 tools can read Unicode files.> my developers are switching over to use SQL Management Studio for both > SQL 2005 and SQL 2000 (Relational Engine). > > We also use Visual Source Safe 6.0 for source code control. We're > encountering problems with SQL Management Studio re-encoding documents > to Unicode. We still need to retain backwards compatibility with VSS > 6.0 and with the SQL 2000 tools. And as Paul Shapiro said, so can SourceSafe 2005. What I like to add is that VSS 2005 is compatible with VSS 6. You probably need VSS 2005 to Add and Check in the file, or else it gets listed as binary. But VSS 6 can still read the database, as the format for the SoruceSafe database hasn't changed. > How can I use the SQL Management Studio but have it leave the encoding CP850? Do you like to hurt yourself? Stay away from that. Or do you need> schemes of the SQL source code files in the original form MS-DOS/Code > Page 850? compatibility with the 6.5 tools as well? Any say, as Andrew said, you can use Save With Encoding to resolve this. But I guess that if you open a CP850 file in Mgmt Studio, it will think it's ANSI, and you will get a mess... -- Erland Sommarskog, SQL Server MVP, esq***@sommarskog.se Books Online for SQL Server 2005 at http://www.microsoft.com/technet/prodtechnol/sql/2005/downloads/books.mspx Books Online for SQL Server 2000 at http://www.microsoft.com/sql/prodinfo/previousversions/books.mspx Thank you Andrew, Paul, and Erland, for the tips and information.
<<CP850? Do you like to hurt yourself? Stay away from that. Or do you need compatibility with the 6.5 tools as well?>> Right you are. I meant Code Page 1252. Regards, Tom On Fri, 30 Jun 2006 22:43:59 +0000 (UTC), Erland Sommarskog <esq***@sommarskog.se> wrote: Show quote >Tom Huguelet (tomhug@spammenot_cdw.com) writes: >> We have an environment that is a mixture of SQL 2000 and 2005. Most of >> my developers are switching over to use SQL Management Studio for both >> SQL 2005 and SQL 2000 (Relational Engine). >> >> We also use Visual Source Safe 6.0 for source code control. We're >> encountering problems with SQL Management Studio re-encoding documents >> to Unicode. We still need to retain backwards compatibility with VSS >> 6.0 and with the SQL 2000 tools. > >The SQL 2000 tools can read Unicode files. > >And as Paul Shapiro said, so can SourceSafe 2005. What I like to add is >that VSS 2005 is compatible with VSS 6. You probably need VSS 2005 to >Add and Check in the file, or else it gets listed as binary. But VSS 6 >can still read the database, as the format for the SoruceSafe database >hasn't changed. > >> How can I use the SQL Management Studio but have it leave the encoding >> schemes of the SQL source code files in the original form MS-DOS/Code >> Page 850? > >CP850? Do you like to hurt yourself? Stay away from that. Or do you need >compatibility with the 6.5 tools as well? > >Any say, as Andrew said, you can use Save With Encoding to resolve this. >But I guess that if you open a CP850 file in Mgmt Studio, it will think >it's ANSI, and you will get a mess... |
|||||||||||||||||||||||