Click here to Skip to main content
15,887,453 members
Home / Discussions / Visual Basic
   

Visual Basic

 
GeneralRe: SOAP Data: How to Convert Different Datatypes? Pin
Sonhospa24-Aug-12 2:55
Sonhospa24-Aug-12 2:55 
QuestionToo many Connections in MySQL Pin
SPSandy23-Aug-12 22:41
SPSandy23-Aug-12 22:41 
AnswerRe: Too many Connections in MySQL Pin
David Mujica24-Aug-12 2:10
David Mujica24-Aug-12 2:10 
GeneralRe: Too many Connections in MySQL Pin
Dave Kreskowiak24-Aug-12 4:26
mveDave Kreskowiak24-Aug-12 4:26 
GeneralRe: Too many Connections in MySQL Pin
SPSandy24-Aug-12 6:41
SPSandy24-Aug-12 6:41 
GeneralRe: Too many Connections in MySQL Pin
Dave Kreskowiak24-Aug-12 9:47
mveDave Kreskowiak24-Aug-12 9:47 
AnswerRe: Too many Connections in MySQL Pin
Eddy Vluggen25-Aug-12 6:23
professionalEddy Vluggen25-Aug-12 6:23 
GeneralBatch program Pin
David Mujica24-Aug-12 10:23
David Mujica24-Aug-12 10:23 
Maybe I should have been more clear. My applicaiton was a very short lived program which executed about a thousand queries. The whole program lasted less than 3 minutes.

It was kind of a crazy situation where I was processing data from one resultset (MS-SQL) and issuing queries to another server (AS400 DB2 via ODBC). I found that creating one connection, one SqlCommand and changing the value of the parameters gave me the best performance.

I agree that generally you don't want to hold onto a resource any longer than necessary, but in my case the overhead of opening and closing connections to the other server was more than I wanted.

Sorry I can't be more helpful with a mySQL specific answer. I'm just telling you what worked for me.

BTW: After re-reading the requirements of the original post, I believe my method of making one connection at the top of the application would be just fine. The author is loading data from Excel. Right? How long could this program take to run? A few minutes at worst. Having a single connection to the database for that period of time should be no problem.
GeneralRe: Too many Connections in MySQL Pin
SPSandy24-Aug-12 6:34
SPSandy24-Aug-12 6:34 
AnswerRe: Too many Connections in MySQL Pin
Dave Kreskowiak24-Aug-12 4:23
mveDave Kreskowiak24-Aug-12 4:23 
QuestionWhat is the Visual Basic Code...this is urgent Pin
Member 937845723-Aug-12 15:31
Member 937845723-Aug-12 15:31 
AnswerRe: What is the Visual Basic Code...this is urgent Pin
Wes Aday23-Aug-12 16:00
professionalWes Aday23-Aug-12 16:00 
AnswerRe: What is the Visual Basic Code...this is urgent Pin
Dave Kreskowiak23-Aug-12 18:15
mveDave Kreskowiak23-Aug-12 18:15 
AnswerRe: What is the Visual Basic Code...this is urgent Pin
Joan M24-Aug-12 1:43
professionalJoan M24-Aug-12 1:43 
QuestionRows.Clear is not working properly for an Unbound DataGridView in VB.NET 2005 Pin
Phoenix Hawke23-Aug-12 11:01
Phoenix Hawke23-Aug-12 11:01 
AnswerRe: Rows.Clear is not working properly for an Unbound DataGridView in VB.NET 2005 Pin
Dave Kreskowiak23-Aug-12 18:24
mveDave Kreskowiak23-Aug-12 18:24 
GeneralRe: Rows.Clear is not working properly for an Unbound DataGridView in VB.NET 2005 Pin
Phoenix Hawke23-Aug-12 18:52
Phoenix Hawke23-Aug-12 18:52 
GeneralRe: Rows.Clear is not working properly for an Unbound DataGridView in VB.NET 2005 Pin
Bernhard Hiller23-Aug-12 23:05
Bernhard Hiller23-Aug-12 23:05 
GeneralRe: Rows.Clear is not working properly for an Unbound DataGridView in VB.NET 2005 Pin
Phoenix Hawke27-Aug-12 2:17
Phoenix Hawke27-Aug-12 2:17 
GeneralRe: Rows.Clear is not working properly for an Unbound DataGridView in VB.NET 2005 Pin
Bernhard Hiller27-Aug-12 2:34
Bernhard Hiller27-Aug-12 2:34 
GeneralRe: Rows.Clear is not working properly for an Unbound DataGridView in VB.NET 2005 Pin
Phoenix Hawke27-Aug-12 3:02
Phoenix Hawke27-Aug-12 3:02 
GeneralRe: Rows.Clear is not working properly for an Unbound DataGridView in VB.NET 2005 Pin
Bernhard Hiller27-Aug-12 3:19
Bernhard Hiller27-Aug-12 3:19 
GeneralRe: Rows.Clear is not working properly for an Unbound DataGridView in VB.NET 2005 Pin
Phoenix Hawke27-Aug-12 3:46
Phoenix Hawke27-Aug-12 3:46 
GeneralRe: Rows.Clear is not working properly for an Unbound DataGridView in VB.NET 2005 Pin
Dave Kreskowiak24-Aug-12 6:33
mveDave Kreskowiak24-Aug-12 6:33 
GeneralRe: Rows.Clear is not working properly for an Unbound DataGridView in VB.NET 2005 Pin
Phoenix Hawke27-Aug-12 2:30
Phoenix Hawke27-Aug-12 2:30 

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.