Connection string for oledb and sql

First case:oledb
OleDbConnection conn;
Conn.connectionstring=”microsoft.Jet.Oledb.4.0;data source=test.mdb;Persist Security Info=false”;
Second case:
SqlConnection conn;
Con.connenctstring=”datasource=servername;initial catalog=databasename;user id=username;pwd=password;”;

posted on 2008-01-04 16:55  飞天舞者  阅读(179)  评论(0编辑  收藏  举报

导航

For more information about me, feel free email to me winston.he@hotmail.com