G
Guest
I'm a little confused on what the difference is between creating your
SQLDataAdapter, SQLConnection, and Dataset by code and creating them throught
the Wizard.
When you create these through the wizard, I notice that the Private Sub
InitializeComponent() of the form shows in code all of the attributes and
settings the wizard asked for (stored proc name and parameters, connection
info, blah, blah)
What exactly does having all that code in the InitializeComponent sub do for
me? Does it increase performance?
I noticed that I don't have to actually explicitly open the connection by
using the wizard. In other words there is no need for
Me.SQLConnection1.Open().
I thought that I still have to create a new instance of the DataAdapter,
Connection, Command, and Dataset that the Wizard created for me but that is
not the case.
I can just use me.SQLDataAdapter.Fill(DataSet1) . If this is the case, how
would do I manage my connections?
If you still don't understand my question. Basically I want to know why you
should or shouldn't use the wizard to create SQLDataAdapters, SQL
Connections, SQLCommand and SQL Dataset objects.
The wizards seem too good to be true.
SQLDataAdapter, SQLConnection, and Dataset by code and creating them throught
the Wizard.
When you create these through the wizard, I notice that the Private Sub
InitializeComponent() of the form shows in code all of the attributes and
settings the wizard asked for (stored proc name and parameters, connection
info, blah, blah)
What exactly does having all that code in the InitializeComponent sub do for
me? Does it increase performance?
I noticed that I don't have to actually explicitly open the connection by
using the wizard. In other words there is no need for
Me.SQLConnection1.Open().
I thought that I still have to create a new instance of the DataAdapter,
Connection, Command, and Dataset that the Wizard created for me but that is
not the case.
I can just use me.SQLDataAdapter.Fill(DataSet1) . If this is the case, how
would do I manage my connections?
If you still don't understand my question. Basically I want to know why you
should or shouldn't use the wizard to create SQLDataAdapters, SQL
Connections, SQLCommand and SQL Dataset objects.
The wizards seem too good to be true.