Questions tagged [connection-string]

A string containing information necessary for connecting to a service, usually database.

Filter by
Sorted by
Tagged with
0 votes
1 answer
47 views

Stashing ConnectionString in class

I have a class that initializes with a Connection String that various functions in the class use to access the SQL Database referenced. Currently the class stashes the passed in ConnectionString in a ...
  • 114
0 votes
1 answer
17 views

How to SSH into a server and then connect to a port?

I have a docker-compose.yml file that runs a MongoDB instance. This is happening on a remote server. The port for MongoDB is not exposed to the internet. I am trying to be able to connect to this ...
-1 votes
0 answers
36 views

How to read data from azure iot hub device via ESP8266 or Arduino [closed]

i am sending telemetry messeges from my local system to the Azure IOT HUB device,using primary connection string ,Using that data I want to control ESP8266 pins for some LED's.So how do i establish ...
0 votes
0 answers
37 views

Login failed for user ''. Reason: An attempt to login using SQL authentication failed. Server is configured for Integrated authentication only

Error: 18456, Severity: 14, State: 58. I'm using Windows authentication to connect to a SQL Server database from my ASP.NET Core MVC project. Connection is established successfully, but when I try to ...
0 votes
1 answer
51 views

64bit Connection string for Access DB

Our application written in c# has both 64bit and 32bit versions that can be installed. Trying to import data from a 3rd party access db The 32bit version will work with the connection string Provider=...
  • 293
1 vote
0 answers
18 views

.NET 6 Framework Code based configuration connection string setting

After .NET 6 Framework update we get code based configuration, which allows to push IDbConnectionFactory to SetDefaultConnectionFactory. Here public class DatabaseConfiguration : DbConfiguration {...
0 votes
1 answer
26 views

The connection string property has not been initialized, but everything is fine

Project structure: ASP.NET Core 6 MVC. I have tried uncountable guides to solve this problem, but none of them seems to work for me. When I run Update-Database, I get the following error: The ...
-2 votes
1 answer
30 views

I am having a problem opening an SQL Server Database in Visual Studio in C#

I am opening a Microsoft SQL Server Database in C# on Visual Studio. I create a new connection to the database using the following syntax: using (SqlConnection connectionString = new SqlConnection(&...
0 votes
1 answer
44 views

Cannot Connect to SQL-Server via Python on MacOS with M1

Environment System: Darwin Kernel Version 21.6.0 Python: 3.11.1 pyodbc: 4.0.35 OS: MacOS Monterey (12.6.3) DB: MS SQL Server (on vscode I am using mssql) driver: ODBC Driver 18 for SQL Server I am ...
0 votes
0 answers
21 views

How to connect to Mongo DB in Pyspark using spark session through zeppelin

How to connect to Mongo DB Using Spark session using zeppelin I am using the below script but am getting a authentication error? In the uri I am passing the connection string/port/user and password. ...
0 votes
0 answers
25 views

setting currentSchema in connection string causes IBM.Data.DB2.Core.DB2Exception

In our .net core 3.1 app we are using NuGet Gallery | IBM.Data.DB2.Core 3.1.0.600 package for connecting with DB2 . We are unable to set schema in connection string and this leaves us to use schema ...
0 votes
0 answers
27 views

Jasypt equivalent for Python

I'm trying to write a python application that must connect to a Postgres database. I'm trying to use psycopg2 for this. Here's my connection: connection = psycopg2.connect(user="username", ...
  • 5,332
0 votes
0 answers
40 views

Create a ServerConnection object to create an SMO server object in C#?

I'm trying to establish a connection to SQL server to use SMO. In my local machine with option1, I'm able to connect with option 1. However I have to run the same in a server machine (with SQL Server ...
  • 3
0 votes
0 answers
33 views

How can I publish my web app with new connection strings?

I'm using net core 3.1 with a Visual Basic Project and publishing to a folder that IIS uses for the website. We have recently moved our SQL database to a new server and I can't update the connection ...
0 votes
0 answers
75 views

In Visual Studio 2022 version 17.5, I'm facing a ConnectionString problem

In Visual Studio 2022 version 17.5, the connection string is regenerated repeatedly in the Web.config file. whenever I drop an object like a stored procedure it generates a new connection string with ...
0 votes
2 answers
68 views

Azure SSAS with data source to Azure SQL Server database - TOM C#

I have a project of Net Core which it create database, tables and measures in a Tabular model. I would like to create a data source to Azure SQL Server Database (I can do it whit sql server on premise)...
2 votes
3 answers
115 views

How can I securely store a database connection string in a C# web application?

I have a C# web app with a database connection string saved in the web.config file. This file is also part of a git repository. How can I save the connection string to prevent it from being ...
1 vote
0 answers
51 views

Azure Cosmos with Next JS - MongoServerSelectionError: Command hello not supported prior to authentication ERROR

While connecting Azure Cosmos for MongoDB from Next JS - mongodb (version: 5.0.1) I am getting this error - [next-auth][error][adapter_error_getSessionAndUser] https://next-auth.js.org/errors#...
0 votes
1 answer
48 views

How to pass value from DB to Listview/Grid View via binding?

I need to pass a value from a database to Listview via a binding. I managed to make static data by simply adding values to the List and linking them to the desired columns. But I don't understand how ...
0 votes
0 answers
133 views

Keyword not supported: 'datasource' in Abp framework startup project

Project: Abp 7.0 MVC EF Core I am getting the following error "System.ArgumentException: 'Keyword not supported: 'datasource'.'" with the first migration and seed of the DbMigrator project ...
0 votes
1 answer
42 views

Using multiple database connection string in web application web ,Doubts about asp.net web application appcode

Using multiple database connection string in web application web confing and changing the connection string base on the user in app_code file I am working on a asp.net c# web appliaction where we have ...
0 votes
1 answer
54 views

how to build a connection from c# to sql server using a dialog box?

Is there a way to show this dialog box inside my c# application in order to generate my connection string to my sql server database? if so how can I invoke this dialog and retrieve the connection ...
0 votes
1 answer
24 views

Connecting SSAS in another machine via connection string just like connecting a normal server

So what I'm trying to accomplish here is basically just like an SQL server connection, I want to connect SSAS instance from another computer in the same network using a login account. Things I search ...
0 votes
1 answer
114 views

Azure synapse linked service for Azure Function in Terraform

I'm writing a terraform script to create a azure synapse workspace. I've created a linked service for Azure Function but I'm unable to use it in pipeline, where it gives me an error of missing ...
  • 3
1 vote
0 answers
42 views

An error occurred using the connection to database '' on server ''. .NET Core Web API 7.0

I'm setting up a web API. My program.cs file looks like this: var serverVersion = new MySqlServerVersion(new Version(8, 0, 29)); builder.Services.AddDbContext<GameDbContext>( ...
0 votes
1 answer
21 views

How to get connection string from appsettings.json without using EF? I want to use in Data Access Layer project separated from my API project

I am developing a Web API using .Net 6 (Program.cs only). I am wondering how to get connection string from appsettings.json without using Entity Framework. Note: I have a Data Access Layer project ...
0 votes
0 answers
23 views

Sync two excel workbooks

I'm having a problem with syncing data between 2 excel workbooks. I found a lot of solutions on Internet that using data connect in excel. With data connect, I can connect Workbook1(main workbook) to ...
0 votes
2 answers
142 views

ASP.NET Core Web API - ConnectionString in project reference

I have a ASP.NET Core Web API project added to my solution. It uses a project dependency which connects to SQL Server database, using a connection string like this: public string connectionString = ...
1 vote
1 answer
38 views

"dbo_" Missing From DNS-Less Connected Tables

I've had a DNS-less connection to my SQL Servers for years... but all of a sudden some (not all) of the tables are coming across WITHOUT the "dbo_" in the table name. I need the "dbo_&...
  • 35
0 votes
0 answers
34 views

How to encrypt connection string in web.config as well as in transform files (web.release.config, web.production.config)

I am working on an ASP.NET MVC project. It has a web.config file and 3 transform files: web.debug.config, web.release.config, web.production.config. I want to encrypt the connection string in web....
  • 121
0 votes
1 answer
30 views

Is there a way to reuse mongodb connections so the server doesn't crash when there are too many cloud instances writing ina a collection?

I have a small python cloud function in GCP that validates a json file and then writes the content to MongoDB. The connection code is outside the callable in the cloud function, so I though that same ...
0 votes
0 answers
70 views

connectionString c# doesn´t works

I have a problem withthe connectionString I think. I have this: public List<Usuario> getUsuario() { List<Usuario> usuarios = new List<Usuario>(); string strConn = ...
0 votes
0 answers
41 views

How to access connection string from appsettings.json file using MySQL with Entity Framework Core context class

protected override void OnConfiguring(DbContextOptionsBuilder optionsBuilder) { IConfigurationRoot configuration = new ConfigurationBuilder() .SetBasePath(Directory....
0 votes
0 answers
75 views

Updating to SQL Server Driver 11.0 in DNS-Less Connection String Not Working

I'm trying to figure out why this driver works: stConnect = "ODBC;Driver={SQL Server};Server=" & stServer & ";Database=" & stDatabase & ";Trusted_Connection=...
  • 35
1 vote
1 answer
52 views

How can I include a variable for my connection string in the default settings value in the settings constructor and get it later?

I need to make the path for my database using the Application.StartupPath. In the property settings for my connection string I have the following: Data Source=(LocalDB)\MSSQLLocalDB;AttachDbFilename=&...
  • 13
-1 votes
1 answer
16 views

how to configure timeouts for MongoDB compass?

I am trying to find out how to configure timeouts for MonogDB compass. I tried to google, but couldn't get any answers
0 votes
0 answers
30 views

Must i push my dotenv file that contains only my mongodb connection string

I have created a simple task manager app that helps the user to perform all the crud operations using mongodb. I want to deploy it using render just , But render gives me error saying undefined ...
0 votes
1 answer
75 views

SAP_HANA) How to apply 'Client Code Page' option when connect to ODBC on Linux

When I run a SQL statement containing UTF8 characters, DB does not seem to recognize the character Encoding. When accessing SAP_HANA DB with ODBC, I want to pass the Code page to the factor together, ...
0 votes
1 answer
54 views

ADO.NET connection to SharePoint List causing memory leak

I am connecting to a SharePoint list using the following code. The problem is that if I run a Command, the console application hangs and doesn't close. I can see that the application is still ...
0 votes
1 answer
119 views

Why SQL Server Analysis Services Remote Connection work in Excel but not C# Web App

I have a SQL Server Analysis Services Cube published to a remote windows server, not attached to a domain. I can use use Excel to connect to it remotely by using the wizard at Data -> Get Data ->...
0 votes
0 answers
114 views

How do I encrypt a ConfigurationSection in ASP.NET Core 7.0?

I have a project with an appsettings.Development.json file, to which I've added the following section: "ConnectionStrings": { "Database one": "<Host...;Username=...;...
0 votes
0 answers
29 views

How .net Core EF knows during DB update dynamically built DB string

I am curious about EF behaviour and cannot figure out what is going on under the hood. In Program.cs of a Blazor project, I have the following way to create the connection string: var connectionString ...
  • 1
0 votes
2 answers
132 views

IOptions with Connection string

I have very simple appsettings: { "Logging": { "LogLevel": { "Default": "Information", "Microsoft.AspNetCore": "Warning" ...
0 votes
1 answer
30 views

Configure Power BI Service Paginated Report Database Connection

Tried to deploy paginated report to Power BI service. But could not find a way to configure the database connection string under Pro license
  • 41
0 votes
1 answer
97 views

Azure SQL Database with Access Frontend - Active Directory Authentication

I have a MS Access database serving as the frontend for an Azure SQL Server backend. I need to use both an ADO and an ODBC connection string for different functions (perform backend tasks, link ...
0 votes
1 answer
211 views

Power BI Gateway Connection Setting

When a gateway connection is added by clicking "Add to gateway", even though the database server name and database name are allowed to change on the popup UI, but after entering a new ...
  • 41
0 votes
1 answer
149 views

Why Changing Data Source Is Not Allowed in Power BI Service

Seems after a PBI report is deployed to PowerBI.com, the connection string cannot be updated. This is an issue if the report is built connecting to Dev database server. But need to be connected to ...
  • 41
0 votes
0 answers
46 views

SQL Server connection via LAN IP in windows Form

I want to connect my Windows Forms application via local area network. I want to enable database access via the Windows Forms application over the LAN. I have tried different connection string but it ...
1 vote
0 answers
35 views

ASP.Net MVC connections trying to remote SQL Server, unexpectedly creating a table

I am using the following connection string to connect to a SQL Server database Data Source=ip,1433;Initial Catalog=mydb;User ID=dev_user;Password=testPassword But instead of connecting, I am getting ...
0 votes
0 answers
93 views

NpgsqlConnection Connection Cannot Be Established

I have a PostgreSQL database in a client PC. I have a system which all the folders are stored in the server. I want to make a connection between my system to the database. These are the parameters. ...
  • 1

1
2 3 4 5
91