While I have coded in many languages and platforms over 40 years (including Windows since 3.0), this is my first project using .NET for a new client. I'm using ADO.NET MVC 4 on Visual Studio 2012. The application is an Intranet MVC application using Windows authentication. The database (for development) is an internal VS SQL Server Compact 4.0 Local Database within the project. I am having frustration getting the built-in connection mechanisms to the database to do exactly what I want to (.NET keeps doing what IT thinks I want to do and bloating out what should be simple queries). I just want to install an ODBC driver and use the ODBC connection to directly issue SQL statements. Unfortunately, there is no ODBC driver included in .NET.
Add ODBC driver to Visual Studio 2012
1. How do I get an ODBC device driver for .NET and install it into Visual Studio?
2. What should my connection string be when I am using an Intranet app piggybacking on internal Windows authentication (no uid or pwd needed in connection string)?
FWIW, the database location is at C:\Dev\CriticalNotes\CriticalNotes\App_Data\CriticalNotes.spf
I will be very appreciative of a rapid response...
The only alternative would seem to be installing NHibernate, but that is also overkill for what this app has to do database-wise.
Thanks in advance
Nilesh JadavPosted Aug 8, 2015, 12:20 AM
John NovackPosted Aug 7, 2015, 10:37 AM
Thanks. Good stuff. I long for the days of the direct coding of assembly, C, C++, and even the original releases of C# and Core Java. I hate today's IDEs generating my final code for me after I have to write somewhat cryptic code bending around my elbow with @Html helpers and whatnot. It's never what I would have written as a direct solution and ends up with badly bloated systems. But, IMHO. YMMV.
Several academic studies in recent years have shown that the standard corporate web apps created each new year with our highly abstracted language/IDE/framework systems are actually running slower than those from the year before - and are slowing down at a greater rate than cpu speed in increasing. Does not bode well for the future. Give me 5 true ANSI C/C++ wizards and I'll blow away any 30-person team using Java. Ruby, Python/PHP , or .NET in speed of development, quality of production code, and elegance of design.
Nilesh JadavPosted Aug 7, 2015, 8:40 AM
Read this article here for the same :
www.dofactory.com/reference/connection-strings
when you get the drivers, just go to the server explorer, add new database - -> select odbc driver from the database.
Follow these steps: