connection-string

SQL Server 2012 classic asp connection string

自闭症网瘾萝莉.ら 提交于 2020-01-04 14:04:00
问题 I have a SQL Server 2012 Express installation with a new DB called BRD that I have created. I have also created a test table ( tempDemo ), and a test stored procedure ( getStList ) in the BRD database. The stored procedure works when I run it in the query window so I believe the table and stored procedure are legit. The SQL Server is set to "SQL Server and Windows Authentication mode". I then attempted to create a Classic ASP page that then connected to the SQL Server using the following

Is it possible to reference a connection string in another connection string?

社会主义新天地 提交于 2020-01-04 11:14:38
问题 We have a project with multiple DLLs. In each DLL, we connect to a database - always the same one for a client. As a result, we now have 3 near-identical connection strings : one for our web site, one for ado.net, and one for telerik reporting : <add name="BDConnectionString" connectionString="Data Source=localhost;Initial Catalog=DATABASE;Persist Security Info=True;User ID=USER;Password=PASSWORD; MultipleActiveResultSets=True;Pooling=True;Max Pool Size=500;" providerName="System.Data

Is it possible to reference a connection string in another connection string?

拟墨画扇 提交于 2020-01-04 11:12:50
问题 We have a project with multiple DLLs. In each DLL, we connect to a database - always the same one for a client. As a result, we now have 3 near-identical connection strings : one for our web site, one for ado.net, and one for telerik reporting : <add name="BDConnectionString" connectionString="Data Source=localhost;Initial Catalog=DATABASE;Persist Security Info=True;User ID=USER;Password=PASSWORD; MultipleActiveResultSets=True;Pooling=True;Max Pool Size=500;" providerName="System.Data

Getting error: A network-related or instance-specific error occurred while establishing a connection to SQL Server

ε祈祈猫儿з 提交于 2020-01-04 09:26:14
问题 I'm newbie developer. I have a problem trying to connect to SQL Server from my computer to server machine. A network-related or instance-specific error occurred while establishing a connection to SQL Server. The server was not found or was not accessible. Verify that the instance name is correct and that SQL Server is configured to allow remote connections. (provider: SQL Network Interfaces, error: 26 - Error Locating Server/Instance Specified) I've searched the way to issue it and I'm found

System.Configuration.ConfigurationManager.ConnectionStrings has no connection string configured

谁都会走 提交于 2020-01-04 06:04:53
问题 Whenever I try to run anything in my C# code I get the following error: System.InvalidOperationException was unhandled by user code Message=No connection string configured and it happens in the following code. if (System.Configuration.ConfigurationManager.ConnectionStrings["DBContext"] == null) { throw new System.InvalidOperationException("No connection string configured"); } connectionString = string.Format("{0};Application Name={1}", System.Configuration.ConfigurationManager

SQL Server 2012: Login to PC-NAME\SQLEXPRESS works, but not to local/(local)

感情迁移 提交于 2020-01-04 05:28:46
问题 I'd like to login to my SQL Server 2012 Express with servername local or (local) but it doesn't work. The only servername which works is PC-Name\SQLEXPRESS . local/(local) has to work somehow because I have to use the following connection string: Data Source=localhost;Initial Catalog=... 回答1: I've reinstalled it and ensures to select "default instance" instead of "named instance" during the installation. Now everything is fine again. 回答2: I think I see what you're trying to do now. If you

which to use OLEDB or ODBC for SYbase

对着背影说爱祢 提交于 2020-01-04 02:34:07
问题 I am not able to figure out which drivers should I use. Even I don't know what I have. When I am trying to make the connection string through the .udl file it only shows SYbase ASE OleDB Provider while in install folder I can see in driver list Syabse Ase ODBC driver but in connection string it is unable to pick up the driver, here I used Driver = (Sybase ASE ODBC Driver) What should I go for? Thanks 回答1: Using udl you have only the possibility to generate a connection string that uses an

MongoDB C# driver timeout

。_饼干妹妹 提交于 2020-01-03 13:29:52
问题 I am trying to post some data into my remote mongodb instance which is a replica set, however I am getting a timeout exception saying that the host is not found? I have also read around and added ?connect=replicaSet at the end of the connection string but this did not help. Here is my connection string private MongoClient client = new MongoClient("mongodb://10.250.8.1:27017,10.250.8.2:27017,10.250.8.3:27017?connect=replicaSet"); and here is the exception that has been thrown: {"A timeout

The ConnectionString property has not been initialized error

随声附和 提交于 2020-01-03 05:52:05
问题 I'm using an asp.net web application with a MySql DB, with the following connetcion string the web.config: <add name="techConnectionString" connectionString="server=vm-tmysql01;User Id=user;database=tech;password=pass" providerName="MySql.Data.MySqlClient"/> And this is the code I'm using the get the connection string from the web.config: System.configuration.configurationmanaget.connectionstrings["techConnectionString"].connectionstring; For some reason I get the error: The ConnectionString

How do I put connection string with IP Address inside web.config file?

假装没事ソ 提交于 2020-01-03 05:21:57
问题 We are currently using the following connection string in our web.config file: add name="DBConnectionString" connectionString="Data Source=ourServer;Initial Catalog=ourDB;Persist Security Info=True;User ID=theUserName;Password=thePassword" providerName="System.Data.SqlClient" /> This works fine. However, this app needs to be pushed to our external server. This means, according to our infrastructure team that we will need a connection string with ip address and port 1433 to be able to connect