About 18,500 results
Open links in new tab
  1. sql server - Convert SQL Date MMDDYY varchar to Date?

    What year is 18? 2018 or 1918? Perhaps obvious, but you want to define that so you know you get the result you're looking for. In SQL server, there's a cut-off config (sp_configure) for what …

  2. sql server - Converting a VARCHAR to VARBINARY - Database ...

    0x9473FBCCBC01AFE and CONVERT to BINARY gives a completely different value 0x3078393437334642434342433031414645 I tried changing the value definition in the …

  3. How do I translate a Windows SID to an SQL Server server_user_sid?

    Jun 2, 2017 · There is this nice SQL Server function SUSER_SNAME which translates a server_user_sid to a user name. This is useful for translating well-known Windows SIDs to …

  4. sql server - How to find column which causing "Conversion failed" …

    Dec 6, 2020 · I've run into quite a lot of issues specially when it comes to conversion errors: convert (datetime, [fieldname]) or SELECT CAST ( [field2] AS int). Imagine a large select …

  5. sql server - Convert a date to yyyymmdd format - Database ...

    May 17, 2013 · Which SQL command is recommended to convert a date to yyyymmdd format? convert (varchar (8), getdate (), 112); or convert (varchar, getdate (), 112) I notice that if I use …

  6. How to Convert Data to Proper Case In SQL Server

    Mar 2, 2017 · SQL Server contains system functions for viewing / updating string data to both uppercase and lowercase but not proper case. There are multiple reasons for desiring this …

  7. sql server - Error converting VARCHAR (MAX) to XML due to "UTF …

    Oct 26, 2020 · Set the [data] column to use a UTF-8 collation (new in SQL Server 2019, so not an option for you) Set the [data] column to be NVARCHAR, and remove the encoding attribute of …

  8. sql server - how to convert this varchar to datetime format?

    When you have a specific date format in your varchar column, you can tell CONVERT what that format is in order to get a correct conversion, independently of language or regional settings.

  9. Decode Base64 String Natively in SQL Server

    Nov 20, 2017 · I have a varchar column in a table in SQL Server that holds a Base64-encoded text string, which I would like to decode into its plain text equivalent. Does SQL Server have …

  10. sql server - What's the most efficient way to safely convert from ...

    Dec 23, 2020 · What's the most efficient way to safely convert from Datetime2 back to Datetime Ask Question Asked 5 years ago Modified 5 years ago