Click here to Skip to main content
15,920,217 members
Home / Discussions / .NET (Core and Framework)
   

.NET (Core and Framework)

 
QuestionDataTable PrimaryKey problem Pin
calhuskerfan14-Oct-08 11:54
calhuskerfan14-Oct-08 11:54 
AnswerRe: DataTable PrimaryKey problem Pin
led mike15-Oct-08 5:01
led mike15-Oct-08 5:01 
GeneralRe: DataTable PrimaryKey problem Pin
calhuskerfan15-Oct-08 9:17
calhuskerfan15-Oct-08 9:17 
QuestionRe: DataTable PrimaryKey problem Pin
led mike15-Oct-08 9:58
led mike15-Oct-08 9:58 
AnswerRe: DataTable PrimaryKey problem Pin
calhuskerfan15-Oct-08 10:03
calhuskerfan15-Oct-08 10:03 
AnswerRe: DataTable PrimaryKey problem Pin
calhuskerfan15-Oct-08 10:17
calhuskerfan15-Oct-08 10:17 
GeneralRe: DataTable PrimaryKey problem Pin
led mike15-Oct-08 10:49
led mike15-Oct-08 10:49 
GeneralRe: DataTable PrimaryKey problem Pin
Wendelius15-Oct-08 11:18
mentorWendelius15-Oct-08 11:18 
I tried your test case and ran into the same problem. Seems that when the values are compared, the trailing spaces are removed (or added until the length is the same).

Actually the same effect can happen in SQL Server when varchar data type is used so this may be by design.

Quickly cannot think anything else than replacing trailing spaces with a special character that can be later removed (like ascii 255).

The need to optimize rises from a bad design.

My articles[^]

QuestionVisual c++ runtime error on only framework installed machine Pin
balu1234514-Oct-08 7:19
balu1234514-Oct-08 7:19 
Answer[Cross Post]Re: Visual c++ runtime error on only framework installed machine [modified] Pin
Scott Dorman14-Oct-08 8:27
professionalScott Dorman14-Oct-08 8:27 
GeneralRe: [Cross Post]Re: Visual c++ runtime error on only framework installed machine Pin
Mark Salsbery14-Oct-08 8:32
Mark Salsbery14-Oct-08 8:32 
GeneralRe: [Cross Post]Re: Visual c++ runtime error on only framework installed machine Pin
Scott Dorman14-Oct-08 8:38
professionalScott Dorman14-Oct-08 8:38 
QuestionDifferent exception handling behavior with and without debugger attached Pin
jpsstavares14-Oct-08 5:37
jpsstavares14-Oct-08 5:37 
QuestionRe: Different exception handling behavior with and without debugger attached Pin
jpsstavares14-Oct-08 23:40
jpsstavares14-Oct-08 23:40 
Question[Content_Types].xml in System.IO.Packaging.ZipPackage Pin
Chapooki14-Oct-08 3:59
Chapooki14-Oct-08 3:59 
AnswerRe: [Content_Types].xml in System.IO.Packaging.ZipPackage Pin
ramanakanthkv20-Oct-10 1:41
ramanakanthkv20-Oct-10 1:41 
QuestionCan windows search api be used for searching sql database? Pin
shraddhapingale14-Oct-08 2:03
shraddhapingale14-Oct-08 2:03 
AnswerRe: Can windows search api be used for searching sql database? Pin
Dave Kreskowiak14-Oct-08 3:58
mveDave Kreskowiak14-Oct-08 3:58 
GeneralRe: Can windows search api be used for searching sql database? Pin
shraddhapingale14-Oct-08 19:12
shraddhapingale14-Oct-08 19:12 
GeneralRe: Can windows search api be used for searching sql database? Pin
Dave Kreskowiak15-Oct-08 1:35
mveDave Kreskowiak15-Oct-08 1:35 
GeneralRe: Can windows search api be used for searching sql database? Pin
shraddhapingale15-Oct-08 1:39
shraddhapingale15-Oct-08 1:39 
GeneralRe: Can windows search api be used for searching sql database? Pin
Dave Kreskowiak15-Oct-08 2:09
mveDave Kreskowiak15-Oct-08 2:09 
QuestionEnterprise Library not Logging the Exception in Production Pin
Member 173223513-Oct-08 20:58
Member 173223513-Oct-08 20:58 
QuestionManifest File Configuration Pin
SNI13-Oct-08 0:11
SNI13-Oct-08 0:11 
AnswerRe: Manifest File Configuration Pin
Mark Salsbery13-Oct-08 7:51
Mark Salsbery13-Oct-08 7:51 

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.