Friday 29 April 2016

Connection with SQL Server Part 3

The Connection String is used to Open Connection to the specified Sql Database

you can Copy it from Here
In Server Explore ,
Database Connection, You can see your Database

Right click on database and Click Properties


copy the connection string text:-
Past it to the con.connection string class Remove the C:etc\etc from Text And Fill Like this For Run Your application In Any Server

con.ConnectionString = "Data Source=.\\SQLEXPRESS;AttachDbFilename=|datadirectory|\\Database.mdf;Integrated Security=True;User Instance=True";
        

No comments:

Post a Comment

Part 20 consuming rest api in ionic

in this video, I will show you that how you can consume the rest API. in the previous video we have implemented the asp.net web API projec...