Skip to content

Tag: sql-server

SQL Pivot String Data

I have a tables in SQL Server: Product Product Table: This is the output that I need: An ImageID can have maximum 3 ProductID It is not necessary that all ImageID will have 3 products [eg. ImageID=3] Answer Your were very close, you just needed to incorporate Row_Number() Example

SQL Server : delete user

I’m trying to write a query to delete a user registration from my SQL Server database, but when I try to delete a user, I get this error: System.InvalidOperationException: ‘ExecuteReader: …