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

    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 yet a way to enable this standard …

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

    May 7, 2015 · In SQL Server 2012 and later, there is the FORMAT() function. You can pass it a 'P' parameter for percentage. For example:

  3. sql server - How to get a date in YYYY-MM-DD format from a TSQL ...

    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 would it be …

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

    Jun 6, 2025 · Reopened as SQL Server 2012 has format function not in 2008.

  5. sql server - Format date as yyyy-MM-ddThh:mm:ssZ - Stack Overflow

    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 ideas how to

  6. 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?

  7. sql server - How to custom format a number in T-SQL - Stack Overflow

    Jun 20, 2024 · The FORMAT function uses .NET to format the string. In .NET you can use a custom culture with a specified NumberGroupSizes of [2], but in SQL Server you can only specify a standard …

  8. Formatting Numbers by padding with leading zeros in SQL Server

    Mar 2, 2012 · We have an old SQL table that was used by SQL Server 2000 for close to 10 years. In it, our employee badge numbers are stored as char(6) from 000001 to 999999. I am writing a web …

  9. Convert a SQL Server datetime to a shorter date format

    Oct 27, 2010 · 90 I have a datetime column in SQL Server that gives me data like this 10/27/2010 12:57:49 pm and I want to query this column but just have SQL Server return the day month and …

  10. Format Time in SQL Server? - Stack Overflow

    Dec 13, 2022 · The value of time or datetime data type is not stored with format in sql server. If you want to see the time in a different format you can manipulate the way that time and datetime data types …