Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
General DB Class
Message
 
To
17/06/2003 10:28:13
Alvin Lourdes
Children and Youth Services Cluster
Toronto, Ontario, Canada
General information
Forum:
ASP.NET
Category:
Other
Miscellaneous
Thread ID:
00800788
Message ID:
00800824
Views:
17
This message has been marked as the solution to the initial question of the thread.
If you are looking for code, here is what I use:
public static DataSet GetDataSet(string tcSQL, string tcTableName, SqlConnection toConnection)
{
  DataSet loDataSet = new DataSet();
  SqlDataAdapter loSqlDataAdapter = new SqlDataAdapter(tcSQL,toConnection);
  loSqlDataAdapter.Fill(loDataSet, tcTableName);
  return loDataSet;
}
>Hi,
>
>I have created a class that returns an active connection to the database.
>
>Using this connection, I want to create a class that can be used to return data from the database.
>The ideal situation is for all programmers in our company to use this generic class, passing in an active connection as well as table names so that the class would return a dataset.
>
>Does that make sense?
>
>I need some advice, hints...
>
>Thanks,
>Alvin
- Jayesh
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform