excel 导入到access时
    
	
	protected void Button1_Click(object sender, EventArgs e) 
     { 
  
         string file = "Sheet1"; 
         string conn = " Provider = Microsoft.Jet.OLEDB.4.0 ; Data Source =" + Server.MapPath("excel.xls") + ";Extended Properties='Excel 8.0;HDR=NO;'"; 
         OleDbConnection thisconnection = new OleDbConnection(conn); 
         thisconnection.Open(); 
         string Sql = "select * from [" + file + "$]"; 
         OleDbDataAdapter mycommand = new OleDbDataAdapter(Sql, thisconnection); 
         System.Data.DataSet ds = new System.Data.DataSet(); 
         mycommand.Fill(ds, "[" + file + "$]"); 
         thisconnection.Close(); 
  
         //string conn1 = "User ID=sa;Data Source=127.0.0.1;Password=;Initial Catalog=Lecture;Provider=SQLOLEDB.1;"; 
         OleDbConnection thisconnection1 = new OleDbConnection(ConfigurationManager.AppSettings["strConn"].ToString() + System.Web.HttpContext.Current.Server.MapPath(ConfigurationManager.AppSettings["dbPath"])); 
         thisconnection1.Open(); 
         int count = 
    
 
	相关问答:
        
    
    麻烦各位帮忙看看啊
代码如下:
CoInitialize(NULL);
     _ConnectionPtr pConn(__uuidof(Connection));  
	_RecordsetPtr pRst(__uuidof(Recordset));
	pConn->ConnectionString="Provider ......
    
        
    
    在阿帕奇的web access log中,有一个是用户名选项,默认是域用户名。如果我用的是form 方式登陆,想把这个用户名写到access log中怎么实现?
楼上的, 现在的access log 是这样的 
 2009-07-04 02:16:37 110.110 ......
    
        
    
    最近学习asp,当练习到连接数据库的时候,频频出错,可就是不知道错在怎么地方,请高手帮忙看看!!谢谢!
包含文件xx.asp、xxsave.asp、conn.asp以及student1.mdb和表xxgl……
xx.asp为:
<html>
<hea ......
    
        
    
    如何修改msysobjects表中的数据呢?谢谢
啥都没有,意思不明确,再详细点吧
不要改sysobjects里的东西。
用其它方法改,表名或其他。
要在ACCESS环境下配置权限,才能访问系统表...
谢谢大家。
是这样,看 ......
    
        
    
     要做个远程通信程序,操作access数据库,这个程序需要读取一条数据,然后将其删除.另外一个程序也要操作同一个access的同一个表,此程序要进行插入操作.两个程序会同时操作一个表.我想知道同时操作access的话,能行吗?
 ......