c# - How to fix "'ServerVersion' threw an exception of type 'System.InvalidOperationException'"? -


i have got local sql server db, , running, , trying connect in seemingly failproof way:

new sqlconnection(@"server=(localdb)\v12.0;integrated security=true;database=mydbname;"); 

however, line throws exception: "'serverversion' threw exception of type 'system.invalidoperationexception'"? fix it?

i have run

sqllocaldb create "v12.0" 

but seems make no difference.

enter image description here

enter image description here

try take @ how opening connection. have tried this: c# console application invalid operation exception


Comments

Popular posts from this blog

html - Difficulties with background-image property -

visual studio code - What does the isShellCommand property actually do and how should you use it? -

ios - Segue not passing data between ViewControllers -