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.
try take @ how opening connection. have tried this: c# console application invalid operation exception
Comments
Post a Comment