Skip to content

String to Date e.g. Jan 58 to 1958-01-01

I want to turn a short date in varchar into a date: ‘Short month name – YY’ format such as ‘Apr-57’ or ‘Mar-2001’ to an readable format for MSMS to turn it into a date such as 1957-04-01 or 2001-03-01….

Select * into #Temp not working in dynamic SQL

When I create a temporary table and insert data into that temporary table through dynamic SQL its work fine. But when I use select * into #TempTable1 from YourTable in dynamic SQL it throw error. I am unable to understand the cause of this error. Table: Working Code:- Not Working Code: Error: Msg 208 Level 16…