Click here to Skip to main content
15,905,607 members
Home / Discussions / Database
   

Database

 
GeneralRe: Usage of SqlDataAdapter .... Pin
VenkatFor.NET14-Jun-04 5:24
VenkatFor.NET14-Jun-04 5:24 
GeneralPulling the latest entry for a product BY DATE from a table Pin
lostsheep00714-Jun-04 2:49
lostsheep00714-Jun-04 2:49 
GeneralRe: Pulling the latest entry for a product BY DATE from a table Pin
Thea Burger14-Jun-04 4:09
Thea Burger14-Jun-04 4:09 
GeneralRe: Pulling the latest entry for a product BY DATE from a table Pin
lostsheep00715-Jun-04 16:59
lostsheep00715-Jun-04 16:59 
GeneralRe: Pulling the latest entry for a product BY DATE from a table Pin
Colin Angus Mackay15-Jun-04 4:26
Colin Angus Mackay15-Jun-04 4:26 
GeneralRe: Pulling the latest entry for a product BY DATE from a table Pin
lostsheep00715-Jun-04 17:00
lostsheep00715-Jun-04 17:00 
GeneralUpdating Unique Primary Keys Pin
JosePidal13-Jun-04 22:34
JosePidal13-Jun-04 22:34 
GeneralRe: Updating Unique Primary Keys Pin
Steven Campbell14-Jun-04 7:33
Steven Campbell14-Jun-04 7:33 
I am a little unclear about why you would be doing this from code. Updating primary keys should never be a part of an application, unless it is a one-time fixup of data.

That said, the problem is that the database will not allow 2 items to share a primary key value, even within a transaction. So, the solution would be do it in two steps, e.g.

Step 1
<br />
10 -> 1011<br />
11 -> 1012<br />
12 -> 1010

Step 2
<br />
1011 -> 11<br />
1012 -> 12<br />
1010 -> 10<br />

You could still keep the above in a single transaction.
GeneralMS Access Relationships in Tables Pin
brdavid13-Jun-04 5:32
brdavid13-Jun-04 5:32 
GeneralRe: MS Access Relationships in Tables Pin
Mike Ellison13-Jun-04 15:38
Mike Ellison13-Jun-04 15:38 
GeneralI want to Learn Mysql Databse Pin
JawedVikia8012-Jun-04 21:50
JawedVikia8012-Jun-04 21:50 
GeneralRe: I want to Learn Mysql Databse Pin
Mekong River14-Jun-04 5:46
Mekong River14-Jun-04 5:46 
GeneralRe: I want to Learn Mysql Databse Pin
mahsa shahi1-Mar-14 7:06
mahsa shahi1-Mar-14 7:06 
QuestionHow to Display Photo in sharepoint ? Pin
gangigangi11-Jun-04 18:18
gangigangi11-Jun-04 18:18 
GeneralSQL Help/Sample Pin
karitoppinen11-Jun-04 10:00
karitoppinen11-Jun-04 10:00 
GeneralRe: SQL Help/Sample Pin
-Dr_X-14-Jun-04 19:39
-Dr_X-14-Jun-04 19:39 
GeneralRe: SQL Help/Sample Pin
karitoppinen15-Jun-04 6:00
karitoppinen15-Jun-04 6:00 
Generalkeyboard shortcuts for sql database managment tool Pin
amitmerla11-Jun-04 9:59
amitmerla11-Jun-04 9:59 
GeneralRe: keyboard shortcuts for sql database managment tool Pin
Thea Burger13-Jun-04 8:41
Thea Burger13-Jun-04 8:41 
GeneralOutput Parameters - Help! Pin
mikasa11-Jun-04 9:16
mikasa11-Jun-04 9:16 
GeneralStored Procedures in C# Pin
dtbiju10-Jun-04 19:25
dtbiju10-Jun-04 19:25 
GeneralRe: Stored Procedures in C# Pin
Michael Potter11-Jun-04 4:31
Michael Potter11-Jun-04 4:31 
GeneralRe: Stored Procedures in C# Pin
VenkatFor.NET11-Jun-04 8:37
VenkatFor.NET11-Jun-04 8:37 
GeneralRe: Stored Procedures in C# Pin
mikasa11-Jun-04 9:13
mikasa11-Jun-04 9:13 
GeneralRe: Stored Procedures in C# Pin
Steven Campbell11-Jun-04 18:36
Steven Campbell11-Jun-04 18:36 

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.