connection-string

where to store database string connection in java web app?

拥有回忆 提交于 2019-12-05 09:23:39
I'm about to begin my first project with java Let me tell how I used to handle these things... So far now, I've been workin on asp with a com+ componente made with VB6. The component is registered via the com+ administration console with a domain user, something lile my_company_domain\my_app_account The components reads the configuration from an udl file, configured to access the DB with integrated security. I invoke the componente from asp with server.createobject, the component runs with the specified domain account, and so every DB access runs with this account... What I like from this

ASP.Net configuration file -> Connection strings for multiple developers and deployment servers

限于喜欢 提交于 2019-12-05 07:42:54
I have a team of three developers, two of whom use a standard local test database, one of whom uses his own database and there is also a server environment with a production database and a testing database. This amounts to multiple connection strings required. The web.config file periodically gets updated and keeps having to be changed by each developer when a source control update is performed, as well as the fact that sometimes a developer accidentally checks in his personal web.config file change with his connection string, which temporarily interrupts us after running a subsequent update

How to read connection string inside .NET Standard Class library project from ASP.NET Core

孤街醉人 提交于 2019-12-05 07:39:57
问题 In my solution, I have a ASP.NET Core web project and a .NET Standard class library project. Class library project is the data access layer and I want to read the connection string from my appsettings.json (ASP.NET Core project) in my data access layer. I have found few answers such as by Andrii Litvinov which looks like quite straight forward to implement but he also mentioned about implementing through Dependency Injection. I don't want to choose the easy shortcut way but looking for the

EF4 and Connection String

懵懂的女人 提交于 2019-12-05 04:51:47
I have a 3 tiered project. 1) Project.Data (EDMX file) 2) Project.Model (POCO's) 3) Project.Console (Console app) I have added the connection string into the Project.Console . <?xml version="1.0" encoding="utf-8"?> <configuration> <connectionStrings> <add name="ProjectEntities" connectionString="metadata=res://*/Project.csdl|res://*/Project.ssdl|res://*/Project.msl;provider=System.Data.SqlClient;provider connection string="Data Source=PC\SQLEXPRESS;Initial Catalog=Project;Integrated Security=True;MultipleActiveResultSets=True"" providerName="System.Data.EntityClient" /> </connectionStrings> <

Using a LINQ Where query to get only some of the ConfigurationManager.ConnectionStrings

此生再无相见时 提交于 2019-12-05 04:28:32
My goal is to use a LINQ Where query on the ConfigurationManager.ConnectionStrings collection in a console application (assume a fresh .NET 4.5 console application with a System.Configuration reference added, and a correspodning using statement). I started with this, which does not work : var relevantSettings = ConfigurationManager.ConnectionStrings.Where(s => s.Name.StartsWith("Xyz")); It tells me that: The type arguments for method ' IEnumerable<TSource> System.Linq.Enumerable.Where<TSource(this IEnumerable<TSource>, Func<TSource,bool>) ' cannot be inferred from the usage. Try specifying the

ConnectionStrings in app.config. What about security?

纵然是瞬间 提交于 2019-12-05 04:21:43
问题 Is it really a Good Thing to put connection strings with passwords in the app.config file? It seems to me that the app.config is not encrypted in any way and the password information can be easily read. I have an app which accesses a database for which the intended end-user have no authentication. A group user/password is used. The application only starts if the current windows user is in an Active Directory group. So, once in the app, the user is allowed to connect to the DB using the group

What is the connection string to use Azure Storage Emulator with a Webjob?

风流意气都作罢 提交于 2019-12-05 02:11:23
I have a simple WebJob which I wish to test with the Azure Storage Emulator. I currently have set the AzureJobsRuntime and AzureJobsData set to use development storage as follows: <connectionStrings> <add name="AzureJobsRuntime" connectionString="UseDevelopmentStorage=true;" /> <add name="AzureJobsData" connectionString="UseDevelopmentStorage=true;" /> </connectionStrings> The webjob is very simple: public static void Main(string[] args) { JobHost host = new JobHost(); host.RunAndBlock(); } public static void Process([QueueInput("queue")] string input, [BlobOutput("containername/blobname")

Error occurred during the pre-login handshake

▼魔方 西西 提交于 2019-12-05 00:27:20
Please read in the entirety before marking this as duplicate. In a project that I am debugging I receive a SqlException saying the following: Additional information: A connection was successfully established with the server, but then an error occurred during the pre-login handshake. (provider: SSL Provider, error: 0 - The wait operation timed out.) This occurred during a debugging session where the previous session executed only seconds before without problem. Since the initial exception, I am unable to connect to the database server in this project. The exception is thrown on the

To close or not to close an Oracle Connection?

自作多情 提交于 2019-12-04 23:52:39
问题 My application have performance issues, so i started to investigate this from the root: "The connection with the database". The best practices says: "Open a connection, use it and close is as soon as possible", but i dont know the overhead that this causes, so the question is: 1 -"Open, Use, Close connections as soon as possible is the best aproach using ODP.NET?" 2 - Is there a way and how to use connection pooling with ODP.NET? I thinking about to create a List to store some connections

Is there a need to secure connection string in web.config?

纵然是瞬间 提交于 2019-12-04 23:12:05
So I am using connection strings in my web.config using SQL authentication. Of course people say this could be a vulnerability as you are storing password in plaintext. However, from what I know, IIS never serves web.config, and web.config should only have read access to administrators and IIS anyway. So if the hacker has gained access to the webserver, then it won't matter what encryption I use because the private key will be on the webserver. Wouldn't encrypting connection string be classified as security through obfuscation? Is it worth encrypting web.config connection string and storing