i have this C# project in visual studio 2015 backend SQL Server 2014.
when i try to run on another PC the connection string wont work.i googled and found
Hide Copy Code
"https://www.connectionstrings.com/sql-server-2014/"helpful but i dont know what i am doing wrong.
What I have tried:
Hide Copy Code
the connection string which works fine on my machine is :string str = @"Data Source=(LocalDB)\MSSQLLocalDB;AttachDbFilename=C:\Users\xpert\Documents\RFID_DB.mdf;Integrated Security=True;Connect Timeout=30";
i have installed and updated correct version of SQL on Client PC.Please help me with the correct connection string
Amit GuptaPosted Apr 1, 2017, 5:36 AM
Nazneen SayedPosted Apr 1, 2017, 6:24 AM
Nazneen SayedPosted Apr 1, 2017, 5:20 AM
A database with the same name exists, or specified file cannot be opened, or it is located on UNC share
Jitendra ShekhawatPosted Apr 1, 2017, 4:53 AM