Questions tagged as 'connectionstring'

2
answers

SQL connection to bd in the network

I developed a C # application that uses SQL Express that initially the bd and the application were installed on a single machine. The client now needs the bd to be available from another computer on the network. I installed SQL Express on the "o...
asked by 14.04.2015 / 13:09
2
answers

What Connection String is used to make the connection between Cobol and B.D. Oracle?

I can not make a connection between a Micro Focus program Cobol and the Oracle database. I'm using the command: EXEC SQL CONNECT :USERNAME IDENTIFIED BY :PASSWD END-EXEC The error that returns me is:    Please speci...
asked by 27.03.2017 / 17:04
1
answer

ConnectionString returning null

When trying to execute my project I got the error:    System.NullReferenceException: 'Object reference not set to   an instance of an object. ' I have a bank class with the constructor: public bd() { conexao = new SqlConnection(Confi...
asked by 23.01.2018 / 19:25
2
answers

Open connection more than once in C #

I'm developing a service in C #. calls a function to check if it has active records. If I have a record I call another function to select the data for the first query. When I run my service, the connection error already occurs. So be...
asked by 24.10.2018 / 18:53
2
answers

Publish application Windows Form C #

I have an application developed with Windows Form C # + Entity Framework v6.1.3, where I use an existing database. The application works correctly, in Visual Studio 2013, where I'm developing. My App.config has ConnectionStrings...
asked by 08.04.2015 / 19:10
1
answer

Sql CE 3.5: Probile in DataContext Generation

When you try to generate the DataContext to a WindowsPhone 8.1 project, through the SQL Server Compact toolbox interface at: -Generate Code (EF / LINQ to SQL / SyncFX) > > Add Windows Phone DataContext to current Project (needs 3.5) li...
asked by 02.09.2014 / 19:24
0
answers

I can not connect to the MySql database

I have a classic ASP application and I can not connect to the database. I set up all the right faces stringConnection = {DRIVER = {MySQL ODBC 5.3.9 ANSI Driver}; SERVER = localhost; DATABASE = asseitsesi.com.br; UID = root; PWD =; Ignore Prep...
asked by 17.01.2018 / 12:41
1
answer

Change the database instance

I'm doing a project in MVC and my problem is that my database is automatically created in the "localdb" instance, but I wanted it to be created in my instance that I created in SQL Server. p> Is there a possibility to change this? And if it ex...
asked by 05.12.2017 / 17:43
0
answers

Error connecting to the database through Visual Studio

I'm trying to add a database to my application, the first one I got, but when trying to add another database I got the following error returned:    A network-related or instance-specific error occurred while establishing a connection to SQL S...
asked by 01.08.2017 / 05:05
0
answers

connection error sql

Good evening, I am trying to register in my application, however it is returning the following error:    Network-specific or instance-specific error when connecting to SQL Server. The server was not found or was not accessible. Verify that...
asked by 18.07.2017 / 03:08