connection localDB visual study

Asked

Viewed 293 times

-1

Good evening, I downloaded I Paste system in Vb from the internet , but when I will test the error application in connection of sql server. it already came configured, I even played the file . mdf into the folder like this in connection configuration I don’t know what to do, help me please
I’m using visual studio 13

    <connectionStrings>
        <add name="Sistema_Colegio.My.MySettings.COLEGIOConnectionString"
            connectionString="Data Source=(LocalDB)\MSSQLLocalDB=|DataDirectory|\bin\Debug\COLEGIO.mdf;Integrated Security=True"
            providerName="System.Data.SqlClient" />

inserir a descrição da imagem aqui

  • Do you have SQL Server Localdb installed on the machine? The file \bin\Debug\COLEGIO.mdf exists in the project directory?

  • do not have it installed no friend. and yes this in the directory!

1 answer

0

  • friend installed Localdb. but I have to install sql express as well ? if yes I am downloading my windows update to be able to install and see if it works ok obg by the attention

  • You do not need to install the entire SQL Express. Only the Localdb part. Anyway, it is interesting to have the entire tool if you solve manage your database with more features.

Browser other questions tagged

You are not signed in. Login or sign up in order to post.