Click here to Skip to main content
16,008,490 members
Home / Discussions / Visual Basic
   

Visual Basic

 
AnswerRe: alternative of recordset in vb.net Pin
Parwej Ahamad17-Aug-08 5:40
professionalParwej Ahamad17-Aug-08 5:40 
GeneralRe: alternative of recordset in vb.net Pin
lahsiv17-Aug-08 6:44
lahsiv17-Aug-08 6:44 
AnswerRe: alternative of recordset in vb.net [modified] Pin
supercat918-Aug-08 9:43
supercat918-Aug-08 9:43 
GeneralRe: alternative of recordset in vb.net Pin
Mycroft Holmes18-Aug-08 12:32
professionalMycroft Holmes18-Aug-08 12:32 
GeneralRe: alternative of recordset in vb.net Pin
supercat918-Aug-08 12:37
supercat918-Aug-08 12:37 
GeneralRe: alternative of recordset in vb.net Pin
Mycroft Holmes18-Aug-08 14:04
professionalMycroft Holmes18-Aug-08 14:04 
GeneralRe: alternative of recordset in vb.net Pin
supercat919-Aug-08 6:32
supercat919-Aug-08 6:32 
GeneralRe: alternative of recordset in vb.net Pin
Mycroft Holmes19-Aug-08 12:03
professionalMycroft Holmes19-Aug-08 12:03 
supercat9 wrote:
doing bulk-data inserts into a cursor or something

There is a bulk copy method which ONLY inserts data, not sure which tech it uses under the hood. This is excellent for loading voluminous data. There is no bulk update facility except using a query.

supercat9 wrote:
is there a good way to specify,

Part of the utilities I use is a code builder that creates 2 stored procs for every table, it assumes that the 1st field in the table is an ID/identity field (unique constraint). The DAL passes in a 0 or record number, if the IS is 0 then the proc does the update else it inserts. You can also use a various strategies in the proc to detect the existence of a unique constraint (select count(*) where... or if exist select * from ...).

Never do the delete/insert thing, always do the update and have an index on the unique field. Why, because the loookup to delete the record can cost more than the update especially if there are foreign keys, and then you get the insert for free.


Never underestimate the power of human stupidity
RAH

AnswerRe: alternative of recordset in vb.net Pin
rprateek18-Aug-08 18:46
rprateek18-Aug-08 18:46 
QuestionHow to work with errors in visual basic Pin
Matthew Leggett17-Aug-08 4:06
Matthew Leggett17-Aug-08 4:06 
AnswerRe: How to work with errors in visual basic Pin
ChandraRam17-Aug-08 20:58
ChandraRam17-Aug-08 20:58 
Questionkindly check this and suggest me where i did mistake Pin
Rameez Raja17-Aug-08 1:06
Rameez Raja17-Aug-08 1:06 
AnswerRe: kindly check this and suggest me where i did mistake Pin
lisan_al_ghaib17-Aug-08 1:17
lisan_al_ghaib17-Aug-08 1:17 
GeneralRe: kindly check this and suggest me where i did mistake [modified] Pin
Rameez Raja17-Aug-08 16:45
Rameez Raja17-Aug-08 16:45 
Questionhi Pin
ershad15-Aug-08 22:49
ershad15-Aug-08 22:49 
AnswerRe: hi Pin
Christian Flutcher15-Aug-08 23:19
Christian Flutcher15-Aug-08 23:19 
GeneralRe: hi Pin
ershad15-Aug-08 23:54
ershad15-Aug-08 23:54 
GeneralRe: hi Pin
Christian Graus16-Aug-08 0:07
protectorChristian Graus16-Aug-08 0:07 
GeneralRe: hi Pin
Paul Conrad16-Aug-08 9:22
professionalPaul Conrad16-Aug-08 9:22 
AnswerRe: hi Pin
~Khatri Mitesh~16-Aug-08 0:02
~Khatri Mitesh~16-Aug-08 0:02 
GeneralRe: hi Pin
Christian Graus16-Aug-08 0:08
protectorChristian Graus16-Aug-08 0:08 
GeneralRe: hi Pin
Paul Conrad16-Aug-08 9:23
professionalPaul Conrad16-Aug-08 9:23 
AnswerRe: hi Pin
rprateek18-Aug-08 18:53
rprateek18-Aug-08 18:53 
Questionhow to import .csv or .txt file into listview control?? Pin
aungthiha15-Aug-08 21:08
aungthiha15-Aug-08 21:08 
AnswerRe: how to import .csv or .txt file into listview control?? Pin
Christian Graus15-Aug-08 21:34
protectorChristian Graus15-Aug-08 21:34 

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.