ms-access


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?

Related Links

Printing parameters in an Access parameter query
How do you set the required property when adding a column in Access using ADOX?
Export From Access to Excel
access 2010 - parameters button is disabled
Several If Statements in an access 2007 vba subroutine. Curious if there is another way?
reliable way of overwriting access database on live website
How to specify page width and length for printed (or html) report?
How to bind the contents of a combo box to the value of another
Access VBA: DLookUp function giving type mismatch error
Microsoft Access - If Null then
How do i reference the value of a control in a rowsource query?
How to query number of attachments from Attachment field in Microsoft Access?
Problem adding a row into a typed dataset
Efficient use of calculations in MS Access
Access VBA: Set record source of form on button click
Layout hierarchical issue in an Access report

Categories

HOME
sendgrid
client
image
cloud
youtube-api-v3
ip
icloud
disassembler
ebean
mouse
virtualization
vifm
size
windows-server-2012
lombok
django-simple-history
reactcsstransitiongroup
undefined
reverse-proxy
language-agnostic
titanium-mobile
pdb
scorm2004
xmlreader
android-nestedscrollview
ios5
overlap
disassembling
libraries
sharefile
android-fingerprint-api
squib
mesos-chronos
node-sass
btrace
executenonquery
scorm
rainbowtable
osx-mavericks
hibernate-tools
atomicity
errordocument
jquery-nestable
theming
datastax-startup
winscp-net
pg-dump
np-complete
windows-iot-core-10
dwscript
orthogonal
yt-project
parallel-data-warehouse
lua-5.1
essence
master-slave
oauth2client
rhino-servicebus
tform
itextpdf
hsv
intel-fortran
tmuxinator
quicklisp
sankey-diagram
kineticjs
facebook-graph-api-v2.4
android-nested-fragment
socketexception
xcode-6.2
navigationservice
comexception
uv-mapping
flash-builder4.5
ora-00911
back-stack
eventual-consistency
android-hardware
kyotocabinet
factory-method
anonymous-methods
pvrtc
word-processor
ocx
getmessage
bubble-chart
pendrive
bigcouch
boost-filesystem
spyware
f#-powerpack
winbugs14
radcombobox
subviews
mirah
bespin

Resources

Mobile Apps Dev
Database Users
javascript
java
csharp
php
android
MS Developer
developer works
python
ios
c
html
jquery
RDBMS discuss
Cloud Virtualization
Database Dev&Adm
javascript
java
csharp
php
python
android
jquery
ruby
ios
html
Mobile App
Mobile App
Mobile App