public static void Main(string[] args) { string[] tables = new string[] { "page_visit_log", "buysell", "business" }; s = new dbserializer(new System.IO.FileStream("tmp.out", System.IO.FileMode.Create)); db db1 = new mssql_db(); db1.set_params("cs", "data source=192.167.0.101;initial catalog=vanbusiness;persist security info=False;user id=user1;password=passw0rd!;packet size=32768"); db1.connect(); s.write_header(); for (int i = 0; i < tables.Length; i++) { dbtable t = new dbtable(); t.id = i; t.name = tables [i]; s.put_table(t); db1.get_rows(t, process_row); } }
public static void Main (string[] args) { string[] tables = new string[]{"page_visit_log","buysell","business"}; s = new dbserializer (new System.IO.FileStream ("tmp.out", System.IO.FileMode.Create)); db db1 = new mssql_db (); db1.set_params ("cs", "data source=192.167.0.101;initial catalog=vanbusiness;persist security info=False;user id=user1;password=passw0rd!;packet size=32768"); db1.connect (); s.write_header (); for (int i=0; i<tables.Length; i++) { dbtable t = new dbtable (); t.id = i; t.name = tables [i]; s.put_table (t); db1.get_rows(t,process_row); } }