Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- $DBName = $wfcatalog
- ([string]$sqlServer, [string]$DBName)
- $wfexists = $FALSE
- try
- {
- $conn = New-Object system.Data.SqlClient.SqlConnection
- $conn.connectionstring = [string]::format("Server={0};Database={1};Integrated Security=SSPI;",$sqlServer,$DBName)
- $conn.open()
- $wfexists = $true
- }
- catch
- {
- Write-Log -type Info "DB $DBNAME on $sqlServer does not exist continuing with install"
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement