connection-string

What is the maximum and minimum size of connection pool ADO.Net Supports in the connection string?

徘徊边缘 提交于 2019-11-29 03:13:15
What is the maximum and minimum size of connection pool ADO.Net Supports in the connection string. Min Pool Size=[max size ?] Max Pool Size=[min size] There is no documented limit on Max Pool Size. There is however an exact documented limit on maximum number of concurrent connections to a single SQL Server (32767 per instance, see http://msdn.microsoft.com/en-us/library/ms143432(v=SQL.90).aspx) . A single ADO.NET pool can only go to a single instance, so maximum effective limit is therefore 32767. Min pool size is zero Default Max Pool Size 100 Min Pool Size 0 Connection Pooling for the .NET

How do I set an ADO.NET Entity Framework connection string via the Windows Azure (Preview) Management Portal?

人走茶凉 提交于 2019-11-29 02:56:25
In the Windows Azure (Preview) Management Portal you can change the configuration options for web sites (see http://www.windowsazure.com/en-us/manage/services/web-sites/how-to-configure-websites/#howtochangeconfig ). I currently set the connection string for my ADO.NET Entity Framework connection via Web.Release.Config, but I want to set it via the Management Portal, but no matter what I use, I always end up with the following error: The specified named connection is either not found in the configuration, not intended to be used with the EntityClient provider, or not valid. It does work for

What is the correct format for Running Entity Framework migrate.exe tool without a Web/App.config?

安稳与你 提交于 2019-11-29 02:03:31
问题 We recently switched to Entity Framework data migrations and I am working on some build automation scripts for our MVC app. I can successfully run the migrations from our build server using the migrate.exe tool in 4.3 if I have a Web.config to point it at. The command looks something like: ProjectName\packages\EntityFramework.4.3.1\tools\migrate.exe MyAssembly /startupdirectory:ProjectName\bin\Debug /startupconfigurationfile:ProjectName\Web.config /verbose However, for various reasons I would

Can I Add ConnectionStrings to the ConnectionStringCollection at Runtime?

[亡魂溺海] 提交于 2019-11-29 01:17:55
Is there a way where I can add a connection string to the ConnectionStringCollection returned by the ConfigurationManager at runtime in an Asp.Net application? I have tried the following but am told that the configuration file is readonly. ConfigurationManager.ConnectionStrings.Add(new ConnectionStringSettings(params)); Is there another way to do this at runtime? I know at design time I can add a connection string to the web.config; however, I'm looking to add something to that collection at run time. Thanks EDIT: One of the reasons why I'm attempting to do this is due to a security

Wait! which config file? (Entity Framework Connection String)

限于喜欢 提交于 2019-11-29 00:24:10
问题 So, I created my entity model in a separate class library. I had to add the connection string to the app.config file of that class library. Then I added a ref for that project in my web application. I added the same connection string in the web.config of my web application thinking this is where Entity Framework will be reading the connection string from. Everything was fine up until I deployed my web app. When I deployed I change the connection string in the web.config (not app.config of the

C# Retrieving correct DbConnection object by connection string

本秂侑毒 提交于 2019-11-28 23:14:57
问题 I have a connection string being passed to a function, and I need to create a DbConnection based object (i.e. SQLConnection, OracleConnection, OLEDbConnection etc) based on this string. Is there any inbuilt functionality to do this, or any 3rd party libraries to assist. We are not necessarily building this connection string, so we cannot rely on a format the string is written in to determine its type, and I would prefer not to have to code up all combinations and permutations of possible

sql server query running slow from java

跟風遠走 提交于 2019-11-28 21:41:06
I have a java program that runs a bunch of queries against an sql server database. The first of these, which queries against a view returns about 750k records. I can run the query via sql server management studio, and I get results in about 30 seconds. however, I kicked off the program to run last night. when I checked on it this morning, this query still had not returned results back to the java program, some 15 hours later. I have access to the database to do just about anything I want, but I'm really not sure how to begin debugging this. What should one do to figure out what is causing a

Centralize connection strings for multiple projects within the same solution

。_饼干妹妹 提交于 2019-11-28 21:34:26
I currently have three projects in my solution that all have their own App.config file with the same exact connection string. Is there a way to consolidate the connections strings / app.config files so that I only need to make changes to one location? There's a few ways you could do it: Put common configuration settings in machine.config as shown here Put common configuration settings in a central file and link to that in each projects's app.config as shown here Store the configuration settings in the registry For me, i always work with the last solution :) Good luck! You can share the

Oracle connection string without tnsnames.ora file

浪尽此生 提交于 2019-11-28 20:43:17
I am using the .NET framework with the System.Data.OracleClient namespace. I have the oracle 11 client installed on my computer. I do not want to use the tnsnames.ora file to store connection information. Could someone please tell me what the connection string would look like if I did not want to use the tnsnames.ora file? I will be storing the connection string in a web.config file of a Web Application Project. Gordon Thompson http://www.connectionstrings.com/oracle This is a great resource SERVER=(DESCRIPTION=(ADDRESS=(PROTOCOL=TCP)(HOST=MyHost)(PORT=MyPort)) (CONNECT_DATA=(SERVICE_NAME

Encrypt and deploy app.config

折月煮酒 提交于 2019-11-28 19:23:37
I read and tested a lot to find the best practice to encrypt and deploy an app.config to different machines. In general, I would like to secure the content of the connection string from third parties and deploy the application to different machines. I will not configure each machine manually. I know there are several ways like: Aspnet_Regiis (RSAProtectedConfigurationProvider, DPAPIProtectedConfigurationProvider) bound to a machine, user or custom. RSA encryption key. System.Security.Cryptography.ProtectedData bound to a machine or user. Encrypt the app.config at the first execution. Which is