dbTalk Databases Forums  

saving SQL files in SSMS as ASCII

microsoft.public.sqlserver.tools microsoft.public.sqlserver.tools


Discuss saving SQL files in SSMS as ASCII in the microsoft.public.sqlserver.tools forum.



Reply
 
Thread Tools Display Modes
  #1  
Old   
Dan Holmes
 
Posts: n/a

Default saving SQL files in SSMS as ASCII - 05-06-2009 , 09:07 AM






Is there a way to make SSMS default to US-ASCII when saving a .sql file? I have searched the options. Is that
connected to the current codepage of Windows?

dan

Reply With Quote
  #2  
Old   
Dan Holmes
 
Posts: n/a

Default Re: saving SQL files in SSMS as ASCII - 05-06-2009 , 09:12 AM






Dan Holmes wrote:
Quote:
Is there a way to make SSMS default to US-ASCII when saving a .sql
file? I have searched the options. Is that connected to the current
codepage of Windows?

dan
i should have searched first. There is a connect on this already.

https://connect.microsoft.com/SQLSer...&wa=wsignin1.0



Reply With Quote
  #3  
Old   
Dan Holmes
 
Posts: n/a

Default Re: saving SQL files in SSMS as ASCII - 05-06-2009 , 09:18 AM



Dan Holmes wrote:
Quote:
Dan Holmes wrote:
Is there a way to make SSMS default to US-ASCII when saving a .sql
file? I have searched the options. Is that connected to the current
codepage of Windows?

dan
i should have searched first. There is a connect on this already.

https://connect.microsoft.com/SQLSer...&wa=wsignin1.0


I found another one.

https://connect.microsoft.com/SQLSer...dbackID=336750

i voted for it too!


Reply With Quote
  #4  
Old   
Aaron Bertrand [SQL Server MVP]
 
Posts: n/a

Default Re: saving SQL files in SSMS as ASCII - 05-06-2009 , 09:43 PM



There is also:

http://connect.microsoft.com/SQL/fee...edbackID=25977
9

http://connect.microsoft.com/SQL/fee...edbackID=32783
2

http://connect.microsoft.com/SQL/fee...edbackID=23488
8

Obviously some of these should be closed as duplicates.




On 5/6/09 10:18 AM, in article etsynWlzJHA.1096 (AT) TK2MSFTNGP06 (DOT) phx.gbl, "Dan
Holmes" <dan.holmes (AT) routematch (DOT) com> wrote:

Quote:
Dan Holmes wrote:
Dan Holmes wrote:
Is there a way to make SSMS default to US-ASCII when saving a .sql
file? I have searched the options. Is that connected to the current
codepage of Windows?

dan
i should have searched first. There is a connect on this already.

https://connect.microsoft.com/SQLSer...spx?FeedbackID
=354476&wa=wsignin1.0


I found another one.

https://connect.microsoft.com/SQLSer...px?FeedbackID=
336750

i voted for it too!


Reply With Quote
  #5  
Old   
Erland Sommarskog
 
Posts: n/a

Default Re: saving SQL files in SSMS as ASCII - 05-07-2009 , 05:43 PM



Dan Holmes (dan.holmes (AT) routematch (DOT) com) writes:
Quote:
Is there a way to make SSMS default to US-ASCII when saving a .sql file?
I have searched the options. Is that connected to the current codepage
of Windows?
That one is a little difficult to grasp. I do get ANSI files when I save
from SSMS (which I don't do very often).

I think there is some auto-detecting going on, although I have not really
understood what it does.

In options, Text Editor, you can change the mapping for a file extension
so that it maps to "SQL Server Query with Encoding". Then you will be
prompted for encoding when you open a new window.


--
Erland Sommarskog, SQL Server MVP, esquel (AT) sommarskog (DOT) se

Links for SQL Server Books Online:
SQL 2008: http://msdn.microsoft.com/en-us/sqlserver/cc514207.aspx
SQL 2005: http://msdn.microsoft.com/en-us/sqlserver/bb895970.aspx
SQL 2000: http://www.microsoft.com/sql/prodinf...ons/books.mspx



Reply With Quote
Reply




Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Powered by vBulletin Version 3.5.3
Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.