c# - VS2017 and LocalDB 2014 -


i try explain rapidly issue. i'm kind of newbie db, i'm trying create "database manager" using windows form c# code in vs2017.

btn_click code is:

 try  {       sqlconnection conndb = new sqlconnection(@"data source=(localdb)\mssqllocaldb;attachdbfilename=" + path + @";integrated security=true");      conndb.open();      messagebox.show("connection ok on datasource=mssqllocaldb");      conndb.close();  }  catch   {       messagebox.show("connection fail on mssqllocaldb!");  } 

now, when i'm using windows 10 , localdb 2016 works great. when l try run same exe on win 7 localdb 2014 code give me message on catch code.

i understand developed using sql server 2016 , win 7 localdb 2014 doesn't support it.

how can set vs2017 use sql server 2014 develop in order allow pc (win 7 or win 10) work localdb? can explain step step, please? there other way develop vs2017 , run "old" pc?


Comments

Popular posts from this blog

c# - Update a combobox from a presenter (MVP) -

How to understand 2 main() functions after using uftrace to profile the C++ program? -

How to put a lock and transaction on table using spring 4 or above using jdbcTemplate and annotations like @Transactional? -