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

  • SEARCH
  • Home
  • 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 7730823
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 1, 20262026-06-01T06:19:26+00:00 2026-06-01T06:19:26+00:00

I have been reading up on Linq to SQL security and am unsure of

  • 0

I have been reading up on Linq to SQL security and am unsure of something.

In Visual Studio, when I drag and drop a table from Server Explorer under Data Connections, I receive the following messsage:

“The connection string contains credentials with a clear text password and is not using integrated security. Do you want to save the connection string to the current DBML file and application configuration files with this sensitive information? Click No to save the connection string without the sensitive information.”

What I gather is if I click yes, the password is included in the connection string saved to the DBML file and application configuration files. But what I am unsure about is, is this warning for local access that anybody who has access say to the project could see the password in the configuration files, or does it actually mean that when you connect to the database, the password is being sent to the database in clear text.

If the password is being sent across to the database in clear text, how do you secure your LINQ to SQL connection?

Thanks,

Neill

  • 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. Editorial Team
    Editorial Team
    2026-06-01T06:19:27+00:00Added an answer on June 1, 2026 at 6:19 am

    Visual Studio raises that alert because you are saving the details in plain text configuration, rather than sending the password to the db in clear text.

    There are various approaches to securing your webconfig file using Protected Configuration.

    For example this SO question, this MSDN article or this Scott Gu blog all detail these approaches.

    I find the aspnet_regiis command to be the easiest approach for securing the connection strings in my webconfig files.

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

Sidebar

Related Questions

I have been reading about the differences between Table Variables and Temp Tables and
I've been programming for a while and have used LINQ-To-SQL and LINQ-To-Entities before (although
In my WCF web service I have been reading from the database with no
I have been reading Programming Microsoft® Visual C#® 2008: The Language to get a
I have been reading up on Anti-XSS Security Runtime Engine and it looks like
I have been doing a lot of reading on LINQ to XML but unfortunately
I have been reading about how read.table is not efficient for large data files.
I've recently been reading Louis Davidson's book on Sql Server Database Design and found
Have been reading about async and tasks and been attempting to convert the CopyFileEx
I have been reading through the C++ FAQ and was curious about the friend

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.