connection-string

Multipleactiveresultsets in Entity Framework 4.1 Code First

会有一股神秘感。 提交于 2019-12-20 09:03:21
问题 This is my first EF project so bear with me please. When updating an entity such as Department, you pull it from the context, update its values and call context.SaveChanges. However, if you update Department.Employees, EF does not find that funny. I searched and came up with the option of setting Multipleactiveresultsets=true in the connection string but want to know if: Is this the recommended way? Does this adversely affect performance / what should I look out for? 回答1: Enabling MARS is

Connection string hell in .NET / LINQ-SQL / ASP.NET

帅比萌擦擦* 提交于 2019-12-20 08:33:10
问题 I have a web application that comprises the following: A web project (with a web.config file containing a connection string - but no data access code in the web project) A data access project that uses LINQ-SQL classes to provide entities to the web project UI (this project has a settings file and an app.config - both of which have connection strings) When I build and deploy, there is no settings file or app.config in the Bin directory with the data access .dll, but changing the connection

Managing A Debug and Release Connection String

拥有回忆 提交于 2019-12-20 08:30:59
问题 What is a good approach to managing a debug and release connection string in a .NET / SQLServer application? I have two SQL Servers, a production and a build/debug and I need a method of switching between the two when my ASP.NET application is deployed. Currently I simply store them in the web.config and comment one or the other out, however that is error prone when deploying. 回答1: Create a Debug and Release version of the Web.config file, e.g. Web.debug.config and Web.release.config. Then

What will be connection string to Access database file with PHP

吃可爱长大的小学妹 提交于 2019-12-20 05:13:05
问题 I installed WAMP, I have access database file in project folder, but don't have installed Access on my computer. Can I read and update Access file with PHP even I don't have installed Access? And what will be connection string to Access database file? I really need help with this. 回答1: All you need is the PHP api for ODBC. Here is the example from the docs itself: <?php // Microsoft SQL Server using the SQL Native Client 10.0 ODBC Driver - allows connection to SQL 7, 2000, 2005 and 2008

What will be connection string to Access database file with PHP

你说的曾经没有我的故事 提交于 2019-12-20 05:12:06
问题 I installed WAMP, I have access database file in project folder, but don't have installed Access on my computer. Can I read and update Access file with PHP even I don't have installed Access? And what will be connection string to Access database file? I really need help with this. 回答1: All you need is the PHP api for ODBC. Here is the example from the docs itself: <?php // Microsoft SQL Server using the SQL Native Client 10.0 ODBC Driver - allows connection to SQL 7, 2000, 2005 and 2008

The value's length for key 'data source' exceeds it's limit of '128'

社会主义新天地 提交于 2019-12-20 05:11:13
问题 I know that a very similar question has been asked here, but the answer didn't help me. I am using Entity Framework 6 with the Oracle.ManagerDataAccess.Client. If I define the connection string in app.config, then the connection works. If I specify the identical connection string in code, then I get the error The value's length for key 'data source' exceeds it's limit of '128'. which is correct. This is my connection string (with some names removed): "User Id=xxxxxxxxxxx;Password=xxxx;Data

Oracle connection string with at sign @ in pasword

别说谁变了你拦得住时间么 提交于 2019-12-20 02:44:08
问题 I have a code that connect to oracle using connection string: conn = cx_Oracle.connect('username/password@server:port/services') But the problem is my password contain @ character so it may become conn = cx_Oracle.connect('username/p@ssword@server:port/services') it return DatabaseError: ORA-12154: TNS:could not resolve the connect identifier specified I use Django with Oracle with this settings DATABASES = { 'default': { 'ENGINE': 'django.db.backends.oracle', 'NAME': 'Services', 'USER':

Java newbie needs help in database connection

妖精的绣舞 提交于 2019-12-20 01:39:35
问题 I'm new to Java and even newer to java database connections. I've managed to create a database connection and query a table when I put it in the Main class. Now that I've moved it into a new class called Connection I am getting errors: package lokate; import java.sql.DriverManager; import java.sql.SQLException; import java.sql.Statement; import java.sql.ResultSet; public class Connection { private static Statement stmt = null; private static ResultSet rs = null; private static Connection con

Oracle: what is the “instantclient” connection string format?

怎甘沉沦 提交于 2019-12-19 19:55:49
问题 and how does it differ from the regular connection string? 回答1: Connecting with the instant client is no different than with the full stack client - all connect string formats are the same. If you installed the instant client in a non-standard location on the filesystem or are having problems connecting to the database listener, be sure that your TNS_ADMIN environment points to the directory that contains your tnsnames.ora and sqlnet.ora files, 回答2: Here is a comprehensive list of connection

What does “pooling=false” in a MySQL connection string mean? [closed]

ぐ巨炮叔叔 提交于 2019-12-19 17:30:12
问题 Closed. This question is off-topic. It is not currently accepting answers. Want to improve this question? Update the question so it's on-topic for Stack Overflow. Closed 6 years ago . What does pooling=false in a .NET connection-string for a MySQL database mean? This is the complete connection string: return new MySqlConnection("SERVER=localhost;DATABASE=myDataBase;USER=###;PASSWORD=***;POOLING=FALSE;"); 回答1: When pooling=false the connection will not return to the pool when you call