Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
Home
Discussion Groups
DB Engine
SQL ServerMSDESQL Server CE
Services
Analysis (Data Mining)Analysis (OLAP)DTSIntegration ServicesNotification ServicesReporting Services
Programming
CLRConnectivitySQLXML
Other Technologies
ClusteringEnglish QueryFull-Text SearchReplicationService Broker
General
Data WarehousingPerformanceSecuritySetupSQL Server ToolsOther SQL Server Topics
DirectoryUser Groups
Related Topics
MS AccessOther DB ProductsMS Server Products.NET DevelopmentVB DevelopmentJava DevelopmentMore Topics ...

SQL Server Forum / General / Data Warehousing / March 2007

Tip: Looking for answers? Try searching our database.

how does ado.net SqlDataReader.GetString() know which encoding to read the

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Daniel - 08 Mar 2007 01:25 GMT
how does ado.net SqlDataReader.GetString() know which encoding to read the
data into a string as? Does sql sever set this at the column data type
level, server wide encoding setting, os encoding?
Christian Donner - 13 Mar 2007 03:59 GMT
This is a question you can write volumes about. In a nutshell, SQL Server's
encoding scheme is UCS-2, regardless of the encoding of the data. It is the
client's responsibility to convert the data to UCS-2. In most cases, this
should be transparent, but depends on the correct codepage configuration of
the application and the web pages. Maybe it makes you feel better to know
that with Java and Oracle, there is a lot more that can go wrong.

Christian Donner
sqlservant.com

> how does ado.net SqlDataReader.GetString() know which encoding to read the
> data into a string as? Does sql sever set this at the column data type
> level, server wide encoding setting, os encoding?
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.