Sonar rule link: https://rules.sonarsource.com/csharp/RSPEC-3649
I have a sql string that takes DB name as parameter. It's like: UPDATE [@DBNAME].[dbo].[MyTable] SET [Column]='1'
Sonar doesn't accept this string but I can't give DB name as SqlCommand parameter.
Does anyone has an idea to fix this?
I am looking for a solution other than suppress or turning off Sonar Analysis.
ps: I use SqlServer 2012.