Click here to Skip to main content
15,898,588 members
Home / Discussions / Database
   

Database

 
QuestionSQL Help - sum items based on max but also smaller than...? Pin
GlobX6-Mar-11 17:09
GlobX6-Mar-11 17:09 
AnswerRe: SQL Help - sum items based on max but also smaller than...? Pin
Wendelius7-Mar-11 7:40
mentorWendelius7-Mar-11 7:40 
GeneralRe: SQL Help - sum items based on max but also smaller than...? [modified] Pin
GlobX7-Mar-11 12:12
GlobX7-Mar-11 12:12 
GeneralRe: SQL Help - sum items based on max but also smaller than...? Pin
Wendelius7-Mar-11 18:37
mentorWendelius7-Mar-11 18:37 
AnswerRe: SQL Help - sum items based on max but also smaller than...? Pin
GlobX7-Mar-11 13:05
GlobX7-Mar-11 13:05 
Questioncopy data from 1 table to another table Pin
bapu28895-Mar-11 6:07
bapu28895-Mar-11 6:07 
AnswerRe: copy data from 1 table to another table Pin
Mycroft Holmes5-Mar-11 12:07
professionalMycroft Holmes5-Mar-11 12:07 
AnswerRe: copy data from 1 table to another table Pin
PIEBALDconsult5-Mar-11 14:48
mvePIEBALDconsult5-Mar-11 14:48 
What database? Sql Server? You can link the databases and then the INSERT/SELECT should work.

But I prefer to use a connection to each one, use a DataReader to read from the source, and a parameterized INSERT for the destination.

This allows me to report progress if the process is very long-running.

In other situations, using the DataReader allows me to log duplicates and referential integrity issues without stopping the whole process.
QuestionRe: copy data from 1 table to another table Pin
bapu28895-Mar-11 19:57
bapu28895-Mar-11 19:57 
QuestionRead only ADO connection still allows writing to database? Pin
PJ Arends4-Mar-11 17:54
professionalPJ Arends4-Mar-11 17:54 
AnswerRe: Read only ADO connection still allows writing to database? Pin
Mycroft Holmes4-Mar-11 19:59
professionalMycroft Holmes4-Mar-11 19:59 
GeneralRe: Read only ADO connection still allows writing to database? Pin
PJ Arends6-Mar-11 10:26
professionalPJ Arends6-Mar-11 10:26 
GeneralRe: Read only ADO connection still allows writing to database? Pin
Mycroft Holmes6-Mar-11 11:42
professionalMycroft Holmes6-Mar-11 11:42 
GeneralRe: Read only ADO connection still allows writing to database? Pin
PJ Arends6-Mar-11 17:51
professionalPJ Arends6-Mar-11 17:51 
GeneralRe: Read only ADO connection still allows writing to database? Pin
Mycroft Holmes6-Mar-11 18:01
professionalMycroft Holmes6-Mar-11 18:01 
QuestionUpdating Columns Pin
whatsa3-Mar-11 14:14
whatsa3-Mar-11 14:14 
AnswerRe: Updating Columns Pin
Luc Pattyn3-Mar-11 14:24
sitebuilderLuc Pattyn3-Mar-11 14:24 
GeneralRe: Updating Columns Pin
whatsa17-Mar-11 10:07
whatsa17-Mar-11 10:07 
AnswerRe: Updating Columns Pin
jschell3-Mar-11 15:27
jschell3-Mar-11 15:27 
GeneralRe: Updating Columns Pin
PIEBALDconsult3-Mar-11 16:34
mvePIEBALDconsult3-Mar-11 16:34 
QuestionSQL Server Authentication issue - Fixed, but I don't understand why Pin
gantww3-Mar-11 5:55
gantww3-Mar-11 5:55 
Questioncomplicated select Pin
benams3-Mar-11 5:16
benams3-Mar-11 5:16 
QuestionRe: complicated select Pin
Chris Meech3-Mar-11 8:45
Chris Meech3-Mar-11 8:45 
AnswerRe: complicated select Pin
Jörgen Andersson3-Mar-11 9:37
professionalJörgen Andersson3-Mar-11 9:37 
AnswerRe: complicated select Pin
Mycroft Holmes3-Mar-11 13:52
professionalMycroft Holmes3-Mar-11 13: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.