SQL: Using PowerShell to Check if a Table, View, or Stored Procedure Exists
#Usage # set variables $sqlServer='sql-server04' $databaseName="Test_Database" $objectType='view' $objectName='[dbo].[Test_View]' $saCred=get-credential # Call function checkDatabaseObject $sqlServer $databaseName…
0 Comments