D
D
DD-var2020-03-03 13:24:36
SQL
DD-var, 2020-03-03 13:24:36

How to connect database SQL locally?

in the properties of the database I set it so that it would not be copied all the time and VS began to give out the following error:
"An attempt to attach an auto-named database for file D:\probes\ddd3\ddd3\bin\Debug\Database1.mdf failed. A database with the same name exists, or specified file cannot be opened, or it is located on UNC share."
db load code:

private void Form1_Load(object sender, EventArgs e)
        { 
            
            // TODO: данная строка кода позволяет загрузить данные в таблицу "database1DataSet.names". При необходимости она может быть перемещена или удалена.
            this.namesTableAdapter.Fill(this.database1DataSet.names);
            // TODO: данная строка кода позволяет загрузить данные в таблицу "database1DataSet.Tplak". При необходимости она может быть перемещена или удалена.
            this.tplakTableAdapter.Fill(this.database1DataSet.Tplak);
 
        }


how as a result to register a way to database1???

Answer the question

In order to leave comments, you need to log in

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question