Exists and Expand wildcards
netblazer
Posts: 6
I had a happy (Select * FROM) DBA that wrote me a 4000 line script. I useed SQL Refactor to clean up the script and it worked great... except for this :
I had a few sections like this:
IF EXISTS (SELECT * FROM dbo.Clients)
BEGIN
SELECT 1 AS TEST
END
ELSE
BEGIN
SELECT 0 AS TEST
END
And when hitting the expand wildcard option, all the exists had the full columns listed. Now I know it doesn't change anything eprformance wise but I still see this as useless visual noise. I would be awesome if Refactor could recognize the exists and ignore the wildcard in the next parenthesis.
I had a few sections like this:
IF EXISTS (SELECT * FROM dbo.Clients)
BEGIN
SELECT 1 AS TEST
END
ELSE
BEGIN
SELECT 0 AS TEST
END
And when hitting the expand wildcard option, all the exists had the full columns listed. Now I know it doesn't change anything eprformance wise but I still see this as useless visual noise. I would be awesome if Refactor could recognize the exists and ignore the wildcard in the next parenthesis.
Comments