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

Visual Basic

 
GeneralMy SQl adapter is not behaving normal Pin
Vimalsoft(Pty) Ltd2-Jan-08 3:18
professionalVimalsoft(Pty) Ltd2-Jan-08 3:18 
GeneralRe: My SQl adapter is not behaving normal Pin
Dave Kreskowiak2-Jan-08 5:16
mveDave Kreskowiak2-Jan-08 5:16 
GeneralRe: My SQl adapter is not behaving normal Pin
Vimalsoft(Pty) Ltd2-Jan-08 7:11
professionalVimalsoft(Pty) Ltd2-Jan-08 7:11 
GeneralRe: My SQl adapter is not behaving normal Pin
Dave Kreskowiak2-Jan-08 7:34
mveDave Kreskowiak2-Jan-08 7:34 
GeneralRe: My SQl adapter is not behaving normal Pin
Vimalsoft(Pty) Ltd2-Jan-08 9:11
professionalVimalsoft(Pty) Ltd2-Jan-08 9:11 
GeneralRe: My SQl adapter is not behaving normal Pin
Dave Kreskowiak2-Jan-08 9:32
mveDave Kreskowiak2-Jan-08 9:32 
GeneralRe: My SQl adapter is not behaving normal Pin
Vimalsoft(Pty) Ltd3-Jan-08 5:13
professionalVimalsoft(Pty) Ltd3-Jan-08 5:13 
GeneralVB.NET Multithreading question [modified] Pin
SimulationofSai2-Jan-08 0:49
SimulationofSai2-Jan-08 0:49 
Guys, I need an idea about implementing multithreading in vb.net.

Here's the scenario:

I've to bulk insert multiple (100's) of files into SQL Server. The list of files are stored in a table and there's an SSIS package that loops through the resultset and bulkloads each file. The downside to this approach is at any given time only one file is being loaded. I'd like to introduce parallelism into this approach. ( I can have multiple loops, but it breaks the workflow)
I redesigned the package to load multiple files into the db, but the structure is rigid. For example, if in a batch of 5 files loading simultaneously, if the first file were smaller and the rest very big, one connection would be idle until all have finished to exit out of the task.
To alleviate this, I thought of an approach that uses threading.

What I need:
An idea that uses a multithreading wherein there's a parent thread that loops through the list of files and assigns each file to child threads which do the bulk load. As soon as a child thread is done, it must notify the parent to give it the next file to load. The number if child threads must be user configurable.

Here are the questions:

1) Is the idea of any worth, if not, is there a better way of doing it?
2) I'm trying to use the ThreadPool class and callback delegates, is this correct? (I read from Marc's article that ThreadPool is not worth it's salt)
3) Would the Async callback method of the SQLCommand work?(I kinda figured that this is not feasible, since the callback delegate does not notify the success or failure of the query)
4) Any good articles that can goad me in the correct direction.

Requirement:
The VB.NET module must execute from within an SSIS Script task.
And it has to be in VB.NET, C# is not supported in SSIS scripts.

Hope I've been clear enough.

Thanks.

SG
Cause is effect concealed. Effect is cause revealed.

modified on Wednesday, January 02, 2008 9:16:45 AM

GeneralRe: VB.NET Multithreading question Pin
Dave Kreskowiak2-Jan-08 7:44
mveDave Kreskowiak2-Jan-08 7:44 
GeneralRe: VB.NET Multithreading question Pin
SimulationofSai2-Jan-08 18:28
SimulationofSai2-Jan-08 18:28 
GeneralRe: VB.NET Multithreading question Pin
Dave Kreskowiak3-Jan-08 6:56
mveDave Kreskowiak3-Jan-08 6:56 
Generalslow performance on 1st add new row to datatable Pin
Eunice (VB junior)1-Jan-08 22:32
Eunice (VB junior)1-Jan-08 22:32 
GeneralRe: slow performance on 1st add new row to datatable Pin
Dave Kreskowiak2-Jan-08 7:37
mveDave Kreskowiak2-Jan-08 7:37 
Generalsecurity issue Pin
Tauseef A1-Jan-08 22:32
Tauseef A1-Jan-08 22:32 
GeneralRe: security issue Pin
Vimalsoft(Pty) Ltd2-Jan-08 3:01
professionalVimalsoft(Pty) Ltd2-Jan-08 3:01 
Questionhow can i append one word file to another Pin
koolprasad20031-Jan-08 19:17
professionalkoolprasad20031-Jan-08 19:17 
AnswerRe: how can i append one word file to another Pin
Vimalsoft(Pty) Ltd2-Jan-08 3:06
professionalVimalsoft(Pty) Ltd2-Jan-08 3:06 
Generalhelp for folder compression Pin
Senthil S1-Jan-08 19:17
Senthil S1-Jan-08 19:17 
GeneralRe: help for folder compression [modified] Pin
Nilesh Hapse1-Jan-08 23:59
Nilesh Hapse1-Jan-08 23:59 
GeneralCreate custom folder while setup my application Pin
Mekong River1-Jan-08 15:56
Mekong River1-Jan-08 15:56 
GeneralRe: Create custom folder while setup my application Pin
Dave Kreskowiak2-Jan-08 5:07
mveDave Kreskowiak2-Jan-08 5:07 
GeneralRe: Create custom folder while setup my application Pin
Mekong River2-Jan-08 17:53
Mekong River2-Jan-08 17:53 
QuestionHow to view an msg file? Pin
ninkk1-Jan-08 4:51
ninkk1-Jan-08 4:51 
AnswerRe: How to view an msg file? Pin
Dave Kreskowiak2-Jan-08 4:58
mveDave Kreskowiak2-Jan-08 4:58 
QuestionPictureBox SizeMode Pin
nishkarsh_k1-Jan-08 2:04
nishkarsh_k1-Jan-08 2:04 

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.