Using a LocalDB database from MS Access
Think this fits better here than ServerFault but happy to be corrected. I'm trying to use Access to look at a LocalDB database used by an app I'm developing, linking the tables rather than just copying the data. It works, to a degree, but on initially connecting, Access hangs for around 10 seconds then pops up an error; Connection failed: SQLState: '08001' SQL Server Error: -1 [Microsoft][Sql Server Native Client 11.0]SQL Server Network Interfaces: Error locating Server/Instance Specified [xFFFFFFFF]. Connection failed: SQLState: '08001' SQL Server Error: -1 [Microsoft][Sql Server Native Client 11.0]A network-related or instance-specific error has occurred while establishing a connection to SQL Server. Server is not found or not accessible. Check if instance name is correct and if SQL Server is configured to alow remote connections. For more information see SQL Server Books Online. After this error appears an SQL Server Login dialog which defaults to "Use trusted connection" with a blank server SPN. If I simply click OK on this dialog then it briefly works; I can import tables and see the data. If I repeat the process without closing Access to import more tables, I get the same 10 second delay and login prompt, suggesting it's not an abnormally long startup time on LocalDB. And any subsequent calls fail, including Access periodically refreshing things in the background, so it's pretty unusable. The process I've used to create the ODBC connection is; Add new System DSN, SQL Server. Specify a name. Enter "(localdb)\v11.0" as the Server. Uncheck "Connect to SQL Server to obtain default settings." Login left at default, "Integrated Windows authentication." Client config is left at default, named pipes. Attach Database Filename, get the path from the connection in Visual Studio- not the connection string, the MDF file it's pointing at. Change the default database to have the actual name of the DB. Googling around hasn't revealed any similar cases and solution. Does anyone know how to fix this?
Access 2016 vba to send email based on query results and record date email sent back to same table
Count unique values in Access
If ComboBox on Form is blank, Then
Trying to do a calculation with data from a date and the data from the day before
MS Access Front-end: Does each user need their own copy?
trying to filter subform based on contents of field on main form
How to use MS access on a server where MS Office is not installed
How do i import and eliminate first two row of website in msaccess while importing html pages
Multi criteria dlookup issue
Count all checkboxes in ms-access form…what am I doing wrong?
How do I set a default selection to a Listbox in MS Access
Microsoft Access not overwriting when exporting a query to excel
Using ms-access command-line tag /x but database opens read-only
Criteria with TempVars - but prompt user if tempvars is null
Crazy Cursor in TextBox on Table from ODBC database
Count of dates “This Month” to appear in a text box in Access Report