Click here to Skip to main content
15,882,055 members
Home / Discussions / C#
   

C#

 
GeneralRe: SQL Exception was unhandled Pin
Oonagh5-Feb-14 1:30
Oonagh5-Feb-14 1:30 
AnswerRe: SQL Exception was unhandled Pin
Kornfeld Eliyahu Peter5-Feb-14 1:31
professionalKornfeld Eliyahu Peter5-Feb-14 1:31 
Questionwant to generate random number Pin
Diya Bh.4-Feb-14 23:17
Diya Bh.4-Feb-14 23:17 
AnswerRe: want to generate random number Pin
Marco Bertschi4-Feb-14 23:29
protectorMarco Bertschi4-Feb-14 23:29 
GeneralMessage Closed Pin
5-Feb-14 0:10
Diya Bh.5-Feb-14 0:10 
GeneralRe: want to generate random number Pin
Marco Bertschi5-Feb-14 0:15
protectorMarco Bertschi5-Feb-14 0:15 
GeneralRe: want to generate random number Pin
Diya Bh.5-Feb-14 0:24
Diya Bh.5-Feb-14 0:24 
AnswerRe: want to generate random number Pin
Eddy Vluggen5-Feb-14 0:30
professionalEddy Vluggen5-Feb-14 0:30 
Diya Bh. wrote:
this no. will act as a primary key in database.
It shouldn't; it breaks the first normal form, as it is a compound field that contains multiple pieces of information. A Primary Key should identify the record uniquely, and should NEVER contain a constant.

One of the most important rules in database-design; the primary key does NEVER contain other information than to identify the field. The end-user NEVER sees the PK. Explaining why is simple; your number might change in the real world, and you'd be updating all references to that PK.

Put your fake-number (it's not a number as it contains characters) somewhere as a normal field, and make it a calculated field.
Bastard Programmer from Hell Suspicious | :suss:
If you can't read my code, try converting it here[^]

GeneralRe: want to generate random number Pin
Diya Bh.5-Feb-14 0:37
Diya Bh.5-Feb-14 0:37 
NewsRe: want to generate random number Pin
Eddy Vluggen5-Feb-14 3:05
professionalEddy Vluggen5-Feb-14 3:05 
AnswerRe: want to generate random number Pin
BillWoodruff5-Feb-14 2:25
professionalBillWoodruff5-Feb-14 2:25 
QuestionDisplaying SSRS report in MVC 4 Pin
nitin_ion4-Feb-14 22:57
nitin_ion4-Feb-14 22:57 
AnswerRe: Displaying SSRS report in MVC 4 Pin
thatraja5-Feb-14 0:02
professionalthatraja5-Feb-14 0:02 
GeneralRe: Displaying SSRS report in MVC 4 Pin
nitin_ion5-Feb-14 0:06
nitin_ion5-Feb-14 0:06 
GeneralRe: Displaying SSRS report in MVC 4 Pin
thatraja5-Feb-14 1:11
professionalthatraja5-Feb-14 1:11 
QuestionBatch Scheduler/Grid Computing - Hadoop? Pin
Swab.Jat4-Feb-14 20:12
Swab.Jat4-Feb-14 20:12 
AnswerRe: Batch Scheduler/Grid Computing - Hadoop? Pin
Richard MacCutchan4-Feb-14 22:20
mveRichard MacCutchan4-Feb-14 22:20 
GeneralHow to convert the generated barcode into image like JPG and save it into local folder. Pin
Member 105230294-Feb-14 17:39
professionalMember 105230294-Feb-14 17:39 
GeneralRe: How to convert the generated barcode into image like JPG and save it into local folder. Pin
Bernhard Hiller4-Feb-14 21:11
Bernhard Hiller4-Feb-14 21:11 
GeneralRe: How to convert the generated barcode into image like JPG and save it into local folder. Pin
Rahul S Chavhan4-Feb-14 22:28
Rahul S Chavhan4-Feb-14 22:28 
GeneralRe: How to convert the generated barcode into image like JPG and save it into local folder. Pin
lukeer5-Feb-14 1:17
lukeer5-Feb-14 1:17 
GeneralRe: How to convert the generated barcode into image like JPG and save it into local folder. Pin
BillWoodruff5-Feb-14 2:21
professionalBillWoodruff5-Feb-14 2:21 
GeneralRe: How to convert the generated barcode into image like JPG and save it into local folder. Pin
lukeer5-Feb-14 20:29
lukeer5-Feb-14 20:29 
GeneralRe: How to convert the generated barcode into image like JPG and save it into local folder. Pin
BillWoodruff5-Feb-14 21:33
professionalBillWoodruff5-Feb-14 21:33 
GeneralRe: How to convert the generated barcode into image like JPG and save it into local folder. Pin
lukeer5-Feb-14 1:25
lukeer5-Feb-14 1:25 

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.