String connStr = "PERSIST security info = true; user ID = sa; password = tonhe; initial catalog = mynotebook; data source = localhost;";
String sqlstr = "Insert Notebook (Subject, Href, Content, Type) VALUES ('" txtsubject.text ",'" txthref.text ", '" txtcontent.text "," i ")" ;
SQLCONN = New SqlConnection (connStr);
Sqlconn.open ();
Sqlcmd = new sqlcommand ();
Sqlcmd.connection = sqlconn;
Sqlcmd.commandtext = SQLSTR;
Sqlcmd.executenon query ();
Sqlcmd.dispose ();
Sqlconn.close ();