Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 99863
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 11, 20262026-05-11T00:28:10+00:00 2026-05-11T00:28:10+00:00

In the .xsd file for a typed DataSet in .NET, there’s a <Connections> section

  • 0

In the .xsd file for a typed DataSet in .NET, there’s a <Connections> section that contains a list of any data connections I’ve used to set up the DataTables and TableAdapters.

There are times when I’d prefer not to have those there. For instance, sometimes I prefer to pass in a connection string to a custom constructor and use that rather than look for one in settings, .config, etc.

But it seems like if I remove the connection strings from that section (leaving it empty), or remove the section entirely, the DataSet code-generation tool freaks out. Whereas if I don’t remove them, the DataSet gripes when I put it in a different project because it can’t find the settings for those connection strings.

Is there any way I can tell a typed DataSet not to worry about any connections? (Obviously I’ll have to give it a connection if I change any TableAdapter SQL or stored procs, but that should be my problem.)

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. 2026-05-11T00:28:11+00:00Added an answer on May 11, 2026 at 12:28 am

    This has bugged me for a long time as well and I did some testing recently. Here is what I came up with. For the record, I’m using VS 2008 SP1.

    • Datasets will store connection string information whether you want them to or not.
    • You can make sure datasets won’t store passwords in their connection strings.
    • You can either have the connection string stored in the ‘connections’ section the .xsd file or you can have it stored in the app.config file and referenced from the ‘connections’ section of the .xsd file. Either way, the ‘connections’ section appears to be a requirement.

    If you find a way to make it work, please post here. Currently, I store the connection string in the xsd file and make sure I’m not storing the password. Then, when I use it it code, I always create my own connection and never use one stored in the dataset.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Ask A Question

Stats

  • Questions 73k
  • Answers 73k
  • Best Answers 0
  • User 1
  • Popular
  • Answers
  • Editorial Team

    How to approach applying for a job at a company ...

    • 7 Answers
  • Editorial Team

    How to handle personal stress caused by utterly incompetent and ...

    • 5 Answers
  • Editorial Team

    What is a programmer’s life like?

    • 5 Answers
  • added an answer i just open in Kate, if formatting is an issue,… May 11, 2026 at 2:00 pm
  • added an answer I recently wrote an article on creating and using an… May 11, 2026 at 2:00 pm
  • added an answer from everything I can see the UIViewController's self.navigationController is designed… May 11, 2026 at 2:00 pm

Related Questions

In the .xsd file for a typed DataSet in .NET, there's a <Connections> section
As stated in the title, i'm looking for an XML schema (XSD-file) for the
In the past, I have used XSD.exe to create c# classes from an xsd.
How can I represent the following in XSD. <price-update> <![CDATA[ arbitrary data goes here
What is the best way to deal with XML documents, XSD etc in C#
I have seen many references stating that TableAdapters are weak and silly, and that
I am trying something very simple, but for some reason it does not work.
I'm working with some schema which defines an abstract complex type, eg. <xs:complexType name=MyComplexType
Not all that familiar with XSD, I wonder if it is possible to do

Trending Tags

analytics british company computer developers django employee employer english facebook french google interview javascript language life php programmer programs salary

Top Members

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.