Manage the existing connection in the data connection manager in .NET

xiaoxiao2021-03-06  20

Recently, I found a new SqlConnection control to set up Connectionstring on the interface, there is a long database connection drop-down list. I feel very depressed, I want to clear these.

I checked online, I found that I don't know if the key is wrong or it is ok. So I thought about it, this stuff certainly had a file of this machine, according to our usual ideas, this eastern east may be clear. Oh, I suddenly found that Microsoft is not a little bit very bad about security. There are a password in many connection strings. In case it is being taken to this file is not bad. I then found a previously used connection string in the operating system to contain the lookup (Win2000), and really let me find it. C: / Documents and Settings / Administrator / Application Data / Microsoft / Visualstudio / 7.1 / ServeRexplorer, in this directory in this directory. .NET automatically generates a file of defaultView.seView, all of which have been used in connection characters.

Clear method:

Each time you drag a Connection control to the interface and then prepare Connectionstring, the system reads the contents in the DEFAULTVIEW.SEVIEW file. When you exit the system, save these contents to the defaultview.seview file. If this file does not exist, it will be created automatically. So it is recommended that you want to delete this file should make sure that all references to the Connection control are closed.

转载请注明原文地址:https://www.9cbs.com/read-40177.html

New Post(0)