#sql-server
Read more stories on Hashnode
Articles with this tag
If you have a column with long text, you can cast it to XML and get it out. Here is an example where the text is so big that it is also...
Here is how to count bit in SQL SELECT Id, count(1) as TotalCount, SUM(CASE WHEN Addressed = 1 THEN 1 ELSE 0 END) as AddressedCount FROM...
Here is how to execute a raw SQL query. Since Entity frame uses reflections, you have to create some nested class so that properties can be bound to...
The quickest way to delete is using a stored procedure. I prefer stored procedures in a database project over dynamic SQL because renames will be...