Click here to Skip to main content
15,891,473 members
Home / Discussions / Database
   

Database

 
GeneralProblems with CDaoDatabase::Execute Pin
Ivan Cachicatari16-Nov-04 4:48
Ivan Cachicatari16-Nov-04 4:48 
GeneralASCII Encoding & C# Pin
StrayGrey16-Nov-04 4:41
StrayGrey16-Nov-04 4:41 
QuestionA loop in T-SQL ? Pin
Sebastien Lachance16-Nov-04 4:37
Sebastien Lachance16-Nov-04 4:37 
AnswerRe: A loop in T-SQL ? Pin
Colin Angus Mackay16-Nov-04 5:47
Colin Angus Mackay16-Nov-04 5:47 
GeneralRe: A loop in T-SQL ? Pin
Sebastien Lachance16-Nov-04 7:05
Sebastien Lachance16-Nov-04 7:05 
GeneralRe: A loop in T-SQL ? Pin
Colin Angus Mackay16-Nov-04 9:45
Colin Angus Mackay16-Nov-04 9:45 
GeneralRe: A loop in T-SQL ? Pin
Sebastien Lachance16-Nov-04 9:54
Sebastien Lachance16-Nov-04 9:54 
GeneralRe: A loop in T-SQL ? Pin
Colin Angus Mackay16-Nov-04 10:04
Colin Angus Mackay16-Nov-04 10:04 
Perhaps the use of a temporary table during the processing would be useful.

I'm assuming the the filter to determine which rows are updated is non-trivial (i.e. it takes some time or a complex set of joins)

Create a temporary table with the primary key to the FirstTable and foreign key to the second table. Then you populate the temp table with the keys to the rows that will need to be updated.

Make the update on the first table using the temporary table to quickly get at the relevant rows.

Now, using the temporary table again, join with the first table and make the update on the second table.

I don't know if that makes sense, but from what I understand of your scenario it would probably work.


Do you want to know more?


GeneralDELETE X WHERE Y IN (SubQuery) Problem Pin
Tristan Rhodes16-Nov-04 0:55
Tristan Rhodes16-Nov-04 0:55 
GeneralRe: DELETE X WHERE Y IN (SubQuery) Problem Pin
Colin Angus Mackay16-Nov-04 1:38
Colin Angus Mackay16-Nov-04 1:38 
GeneralRe: DELETE X WHERE Y IN (SubQuery) Problem Pin
Tristan Rhodes16-Nov-04 3:17
Tristan Rhodes16-Nov-04 3:17 
GeneralRe: DELETE X WHERE Y IN (SubQuery) Problem Pin
Colin Angus Mackay16-Nov-04 5:46
Colin Angus Mackay16-Nov-04 5:46 
QuestionHow to import both adoce31.dll & adoxce31.dll? Pin
george ivanov16-Nov-04 0:53
george ivanov16-Nov-04 0:53 
GeneralDeclare Varibales In SQL 2000 Pin
Hemant Mane15-Nov-04 19:03
Hemant Mane15-Nov-04 19:03 
GeneralSequential Dates and Grouping Pin
Peet Schultz15-Nov-04 2:47
Peet Schultz15-Nov-04 2:47 
GeneralRe: Sequential Dates and Grouping Pin
Michael Potter15-Nov-04 3:33
Michael Potter15-Nov-04 3:33 
GeneralRe: Sequential Dates and Grouping Pin
Peet Schultz15-Nov-04 4:11
Peet Schultz15-Nov-04 4:11 
GeneralRe: Sequential Dates and Grouping Pin
Michael Potter15-Nov-04 8:10
Michael Potter15-Nov-04 8:10 
GeneralGenerate SQL Script ( store procedure problem) Pin
manxx14-Nov-04 8:40
manxx14-Nov-04 8:40 
GeneralView all Tables in database Pin
visitsaadi13-Nov-04 1:33
visitsaadi13-Nov-04 1:33 
GeneralRe: View all Tables in database Pin
Colin Angus Mackay13-Nov-04 1:51
Colin Angus Mackay13-Nov-04 1:51 
QuestionSelect Top 10 from a DataTable ??? Pin
luckyShek12-Nov-04 9:56
luckyShek12-Nov-04 9:56 
GeneralStored Procedures Pin
Anonymous12-Nov-04 6:02
Anonymous12-Nov-04 6:02 
GeneralRe: Stored Procedures Pin
Colin Angus Mackay12-Nov-04 6:41
Colin Angus Mackay12-Nov-04 6:41 
GeneralRe: Stored Procedures Pin
Anonymous14-Nov-04 22:38
Anonymous14-Nov-04 22:38 

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.