Quantcast
Channel: Answers for "Powershell export multiple tables to csv"
Browsing all 6 articles
Browse latest View live

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 Article



Answer 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

Answer by shaiss

worked for me, I just had to add the brackets on line 6 [$TableName]

View Article

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 Article

Answer 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


Answer by shaiss

worked for me, I just had to add the brackets on line 6 [$TableName]

View Article
Browsing all 6 articles
Browse latest View live




Latest Images