我正在嘗試使用the undocumented system procedure sp_MSforeachtable。但我需要將受影響的表限制爲那些以「smp」開頭且位於「dbo」模式中的表。我能夠找到如何找到以「smp」開頭的程序。我只是這樣做: sp_MSforeachtable @command1=' print ''?''', @whereand=' and name like ''smp
我需要檢查另一個過程中的指定事務以確保其他任何人都沒有執行該過程。 但對於這個問題,我試圖利用一個系統過程 EXEC sp_transactions 'xid','MyTran1' -- This will return a result if it finds a named transaction called MyTran1
我想知道,如果它返回一個排......按照RowsReturn