Click here to Skip to main content
15,900,907 members
Home / Discussions / Database
   

Database

 
AnswerRe: Showing precentage using GROUP BY clause Pin
Ashfield3-Sep-08 2:41
Ashfield3-Sep-08 2:41 
GeneralRe: Showing precentage using GROUP BY clause Pin
Muammar©3-Sep-08 3:55
Muammar©3-Sep-08 3:55 
GeneralRe: Showing precentage using GROUP BY clause Pin
Ashfield3-Sep-08 5:19
Ashfield3-Sep-08 5:19 
Questionquery to get number of childs from parent child table Pin
sepel2-Sep-08 20:38
sepel2-Sep-08 20:38 
AnswerRe: query to get number of childs from parent child table Pin
Blue_Boy2-Sep-08 20:47
Blue_Boy2-Sep-08 20:47 
AnswerRe: query to get number of childs from parent child table Pin
razov2-Sep-08 23:48
razov2-Sep-08 23:48 
AnswerRe: query to get number of childs from parent child table Pin
Paddy Boyd3-Sep-08 2:38
Paddy Boyd3-Sep-08 2:38 
QuestionHow to prevent adding a duplicate value into a table Pin
makumazan842-Sep-08 13:25
makumazan842-Sep-08 13:25 
OK, here is the deal. I've got a table with 2 columns: "ID"(int), "Name"(string). "ID" - is a unique key field used in relations with other tables, but the values of the "Name" should be unique as well. I need to add more data into this table, but not to create some duplicate information.

I know about INSERT DISTINCT, but I am not using an SQL command, instead I use a VS generated TableAdapter (in my case it is named "companiesTableAdapter"). Here is a small code snippet:
this.companiesTableAdapter.Insert("XYZ Company");
this code does insert the string into a table, but it doesn't care if "XYZ Company" is already there.
(the DB itself is created in Access2003, if this may be helpful)

If someone has done something similar, I would really appreciate their help.
AnswerRe: How to prevent adding a duplicate value into a table Pin
Blue_Boy2-Sep-08 13:43
Blue_Boy2-Sep-08 13:43 
GeneralRe: How to prevent adding a duplicate value into a table Pin
makumazan842-Sep-08 15:01
makumazan842-Sep-08 15:01 
GeneralRe: How to prevent adding a duplicate value into a table Pin
Blue_Boy2-Sep-08 15:38
Blue_Boy2-Sep-08 15:38 
AnswerRe: How to prevent adding a duplicate value into a table Pin
TheFM2342-Sep-08 19:26
TheFM2342-Sep-08 19:26 
GeneralRe: How to prevent adding a duplicate value into a table Pin
makumazan842-Sep-08 22:48
makumazan842-Sep-08 22:48 
GeneralRe: How to prevent adding a duplicate value into a table Pin
Ashfield3-Sep-08 1:22
Ashfield3-Sep-08 1:22 
Questiontext in sql Pin
dgreat12-Sep-08 12:38
dgreat12-Sep-08 12:38 
AnswerRe: text in sql Pin
Blue_Boy2-Sep-08 12:52
Blue_Boy2-Sep-08 12:52 
GeneralRe: text in sql Pin
Colin Angus Mackay3-Sep-08 5:27
Colin Angus Mackay3-Sep-08 5:27 
GeneralRe: text in sql Pin
Blue_Boy3-Sep-08 5:34
Blue_Boy3-Sep-08 5:34 
AnswerRe: text in sql Pin
Colin Angus Mackay3-Sep-08 5:28
Colin Angus Mackay3-Sep-08 5:28 
QuestionAccess code Pin
Vmchase2-Sep-08 8:56
Vmchase2-Sep-08 8:56 
AnswerRe: Access code Pin
Mycroft Holmes2-Sep-08 16:41
professionalMycroft Holmes2-Sep-08 16:41 
GeneralRe: Access code Pin
Vmchase3-Sep-08 4:25
Vmchase3-Sep-08 4:25 
GeneralRe: Access code Pin
Mycroft Holmes3-Sep-08 12:35
professionalMycroft Holmes3-Sep-08 12:35 
Questionhow to change timestamp of a DB in SQL Server 2005? Pin
alexyxj2-Sep-08 6:30
alexyxj2-Sep-08 6:30 
AnswerRe: how to change timestamp of a DB in SQL Server 2005? Pin
Wendelius2-Sep-08 6:52
mentorWendelius2-Sep-08 6:52 

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.