Click here to Skip to main content
15,915,757 members
Home / Discussions / Visual Basic
   

Visual Basic

 
AnswerRe: CountDown between dates Pin
George B Gilbert27-Oct-05 8:25
George B Gilbert27-Oct-05 8:25 
GeneralRe: CountDown between dates Pin
im_hoser27-Oct-05 14:20
im_hoser27-Oct-05 14:20 
QuestionInstallation on a remote computer. Pin
Jim Wilcox26-Oct-05 8:07
Jim Wilcox26-Oct-05 8:07 
AnswerRe: Installation on a remote computer. Pin
rwestgraham26-Oct-05 14:48
rwestgraham26-Oct-05 14:48 
Questionsql problem Pin
microuser_200026-Oct-05 6:09
microuser_200026-Oct-05 6:09 
AnswerRe: sql problem Pin
Joshua Quick26-Oct-05 8:14
Joshua Quick26-Oct-05 8:14 
GeneralRe: sql problem Pin
microuser_200026-Oct-05 8:25
microuser_200026-Oct-05 8:25 
GeneralRe: sql problem Pin
Joshua Quick26-Oct-05 9:01
Joshua Quick26-Oct-05 9:01 
Right. But from the looks of things, your code needs to be cleaned up a bit more.

First of all, you're trying to execute the same SQL command twice. Was this the intent? (I don't think so.)

You're reading it once here...
MySqlDataAdapter.SelectCommand = New SqlClient.SqlCommand(sSQL,conSQL)
MySqlDataAdapter.Fill(MyDataSet)

And the other here...
MySqlCommand.ExecuteReader

I think you should get rid of the Adapter and DataSet and stick to MySqlCommand since I didn't see your code really using them anyways. Also, you need to dispose MySqlCommand and its DataReader once you're done using them. Not doing so would cause a database connection "leak" (for a database like Access, there are only a finite number of connections that can be made so this is important). Dispose them before you dispose the connection.

[edit]
Oops. I just noticed that you are closing the DataReader. You just need to dispose the MySqlCommand then.
[/edit]
-- modified at 15:04 Wednesday 26th October, 2005
GeneralRe: sql problem Pin
microuser_200026-Oct-05 11:09
microuser_200026-Oct-05 11:09 
QuestionRemove Duplications Pin
stevelam26-Oct-05 5:27
stevelam26-Oct-05 5:27 
AnswerRe: Remove Duplications Pin
George B Gilbert26-Oct-05 7:02
George B Gilbert26-Oct-05 7:02 
GeneralRe: Remove Duplications Pin
stevelam26-Oct-05 8:21
stevelam26-Oct-05 8:21 
AnswerRe: Remove Duplications Pin
George B Gilbert26-Oct-05 8:30
George B Gilbert26-Oct-05 8:30 
GeneralRe: Remove Duplications Pin
stevelam26-Oct-05 8:35
stevelam26-Oct-05 8:35 
AnswerRe: Remove Duplications Pin
George B Gilbert27-Oct-05 6:15
George B Gilbert27-Oct-05 6:15 
QuestionOverriding the Built-In Menus and Commands in Microsoft Word Pin
microuser_200025-Oct-05 23:40
microuser_200025-Oct-05 23:40 
Questiondatagrid that does not display null for blank data...how it is possible Pin
ajay bharti25-Oct-05 21:05
ajay bharti25-Oct-05 21:05 
AnswerRe: datagrid that does not display null for blank data...how it is possible Pin
oakleaf7-Nov-05 6:39
oakleaf7-Nov-05 6:39 
Questioncrystal report with vb.net(run on client machine) Pin
amilapradeep25-Oct-05 18:43
amilapradeep25-Oct-05 18:43 
AnswerRe: crystal report with vb.net(run on client machine) Pin
Christian Graus25-Oct-05 18:47
protectorChristian Graus25-Oct-05 18:47 
GeneralRe: crystal report with vb.net(run on client machine) Pin
amilapradeep25-Oct-05 19:20
amilapradeep25-Oct-05 19:20 
GeneralRe: crystal report with vb.net(run on client machine) Pin
Christian Graus25-Oct-05 19:22
protectorChristian Graus25-Oct-05 19:22 
GeneralRe: crystal report with vb.net(run on client machine) Pin
amilapradeep25-Oct-05 19:26
amilapradeep25-Oct-05 19:26 
GeneralRe: crystal report with vb.net(run on client machine) Pin
Steve Pullan25-Oct-05 19:35
Steve Pullan25-Oct-05 19:35 
GeneralRe: crystal report with vb.net(run on client machine) Pin
amilapradeep25-Oct-05 20:18
amilapradeep25-Oct-05 20:18 

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.