与数据库进行异步操作的连接字符串的写法
2009-09-17 19:33
411 查看
string GetConnectionString()
// To avoid storing the connection string in your code,
// you can retrieve it from a configuration file.
// If you have not included "Asynchronous Processing=true"
// in the connection string, the command will not be able
// to execute asynchronously.
{
return "Data Source=(local);Integrated Security=SSPI;" +
"Initial Catalog=AdventureWorks;" +
"Asynchronous Processing=true";
}
// To avoid storing the connection string in your code,
// you can retrieve it from a configuration file.
// If you have not included "Asynchronous Processing=true"
// in the connection string, the command will not be able
// to execute asynchronously.
{
return "Data Source=(local);Integrated Security=SSPI;" +
"Initial Catalog=AdventureWorks;" +
"Asynchronous Processing=true";
}
相关文章推荐
- Python教程:连接数据库,对数据进行增删改查操作
- nodejs中使用async来对异步操作进行同步,避免多个异步同时启动引发连接错误
- JDBC的各种数据库的驱动下载及连接字符串URL写法
- Flash与ASP进行连接数据库操作
- 各种数据库的JDBC驱动下载及连接字符串URL写法
- node.js 开发指南 – Node.js 连接 MySQL 并进行数据库操作
- Microsoft.Jet.OLEDB.4.0数据库连接字符串中密码的写法!
- 各种数据库的JDBC驱动下载及连接字符串URL写法
- C# 连接 MySQL 并进行数据库操作(入门篇)
- 如何读取配置文件并连接后台数据库,且对数据库进行操作实例(查询或修改等)
- 各种数据库的JDBC驱动下载及连接字符串URL写法
- JDBC连接数据库,对数据库进行增删查改操作
- 各种数据库连接字符串的写法
- PowerShell 连接 SQL SERVER 数据库进行操作
- 如果数据库用(local)\sqlexpress登陆,C#的连接字符串写法
- 各种数据库的JDBC驱动下载及连接字符串URL写法
- node.js 开发指南 – Node.js 连接 MySQL 并进行数据库操作
- 数据库连接字符串的写法(参考)
- java中连接数据库操作的语句,获得执行sql语句对数据库进行操作
- 一些数据库连接字符串写法