When I try to put |DataDirectory| into a Connection String it would keep directing to C:\Program Files (x86)\Microsoft Visual Studio\2017\Community\Common7\IDE for some reason. Any idea what could have altered the directory path, or where could I find the default setting for DataDirectory? App.config doesn't have a "connectionStrings" in it's code either.
My |DataDirectory| points to C:\Program Files (x86)\Microsoft Visual Studio\2017\Community\Common7\IDE
977 Views Asked by Dog At
1
There are 1 best solutions below
Related Questions in SQL
- Can MVC.NET prevent SQL-injection at razor or controller level?
- SQL server not returning all rows
- When dealing with databases, does adding a different table when we can use a simple hash a good thing?
- Creating a parametrized field name for a SELECT clause
- Combine two rows based on common ID
- Column displays each count
- Slick query for one to optional one (zero or one) relationship
- Aggregate and count in PostgreSQL
- MAX and GROUP BY - SQL
- SQL statement for a tricky 2 table query
- How to create nested selects with sql?
- Pull and push data from and into sql databases using Excel VBA without pasting the data in Excel sheets
- Best Practice for adding columns to a Table in Oracle database
- SQL FIFO STACK using two tables
- SQL Query - Order by String (which contains number and chars)
Related Questions in WPF
- WPF MessageBox Cancel checkbox check
- WPF multiple control property simultaneous changes
- ObservableCollection.CollectionChanged does not select the correct DataTemplate on ToolBar
- Telerik's WPF RadColorPicker NoColorText property not working
- How to automate UI interaction during acceptance test run
- Binding to "this.property" object in VisualStateMenager
- ContextMenu Closes Immediately
- Update ObservableCollection where the items are received from another List
- change content button with trigger
- WPF - How to highlight a combobox border when focused
- Wpf No Highlight on ListBoxItem for Touch Devices
- WPF WebBrowser how best to get Tag trees
- Make a class suitable for Property Change Notification
- WPF Comparing two datatables to find matching values
- how to create folder and file with datetime in wpf application
Related Questions in DATADIRECTORY
- What is SQL Server's SQLDataRoot Registry Value used for?
- error: 'Can't connect to local MySQL server through socket '/var/lib/mysql/mysql.sock' (2)' after changing path of data dir
- Why does the PostgreSQL 16.0 EDB installer fail when using its own generated data folder for installation?
- In VStudio 2019, VB, .NET-5: for a ClickOnce installed app, how do I locate the application's data directory at runtime?
- Delete file in data directory
- How do I search for a folder in a folder in c#?
- Changing datadirectory in mariadb
- Changing the docker data directory to a non root location changes the disks name
- Datadirectory for mysql not found on Ubuntu
- My |DataDirectory| points to C:\Program Files (x86)\Microsoft Visual Studio\2017\Community\Common7\IDE
- Cordova [Android platform] migration from API 29 to API 30
- sql exception when transferring project from usb to c:\
- Is it possible to have Postgres (13 on CentOS 8) data directory on a shared drive with oracle VBOX (6.1 on Windows 10)?
- How do I find the data directory for MySQL Server 5.7 on Windows 10?
- C# Visual Studio: |DataDirectory| keyword in connection string conflicts mdf files
Trending Questions
- UIImageView Frame Doesn't Reflect Constraints
- Is it possible to use adb commands to click on a view by finding its ID?
- How to create a new web character symbol recognizable by html/javascript?
- Why isn't my CSS3 animation smooth in Google Chrome (but very smooth on other browsers)?
- Heap Gives Page Fault
- Connect ffmpeg to Visual Studio 2008
- Both Object- and ValueAnimator jumps when Duration is set above API LvL 24
- How to avoid default initialization of objects in std::vector?
- second argument of the command line arguments in a format other than char** argv or char* argv[]
- How to improve efficiency of algorithm which generates next lexicographic permutation?
- Navigating to the another actvity app getting crash in android
- How to read the particular message format in android and store in sqlite database?
- Resetting inventory status after order is cancelled
- Efficiently compute powers of X in SSE/AVX
- Insert into an external database using ajax and php : POST 500 (Internal Server Error)
Popular Questions
- How do I undo the most recent local commits in Git?
- How can I remove a specific item from an array in JavaScript?
- How do I delete a Git branch locally and remotely?
- Find all files containing a specific text (string) on Linux?
- How do I revert a Git repository to a previous commit?
- How do I create an HTML button that acts like a link?
- How do I check out a remote Git branch?
- How do I force "git pull" to overwrite local files?
- How do I list all files of a directory?
- How to check whether a string contains a substring in JavaScript?
- How do I redirect to another webpage?
- How can I iterate over rows in a Pandas DataFrame?
- How do I convert a String to an int in Java?
- Does Python have a string 'contains' substring method?
- How do I check if a string contains a specific word?
I am not sure if you can change it in the
App.config, but you can change theDataDirectorypath in your c# code. In my case, we do this in thebootstrapper, depending on Debug/Release Configuration. You can set theDataDirectorywith this code: