我有一個包含SQL Server數據庫列表的文件。我想從文件中刪除4個系統數據庫[master,model,msdb,tempdb]。我怎樣才能做到這一點?如何從文件中刪除重複的文本?
Server1
[DB1]
[DB2]
[DB3]
[master]
[model]
[msdb]
[tempdb]
Server2
[DB1]
[DB2]
[DB3]
[master]
[model]
[msdb]
[tempdb]
Server3
[DB1]
[DB2]
[DB3]
[master]
[model]
[msdb]
[tempdb]
謝謝mjolinor! – Animesh 2011-06-16 12:11:08