About 12,400,000 results
Open links in new tab
  1. sql server - How can I generate a hierarchy path in SQL that leads …

    How can I generate a hierarchy path in SQL that leads to a given node? Asked 12 years, 11 months ago Modified 1 year, 8 months ago Viewed 25k times

  2. How Stuff and 'For Xml Path' work in SQL Server?

    Jul 4, 2015 · There is very new functionality in Azure SQL Database and SQL Server (starting with 2017) to handle this exact scenario. I believe this would serve as a native official method for …

  3. SQL Server: How to SELECT the installation path?

    Jul 3, 2012 · 13 How to select the installation path Note: xp_instance_regread doesn't read the registry key you specify, but instead converts that key path into the appropriate path for the …

  4. sql server - Relative path in t sql? - Stack Overflow

    Jun 12, 2016 · 11 How to get the relative path in t sql? Take for example a .sql file is located in the folder D:\temp, I want to get path of the file hello.txt in the folder D:\temp\App_Data. How to …

  5. sql server - Get Physical File Path of Any Database - Stack Overflow

    May 23, 2014 · C:\Program Files\Microsoft SQL Server\MSSQL10_50.MSSQLSERVER\MSSQL\DATA\ Why did it miss out the rest of the …

  6. How do I change "Database default locations" for LocalDB in SQL …

    When it does so, where those scripted databases get stored is heavily dependent on SQL Server's default file path settings. When the location of those EF code-first database files …

  7. sql server - How to get the relative path of file in SQLCMD Mode …

    Jan 6, 2012 · GO :r $(mypath)\todo_create_sprocs.sql GO Notes: The above method assumes only 1 file on the system is named todo_master.sql. If more than one file has that name, the …

  8. sql server - Parse file name and path from full path - Stack Overflow

    Oct 21, 2013 · I need to parse file name and file path from full path using SQL Query. Eg. Fullpath - \SERVER\D$\EXPORTFILES\EXPORT001.csv FileName Path EXPORT001.csv …

  9. How do I find the data directory for a SQL Server instance?

    Dec 11, 2009 · It depends on whether default path is set for data and log files or not. If the path is set explicitly at Properties => Database Settings => Database default locations then SQL …

  10. How can I find out the location of my (localdb) SQL Server 2012 ...

    Aug 13, 2013 · Look beneath the version key of the SQL Server instance being targeted e.g. 11.0 for SQL 2012, and see its InstanceAPIPath value for file system location of the localdb's.