1. Anuncie Aqui ! Entre em contato fdantas@4each.com.br

[SQL] Unable to connect to local database SQL

Discussão em 'Outras Linguagens' iniciado por Stack, Outubro 5, 2024 às 11:42.

  1. Stack

    Stack Membro Participativo

    I have a problem with my local database made with SQL Server (Local DB). I can connect to the database on my computer but if I try to another computer, I get this error message: [​IMG]

    I want a local database to store data, I don't need a server to manage the database.

    This is my connection string:

    `<connectionStrings>
    <add name="stocksDB" connectionString="Data Source= (LocalDB)\MSSQLLocalDB;AttachDbFilename=|DataDirectory|\myDB.mdf;Integrated Security=True;" providerName="System.Data.SqlClient"/>
    </connectionStrings>`


    I have included the "SQL Server 2012 Express LocalDB" in prerequisites.

    [​IMG]

    What did I do wrong?

    Continue reading...

Compartilhe esta Página