---
title: "Discussion on \"Stop Having Multiple Connection Strings in C#\" | Hashnode"
description: "Discussion on \"Stop Having Multiple Connection Strings in C#\". In this article, I will discuss how you can query/access your SQL database from multiple files in a C# project by only using one connection string."
url: "https://hashnode.com/posts/stop-having-multiple-connection-strings-in-csharp/650d8aa97a8bf59d37af316d"
---

[Feed](https://hashnode.com/feed) /

Discussion

# [Stop Having Multiple Connection Strings in C#](https://noor-ahmed.hashnode.dev/stop-having-multiple-connection-strings-in-csharp?utm_source=hashnode&utm_medium=feed)

In this article, I will discuss how you can query/access your SQL database from multiple files in a C# project by only using one connection string.

Sep 22, 2023 · 2 min read · noor-ahmed.hashnode.dev  
Read the article

-   [#csharp](https://hashnode.com/tag/csharp)
-   [#connection-string](https://hashnode.com/tag/connection-string)
-   [#net](https://hashnode.com/tag/net)
-   [#net-framework](https://hashnode.com/tag/net-framework)
-   [#windows-forms](https://hashnode.com/tag/windows-forms)

## Written by

[Noor Ahmed](https://hashnode.com/@noor-ahmed938)

@noor-ahmed938 · Sheffield, UK

  
[View profile](https://hashnode.com/@noor-ahmed938)

Software Engineering Student

I am a software engineer intern from the UK and I have worked with multiple technologies like MERN stack, JavaScript, Python etc. I also like to contribute to open source on Github.

## Responses

Markdown supported · ⌘↵ to post

No responses yet.
