public DataSet GetMyData() { string TestConnection = "server=(local);database=MyDataBase;uid=sa;pwd=MyPassword"; SqlDataAdapter da = new SqlDataAdapter("select * from bob", this.TestConnection); DataSet ds = new DataSet(); da.Fill(ds, "MyTable"); return ds; }Now, if you weren't using SqlServer, you'd use the proper connection string for the other kind of database, plus you'd use the OleDbDataAdapter instead of the SqlDataAdapter:
public DataSet GetMyData() { string TestConnection = "MyDelphiConnectionString"; OleDbDataAdapter da = new OleDbDataAdapter("select * from bob", this.TestConnection); DataSet ds = new DataSet(); da.Fill(ds, "MyTable"); return ds; }In either case, the DataSet object remains the same ... same DataSet, same DataTables, same DataRows ... only the data itself will be different.