dbconnection
How to use different connections according to query type in Yii
All my reads should go to one DB connection All my writes should go to another connection How do I accomplish this in Yii, with minimal changing the code of the core library?[详细]
2023-04-05 11:18 分类:问答DB Connection Timeout simulation
Is there an way to simulate a db connection timeout? I\'m encounter开发者_高级运维ing problems with a timeouted db connection on a productive system and need to simulate a similar situation. One way[详细]
2023-03-25 23:29 分类:问答MvcMiniProfiler not working with Oracle's Connection Object
the last line of the following code triggers an exception: OracleConnection conn = new OracleConnection(getConnectionString());[详细]
2023-03-24 09:23 分类:问答Right query to get the current number of connections in a PostgreSQL DB
Which of the following two is more accurate? select numbackends from pg开发者_高级运维_stat_database;[详细]
2023-02-15 23:11 分类:问答DbTransaction and DbConnection when working with EF4
I\'m trying to implement a Unif Of Work around ObjectContext of EF4 in a web application. The UoW is an HttpModule. What I need is to get the current transaction for the connection. When an http reque[详细]
2023-02-08 17:41 分类:问答Executing a stored procedure using a DbConnection
I need to execute a stored procedure on a database. This is what I got so far that works: protected DbProviderFactory dbProviderFactory;[详细]
2023-02-01 23:37 分类:问答Working with database in the OnExecute event (Indy)
i have a server with these codes : procedure TFrmMain.TCPServerExecute(AContext: TIdContext); begin Res := DoRegister(Name,Family,Username,Password);[详细]
2023-01-12 07:30 分类:问答ASP.NET Sql Provider
I got a problem. When i\'m cr开发者_开发技巧eating the new project in ASP.NET using VS 2010, it\'s web.config with a default connection string about SQL Express created. But i haven\'t even got SQL Ex[详细]
2023-01-02 08:27 分类:问答C# + Disposing DbConnection and DbCommand and catching error
I am trying to understand DbConnection and DbCommand, and the proper way to dispose those objects after use.[详细]
2022-12-24 12:04 分类:问答How much timeout to use in isValid()?
In the method from Connection, how much timeout should I give it? :S I have no idea what a normal timeout would be, how much time should it take? :)[详细]
2022-12-11 09:28 分类:问答