EricDotNet Posted March 9, 2004 Posted March 9, 2004 Would u tell me the different between them? I need to start a project which is involve huge size of data (above millions rows in one table) So, I want to know which one is better for my project. Thx. Quote
Moderators Robby Posted March 9, 2004 Moderators Posted March 9, 2004 SqlDataAdapter and SqlDataClient are only for SQL Server 7 and 2000, OraDataClient is for Oracle, OleDBDataAdapter and all OleDbData onjects are for the rest of the data providers such as MS Access. However there are more data clients in development for other providers Quote Visit...Bassic Software
foz Posted March 9, 2004 Posted March 9, 2004 choose which one is appropriate for your information, sql for sql server oledb for access etc... with that much info i'd recommend a sql server db, with sqldataadapters Quote brown m+m, green m+m, it all comes out the same in the end
Joe Mamma Posted March 9, 2004 Posted March 9, 2004 choose which one is appropriate for your information, sql for sql server oledb for access etc... with that much info i'd recommend a sql server db, with sqldataadaptersKeep in mind, using SQLDbClient locks you into SQL Server. It may be preferable to program to an IDB* Interfaces: [color=black][size=2]public [/size][size=2]enum [/size][/color][size=2]DBServiceEnum[/size] [size=2]{[/size] [indent][size=2]SQL, [/size] [size=2]Oracle,[/size] [size=2]OleDb,[/size] [size=2]ODBC[/size] [/indent] [size=2]} [/size] public class MyClass { [indent]IDbConnection myConn = null; public void InitDBComponents(DBServiceEnum appDbType) {[indent]switch (appDbType) {[indent]case DBServiceEnum.SQL: [indent]myConn = new SqlConnection(); break; [/indent] case DBServiceEnum.Oracle: [indent]myConn = new OracleConnection(); break; [/indent] case DBServiceEnum.OleDb: [indent]myConn = new OleDbConnection(); break; [/indent] case DBServiceEnum.ODBC: [indent]myConn = new OdbcConnection(); break; [/indent] [/indent]} [/indent]} [/indent]} Programming to interfaces makes your client applications immune to service definitions. Joe Mamma Quote Joe Mamma Amendment 4: The right of the people to be secure in their persons, houses, papers, and effects, against unreasonable searches and seizures, shall not be violated, and no warrants shall issue, but upon probable cause, supported by oath or affirmation, and particularly describing the place to be searched, and the persons or things to be seized. Amendment 9: The enumeration in the Constitution, of certain rights, shall not be construed to deny or disparage others retained by the people.
Moderators Robby Posted March 9, 2004 Moderators Posted March 9, 2004 Here's an easy to follow sample using a Factory Pattern. http://www.c-sharpcorner.com/Code/2002/July/GenericDataAccessCompActivator.asp Quote Visit...Bassic Software
Joe Mamma Posted March 9, 2004 Posted March 9, 2004 Here's an easy to follow sample using a Factory Pattern. http://www.c-sharpcorner.com/Code/2002/July/GenericDataAccessCompActivator.asp Thanks for the post Robby! and a great example of alot of key concepts. joe Quote Joe Mamma Amendment 4: The right of the people to be secure in their persons, houses, papers, and effects, against unreasonable searches and seizures, shall not be violated, and no warrants shall issue, but upon probable cause, supported by oath or affirmation, and particularly describing the place to be searched, and the persons or things to be seized. Amendment 9: The enumeration in the Constitution, of certain rights, shall not be construed to deny or disparage others retained by the people.
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.