Page 1 of 1

sql localdb and AttachDbFileName

Posted: Wed 14 Nov 2012 10:00
by tonisanta
Hi,
from documentation of sqllocaldb (sql 2012) there should be an AttachDbFileName= parameter, useful to attach a .mdf available during the session is active. It would be fine if you could provide a property AttachDbFileName in the TMSConnection.
And just another thing would be fine: if the indicated instance in Server does not exist and the provider is (localdb), so a "sqllocaldb.exe create name_instance" should be launched.
best regards
Toni

Re: sql localdb and AttachDbFileName

Posted: Wed 14 Nov 2012 11:58
by AndreyZ
Hello,

1. To set the AttachDBFileName connection string option, you can use the TMSConnection.Options.InitialFileName property.
2. You can leave your suggestion at our UserVoice page at http://devart.uservoice.com/forums/1046 ... components , and if there are many votes for your suggestion, we will implement it.

Re: sql localdb and AttachDbFileName

Posted: Wed 14 Nov 2012 12:55
by tonisanta
Great! The Options.InitialFileName works fine.
The "AutoCreateInstance"-feature would be fine but is not essential.
Many thanks for your prompt feedback.
Toni

Re: sql localdb and AttachDbFileName

Posted: Wed 14 Nov 2012 13:03
by AndreyZ
Feel free to contact us if you have any other questions about SDAC.