Skip to content

Commit c0d30fc

Browse files
committed
Missing quote name
1 parent 79b2a00 commit c0d30fc

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

sp_IndexCleanup/sp_IndexCleanup.sql

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1442,7 +1442,7 @@ WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
14421442
ce.can_compress = 0,
14431443
ce.reason = ''Index contains incompatible data types''
14441444
FROM #compression_eligibility AS ce
1445-
JOIN sys.indexes AS i
1445+
JOIN ' + QUOTENAME(@current_database_name) + N'.sys.indexes AS i
14461446
ON i.object_id = ce.object_id AND i.index_id = ce.index_id
14471447
WHERE ce.can_compress = 1
14481448
AND i.type = 1

0 commit comments

Comments
 (0)