Quantcast
Channel: SQLServerCentral » Programming » Powershell » Latest topics
Viewing all articles
Browse latest Browse all 467

Case Sensitive DB Name problem

$
0
0
I have a powershell script that scales up a SQL Azure database. It uses the cmdlet Get-AzureSqlDatabase.Users can pass in parameters to specify things like DatabaseName.Unfortunately, this parameter is case sensitive and we don't have a consistent naming pattern for our databases.Is there any way to make this case insensitive?[code="other"]$ddw = Get-AzureSqlDatabase -ResourceGroupName $Group -ServerName $ServerName -DatabaseName $DBName[/code]$DBName should be able to be "MyDatabase" or "MYDATABASE" or "Mydatabase" and still retrieve the db information.

Viewing all articles
Browse latest Browse all 467

Latest Images

Trending Articles



Latest Images