Answer by Grant Fritchey
How about a little adjustment like this: $Tables = invoke-sqlcmd -query "SELECT name FROM sys.tables WHERE name LIKE 'Movie%'" -database "MovieManagement" -serverinstance "MyServer" foreach ($Table in...
View ArticleAnswer by WilliamD
Although Grant's answer does the job (+1), there is more than one way to skin a cat: Take a look at [Getting Data out of SQL Server from Powershell][1] to see a few examples. [1]:...
View ArticleAnswer by Grant Fritchey
How about a little adjustment like this: $Tables = invoke-sqlcmd -query "SELECT name FROM sys.tables WHERE name LIKE 'Movie%'" -database "MovieManagement" -serverinstance "MyServer" foreach ($Table in...
View ArticleAnswer by WilliamD
Although Grant's answer does the job (+1), there is more than one way to skin a cat: Take a look at [Getting Data out of SQL Server from Powershell][1] to see a few examples. [1]:...
View Article
More Pages to Explore .....