Click here to Skip to main content
15,887,135 members
Home / Discussions / Database
   

Database

 
GeneralSQL Named Instance Pin
vikramlinux29-Apr-04 18:02
vikramlinux29-Apr-04 18:02 
GeneralRe: SQL Named Instance Pin
Colin Angus Mackay30-Apr-04 9:51
Colin Angus Mackay30-Apr-04 9:51 
GeneralName and Data Type of all columns Pin
DotNet_Newbie29-Apr-04 11:08
DotNet_Newbie29-Apr-04 11:08 
GeneralRe: Name and Data Type of all columns Pin
Jeff Varszegi29-Apr-04 11:32
professionalJeff Varszegi29-Apr-04 11:32 
GeneralRe: Name and Data Type of all columns Pin
DotNet_Newbie29-Apr-04 11:56
DotNet_Newbie29-Apr-04 11:56 
GeneralRe: Name and Data Type of all columns Pin
Jeff Varszegi29-Apr-04 12:05
professionalJeff Varszegi29-Apr-04 12:05 
GeneralAuto Translate=False problem Pin
saglam29-Apr-04 5:38
saglam29-Apr-04 5:38 
GeneralRe: Auto Translate=False problem Pin
Mike Dimmick4-May-04 23:04
Mike Dimmick4-May-04 23:04 
System.Data.SqlClient implements the Tabular Data Stream (TDS) protocol for communicating with SQL Server directly (well, it uses the underlying dbnetlib.dll so that any protocol can be used, but it performs all the formatting itself). You shouldn't necessarily expect all parameters to be supported.

The Auto Translate option, by my understanding, applies to character data supplied to OLE DB in byte-oriented character format (loosely referred to as 'ANSI' by a lot of MS documentation). In order to prevent misinterpretation by the remote server, it converts from the thread's character set to Unicode (UTF-16) then back from UTF-16 to the server's configured byte-oriented character set. If you turn the option off, it simply passes the bytes directly to the server with no translation; if the client and server use different encodings, this can lead to misinterpreted data.

However, in .NET you only provide character data to the managed provider as a System.String. This type is natively Unicode UTF-16; hence the Auto Translate option, if it were available, would have no effect.

If you're trying to store and retrieve binary data, use a binary-type column (binary, varbinary or image) and the appropriate type for the SqlParameter (SqlDbType.Binary, SqlDbType.VarBinary, SqlDbType.Image).

If you're reading byte-oriented character data from a file, ensure that you're interpreting it correctly by setting the Encoding in your StreamReader constructor, or use the appropriate encoding when converting a byte array to a string.

If you post the exact problem you're experiencing, it might be possible to work out a solution.

Stability. What an interesting concept. -- Chris Maunder
GeneralRe: Auto Translate=False problem Pin
saglam10-May-04 8:38
saglam10-May-04 8:38 
GeneralRe: Auto Translate=False problem Pin
Mike Dimmick10-May-04 9:49
Mike Dimmick10-May-04 9:49 
GeneralSQL Pin
Boycech29-Apr-04 4:56
Boycech29-Apr-04 4:56 
GeneralRe: SQL Pin
Mike Ellison30-Apr-04 5:44
Mike Ellison30-Apr-04 5:44 
GeneralRe: SQL Pin
Boycech30-Apr-04 5:46
Boycech30-Apr-04 5:46 
GeneralRe: SQL Pin
Bill Dean4-May-04 5:04
Bill Dean4-May-04 5:04 
GeneralRe: SQL Pin
Boycech4-May-04 5:18
Boycech4-May-04 5:18 
GeneralRe: SQL Pin
talamar10-May-04 15:46
talamar10-May-04 15:46 
GeneralCreate an Access Database at runtime Pin
bsargos29-Apr-04 4:55
bsargos29-Apr-04 4:55 
GeneralRe: Create an Access Database at runtime Pin
BadJerry29-Apr-04 5:13
BadJerry29-Apr-04 5:13 
GeneralRe: Create an Access Database at runtime Pin
Santanu Lahiri29-Apr-04 10:24
Santanu Lahiri29-Apr-04 10:24 
GeneralRe: Create an Access Database at runtime Pin
Santanu Lahiri30-Apr-04 5:55
Santanu Lahiri30-Apr-04 5:55 
GeneralSage Accounting Version 10 Pin
Kryptos Sol29-Apr-04 4:43
Kryptos Sol29-Apr-04 4:43 
Generalexec two stored procedure in a main stored procedure Pin
manasrahfantom29-Apr-04 2:27
manasrahfantom29-Apr-04 2:27 
GeneralRe: exec two stored procedure in a main stored procedure Pin
Jeff Varszegi29-Apr-04 3:11
professionalJeff Varszegi29-Apr-04 3:11 
GeneralRe: exec two stored procedure in a main stored procedure Pin
manasrahfantom30-Apr-04 21:33
manasrahfantom30-Apr-04 21:33 
GeneralRe: exec two stored procedure in a main stored procedure Pin
Jeff Varszegi1-May-04 6:49
professionalJeff Varszegi1-May-04 6:49 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.