About 73,300 results
Open links in new tab
  1. Format SQL in SQL Server Management Studio - Stack Overflow

    Feb 13, 2020 · In Visual Studio & other IDEs, you can easily auto format your code with a keyboard shortcut, through the menu, or automatically as you type. I was wondering if there is …

  2. Convert Date format into DD/MMM/YYYY format in SQL Server

    Jun 25, 2013 · I have a query in SQL, I have to get a date in a format of dd/mm/yy Example: 25/jun/2013. How can I convert it for SQL server?

  3. sql server - Format date as yyyy-MM-ddThh:mm:ssZ - Stack …

    I need to format a set of dates in SQL Server to the following format. yyyy-MM-ddThh:mm:ssZ I can't seem to find how to format the date with the T and Z parts included in the string Any …

  4. sql server - Convert Time DataType into AM PM Format: - Stack …

    May 31, 2012 · 91 Use following syntax to convert a time to AM PM format. Replace the field name with the value in following query.

  5. t sql - How to format datetime in SQL SERVER - Stack Overflow

    How to format datetime in SQL SERVER Asked 11 years, 5 months ago Modified 5 months ago Viewed 81k times

  6. How to convert SQL Server's timestamp column to datetime format

    Nov 14, 2011 · So you cannot convert a SQL Server TIMESTAMP to a date/time - it's just not a date/time. But if you're saying timestamp but really you mean a DATETIME column - then you …

  7. sql server - How to get a date in YYYY-MM-DD format from a …

    Feb 22, 2017 · How do I retrieve a date from SQL Server in YYYY-MM-DD format? I need this to work with SQL Server 2000 and up. Is there a simple way to perform this in SQL Server or …

  8. sql server - How do I format a number with commas in T-SQL?

    Dec 7, 2010 · 342 In SQL Server 2012 and higher, this will format a number with commas: select format([Number], 'N0') You can also change 0 to the number of decimal places you want.

  9. Format number as percent in MS SQL Server - Stack Overflow

    May 7, 2015 · I am trying to simply format a number as a percent with two decimal places. If it is 37 divided by 38 (aka .973684210526315789), I would like it to show 97.36 % in the SQL …

  10. How to convert date to ISO 8601 in SQL-Server? - Stack Overflow

    Sep 8, 2006 · I have a column with date format 2006-09-08 14:39:41.000. I want make a view using this column but I need the date to display in ISO 8601: yyyy-MM-ddThh:mm:ss.SSSZ. …