Re: What all could be the security issues in Unicode Database

Tech-Archive recommends: Repair Windows Errors & Optimize Windows Performance

From: AnthonyThomas (Anthony.Thomas_at_CommerceBank.com)
Date: 12/14/04


Date: Mon, 13 Dec 2004 23:25:48 -0600

Conversion or not, storage is another matter. Convert it if you must, but
even that is not a standard. Take a look at UTF-8. SQL Server does not
support this. So, there is the doubling of the storage.

Again, a presentation or, at least, an application issue.

Sincerely,

Anthony Thomas

-- 
"Mike Epprecht (SQL MVP)" <mike@epprecht.net> wrote in message
news:%23K9dgYV4EHA.1392@tk2msftngp13.phx.gbl...
Hi
Don't forget, all NT based OS's use UNICODE internally, so the data gets
converted to UNICODE and is used in the OS as UNICODE.
If an application is not UNICODE, the OS converts it for it. .NET framework
is UNICODE.
If you like it or not, the conversion happens automatically.
-- 
--------------------------------
Mike Epprecht, Microsoft SQL Server MVP
Zurich, Switzerland
IM: mike@epprecht.net
MVP Program: http://www.microsoft.com/mvp
Blog: http://www.msmvps.com/epprecht/
"AnthonyThomas" <Anthony.Thomas@CommerceBank.com> wrote in message
news:OnwJcuR4EHA.1564@TK2MSFTNGP09.phx.gbl...
> Not to mention that UNICODE is horribly inefficient.  You do not need to
use
> it unless you know for fact that you will be using extended code pages and
> character sets, like Kana Fonts, and such.
>
> The reason is that UNICODE stores ALL character information in a 2-byte
> storage assignement.  For any character that would have fall in the normal
> ASCII range, UNICODE stores a 0x00 in the High-Ordered byte and the normal
> ASCII code in the Low-Ordered byte.  You'd be paying to store a lot of
> zero's just for the off-chance that someone might be needing to store an
> extended character.
>
> That is not to say that UNICODE does not have a place.  Names (people,
> places, things) are good candidates for NVARCHAR data types, especially on
> Websites where you do not know a priori who may be using the site, but for
> all of the internal data elements, you, as the designer, should know
exactly
> what charater types are going to be allowed.  You could even swith
> collations and code pages for individual table attributes if you knew
which
> character sets would be used for them.  All of this without the expense of
> UNICODE.
>
> It is up to you, but when your superiors start asking why the database is
so
> big and expensive, you can tell them you jumped on the UNICODE Hype
> bandwagon and its just they price they have to pay to be "cutting edge."
>
> Sincerely,
>
>
> Anthony Thomas
>
> -- 
>
> "Mike Epprecht (SQL MVP)" <mike@epprecht.net> wrote in message
> news:9A2BA7C8-38E5-48CA-9521-7694146A5D8A@microsoft.com...
> Hi
>
> Normal security issues apply, like SQL Injection, bad permissioning etc.
> UNICODE does not bring any specific issues with it from a security
> perspective.
>
> Regards
> Mike
>
> "Sierra" wrote:
>
> > Hi
> >
> > Can u guys give me some inputs as to what all could be the security
> concerns
> > in an Unicode Database
> >
> > Regards
> > Sierra
> >
> >
> >
>
>


Relevant Pages

  • Re: sendStringParameterAsUnicode: How to insert unicode data corre
    ... After checking with Microsoft it turns out that transmitting Unicode ... requires a change in the data format sent to the JDBC Receiver channel. ... We have contacted SAP and Microsoft. ... We are using SAP XI and connecting it to SQL Server 2005 using JDBC. ...
    (microsoft.public.sqlserver.jdbcdriver)
  • Re: How to change characterset in SQL Enterprise Manager?
    ... By character set I guess you mean code page, ... Unicode and collation are really two different things. ... The collation setting of a server/database/column is how SQL Server stores ...
    (microsoft.public.sqlserver.server)
  • Re: unicode conversion
    ... So it may be better to build a new database from scripts and copy data ... As for the character conversion, ... that you cannot store data as UTF-8 in SQL Server. ... uses UCS-2 to store Unicode. ...
    (microsoft.public.sqlserver.server)
  • Re: How to store HTML code in SQL server table
    ... but varchar cannot be properly used with unicode ... and has a maximum length of 8000 characters. ... > I support the Professional Association of SQL Server and it's> community of SQL Server professionals. ... >> I'm creating something like a web site builder in ASP.Net, and I need to>> store an HTML code in the SQL server table. ...
    (microsoft.public.sqlserver.server)
  • Re: How to store HTML code in SQL server table
    ... but varchar cannot be properly used with unicode ... and has a maximum length of 8000 characters. ... > I support the Professional Association of SQL Server and it's> community of SQL Server professionals. ... >> I'm creating something like a web site builder in ASP.Net, and I need to>> store an HTML code in the SQL server table. ...
    (microsoft.public.sqlserver.programming)