60 likes | 77 Views
Assignment changes and clarifications (to be on the web soon). You can delete hw3 tables , but be careful Create ODBC same as for Interdev; do not use NT Authentication Program in the \iinetsrv project space for project, wherever for hw5 hw5 should still run when log files are unavailable
E N D
Assignment changes and clarifications (to be on the web soon) • You can delete hw3 tables , but be careful • Create ODBC same as for Interdev; do not use NT Authentication • Program in the \\iinetsrv project space for project, wherever for hw5 • hw5 should still run when log files are unavailable • Each view should be per user • For CS logs, files are added once a day • 1 table for user, or all users in same table; your choice • Please refer to your tables with username info (e.g., [csepclab\rap].raplogs)
What (and how) to turn in • E-mail Rachel (rap@cs.washington.edu) code • Hand in hard copy of: • screen shots • a README telling what extra cool features are in your assignment, and assignment rating • for each user, number of accesses by date • Due next Friday
Visual J++ • New Project • Visual J++ Project • Console Application
JDBC calls • Sample created for you. • Get help! Links to be added • On reserve in Engineering library: • Client/Server Programming with Java and CORBA by Robert Orfal • Database Programming with JDBC and Java by George Reese
JDBC Class.forName("com.ms.jdbc.odbc.JdbcOdbcDriver"); java.sql.Connection c = DriverManager.getConnection("jdbc:odbc:entities",”login I mailed you",”passwd I mailed you"); java.sql.Statement s= c.createStatement(); java.sql.ResultSet rs; rs = s.executeQuery("Select * from [csepclab\\hongyu].Office"); java.sql.ResultSetMetaData md = rs.getMetaData(); while (rs.next()){ area.append("\nTUPLE: |"); for (int i = 1; i <= md.getColumnCount();i++){ area.append(rs.getString(i) + " | "); }
Other helpful info in Java • boolean File.isDirectory() • String[] File.list()