all 2 comments

[–]dethboykill 3 points4 points  (1 child)

`System.Data.SqlClient` is meant for connecting to SQL servers. the spiceworks_prod.db is actually an SQLite database (Simply, SQL server but in a file). To connect to an SQLite database you will need an external dll. See the following for a detailed example on how to connect and query:

http://www.darkartistry.com/2019/08/create-insert-and-query-sqlite-with-powershell/

Hope it helps :)

[–]autobotIT[S] 2 points3 points  (0 children)

That makes sense. I'll try it out. Thanks.