در تنظیمات Data Source جهت اتصال به LocalDB در Rider این مراحل باید طی شوند:
- پیش از هر کاری دو دستور زیر را اجرا کنید:
C:\>"C:\Program Files\Microsoft SQL Server\140\Tools\Binn\SqlLocalDB.exe" i MSSQLLocalDB ProjectsV13 v12.0 C:\>"C:\Program Files\Microsoft SQL Server\140\Tools\Binn\SqlLocalDB.exe" s MSSQLLocalDB LocalDB instance "MSSQLLocalDB" started.
خود Rider آغازگر این وهلهها نخواهد بود. به همین جهت نیاز است دستی آغاز شوند.
- سپس در صفحه تنظیمات Data Source، نوع Driver را بر روی SQL Server (jTds) قرار دهید.
- پایین صفحه، لینک download missing driver files ظاهر میشود. بر روی آن کلیک کنید تا به سرعت کار نصب و راه اندازی درایور کم حجم آن انجام شود.
- اکنون میتوانید در قسمت URL، گزینهی LocalDB و سپس وهلهی MSSQLLocalDB را از لیست Instance انتخاب کنید.
- در آخر بر روی دکمهی Test Connection کلیک کنید. اگر درایور را نصب نکرده باشید، این دکمه قابل انتخاب نخواهد بود.