本文介绍了如何为MS Access编写连接字符串的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
亲爱的先生,
我需要MS Access的连接字符串。请帮忙。
对于MS SQL,我曾经写过连接字符串:
Server =。; Database = krishna; User Id = sa;密码= sa;
对于Excel:
string excelConnectionString = @Provider = Microsoft.Jet.OLEDB.4.0;数据源= C:\Details.xls;扩展属性=Excel 8.0; HDR = YES;;
Dear Sir,
I required connection string for MS Access. Please help.
For MS SQL I used to write the string for connection :
"Server=.;Database=krishna;User Id=sa;Password=sa;"
For Excel :
string excelConnectionString = @"Provider=Microsoft.Jet.OLEDB.4.0; Data Source=C:\Details.xls;Extended Properties=""Excel 8.0;HDR=YES;""";
推荐答案
这篇关于如何为MS Access编写连接字符串的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!