string dr_sql="SELECT * FROM OpenDataSource( Microsoft.Jet.OLEDB.4.0, Data Source=\"{0}\";User ID=Admin;Password=;Extended properties=Excel 5.0)...[Sheet1$]";
dr_sql=string.Format(dr_sql,upaccessory.PostedFile.FileName);
正确的写法是什么?
if I understand you correctly what you are trying to do, you need to save the uploaded file to a temp file on the server, then use that new path to do a query against
思归的意思是:如果你是要把一个文件上传并保存到服务器上的临时文件的话,用新的路径再做一次sql查询。