Nazneen Sayed

Nazneen Sayed

  • NA
  • 32
  • 4.1k

Cannot find correct connection string

Apr 1 2017 4:12 AM
Hi,

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
"https://www.connectionstrings.com/sql-server-2014/"
helpful but i dont know what i am doing wrong.

What I have tried:

the connection string which works fine on my machine is :  <pre>   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

Answers (4)