Click here to Skip to main content
15,914,820 members
Home / Discussions / Database
   

Database

 
QuestionMicrosoft ODBC Driver for Oracle [urgent] Please Help Pin
Programm3r1-Oct-07 21:56
Programm3r1-Oct-07 21:56 
AnswerRe: Microsoft ODBC Driver for Oracle [urgent] Please Help Pin
Programm3r2-Oct-07 1:23
Programm3r2-Oct-07 1:23 
AnswerRe: Microsoft ODBC Driver for Oracle [urgent] Please Help Pin
Pete O'Hanlon2-Oct-07 1:24
mvePete O'Hanlon2-Oct-07 1:24 
GeneralRe: Microsoft ODBC Driver for Oracle [urgent] Please Help Pin
Programm3r2-Oct-07 4:58
Programm3r2-Oct-07 4:58 
GeneralRe: Microsoft ODBC Driver for Oracle [urgent] Please Help Pin
Pete O'Hanlon2-Oct-07 9:55
mvePete O'Hanlon2-Oct-07 9:55 
JokeRe: Microsoft ODBC Driver for Oracle [urgent] Please Help Pin
ChandraRam2-Oct-07 21:05
ChandraRam2-Oct-07 21:05 
QuestionDuplicate with the Same Identity Number Pin
Vimalsoft(Pty) Ltd1-Oct-07 21:54
professionalVimalsoft(Pty) Ltd1-Oct-07 21:54 
AnswerRe: Duplicate with the Same Identity Number Pin
Pete O'Hanlon1-Oct-07 22:19
mvePete O'Hanlon1-Oct-07 22:19 
Hmmm. Did you remove the unique constraint from your primary key field by any chance (the identity column is a primary key, isn't it)? This constraint is there to ensure that you can't have duplicate fields.

Anyway, there are a number of ways that you could do this, but the implementation really depends on factors such as do you have foreign keys linked to your table? If so, then you really need to be careful about deleting.

A quick thought has occurred to me - how did you select these records? Are they part of a multi-table select? If so, it is likely that what you are seeing is the result of a one-to-many relationship. Try selecting the data out of the table on its own.

If a single table select still produces duplicate data and it's not a part of a foreign key then you can do the following:

Open up your table in the designer and drop the identity column. Save it to the database. Then add the identity column back into the table and save it again. The stages here drop the identity column and then force the database to apply a new identity column - which will have the effect of giving a new Id to each record. Voila - you now have unique rows.

Deja View - the feeling that you've seen this post before.

GeneralRe: Duplicate with the Same Identity Number Pin
Vimalsoft(Pty) Ltd1-Oct-07 22:50
professionalVimalsoft(Pty) Ltd1-Oct-07 22:50 
GeneralRe: Duplicate with the Same Identity Number Pin
Pete O'Hanlon1-Oct-07 22:53
mvePete O'Hanlon1-Oct-07 22:53 
GeneralRe: Duplicate with the Same Identity Number Pin
Vimalsoft(Pty) Ltd1-Oct-07 23:08
professionalVimalsoft(Pty) Ltd1-Oct-07 23:08 
GeneralRe: Duplicate with the Same Identity Number Pin
ChandraRam2-Oct-07 20:59
ChandraRam2-Oct-07 20:59 
GeneralRe: Duplicate with the Same Identity Number Pin
Vimalsoft(Pty) Ltd2-Oct-07 21:18
professionalVimalsoft(Pty) Ltd2-Oct-07 21:18 
GeneralRe: Duplicate with the Same Identity Number Pin
ChandraRam2-Oct-07 21:22
ChandraRam2-Oct-07 21:22 
GeneralRe: Duplicate with the Same Identity Number Pin
Vimalsoft(Pty) Ltd2-Oct-07 22:04
professionalVimalsoft(Pty) Ltd2-Oct-07 22:04 
GeneralRe: Duplicate with the Same Identity Number Pin
ChandraRam2-Oct-07 22:32
ChandraRam2-Oct-07 22:32 
AnswerRe: Duplicate with the Same Identity Number Pin
John-ph1-Oct-07 22:52
John-ph1-Oct-07 22:52 
AnswerRe: Duplicate with the Same Identity Number Pin
Suaysh Andhare3-Oct-07 0:18
Suaysh Andhare3-Oct-07 0:18 
Questionexport data from sqlserver to excel Pin
mehran.asg1-Oct-07 21:20
mehran.asg1-Oct-07 21:20 
AnswerRe: export data from sqlserver to excel Pin
pmarfleet1-Oct-07 21:48
pmarfleet1-Oct-07 21:48 
Questionfetching database schema using ado.net Pin
chanzeb1-Oct-07 21:19
chanzeb1-Oct-07 21:19 
AnswerRe: fetching database schema using ado.net Pin
Kschuler2-Oct-07 7:29
Kschuler2-Oct-07 7:29 
AnswerRe: fetching database schema using ado.net Pin
PIEBALDconsult3-Oct-07 15:29
mvePIEBALDconsult3-Oct-07 15:29 
QuestionProblem with Attach In 2005 Pin
mehrdadc481-Oct-07 8:14
mehrdadc481-Oct-07 8:14 
AnswerRe: Problem with Attach In 2005 Pin
Marek Grzenkowicz2-Oct-07 1:22
Marek Grzenkowicz2-Oct-07 1:22 

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.