tag:blogger.com,1999:blog-5763764290649132593.post852410282586078782..comments2023-08-09T13:17:49.225+02:00Comments on CLOSED-LOOP: .Net Annoyance: Define |DataDirectory| for Connection StringsAnonymoushttp://www.blogger.com/profile/00990537252799084615noreply@blogger.comBlogger2125tag:blogger.com,1999:blog-5763764290649132593.post-43149552825953682732014-08-18T19:03:02.907+02:002014-08-18T19:03:02.907+02:00Thanks for the [Update 20100326]. I had a very sim...Thanks for the [Update 20100326]. I had a very similar requirement to get an integration test project up and running and this worked a treatAnonymoushttps://www.blogger.com/profile/12202213735653943766noreply@blogger.comtag:blogger.com,1999:blog-5763764290649132593.post-36175313551317657772011-08-13T15:40:05.788+02:002011-08-13T15:40:05.788+02:00Despite setting
AppDomain.CurrentDomain.SetData(&q...Despite setting<br />AppDomain.CurrentDomain.SetData("DataDirectory", @"C:\Program Files (x86)\Microsoft SQL Server\MSSQL10.SQLEXPRESS\MSSQL\");<br />in code,<br />the actual connection string still keeps het |DataDirectory| tag, hence doesn't find the directory.<br />Can't set the directory in the app.config file either, cos it can't handle the spaces in the path.<br />So, how can I access my database file in a path below "Program Files" (which is the default)?!!Joan Boshttps://www.blogger.com/profile/01055926341623988772noreply@blogger.com