Skip to content
Advertisement

Tag: sql-server-2008-r2

SQL Find duplicate sets

given this Schema: table tblSET SetID int PK SetName nvarchar(100) Table tblSetItem SetID int PK ItemID int PK tblSetItem.SetID is a FK into the tblSet Table. Some data: …

How to return default value from SQL query

Is there any easy way to return single scalar or default value if query doesn’t return any row? At this moment I have something like this code example: How to do that in better way without using IF-ELSE? Answer Assuming the name is not nullable and that Id is unique so can match at most one row.

Recover sa password [closed]

Closed. This question is off-topic. It is not currently accepting answers. Want to improve this question? Update the question so it’s on-topic for Stack Overflow. Closed 10 years ago. Improve this question I have a computer which was used by another employee. SQL Server 2008 R2 was installed but I don’t know the ‘sa’ password. When I try to alter

Advertisement