PDQ Live! : How Do I Connect PowerShell To A Database?

  Рет қаралды 4,834

PDQ

PDQ

Күн бұрын

Пікірлер: 12
@payalkalantri7525
@payalkalantri7525 Жыл бұрын
I am trying to connect to Postgres Db , Implemented exactly as shown however it throws error [IM-002] , Help is much appreciated.
@pdq
@pdq Жыл бұрын
I'm not too sure, unfortunately. Have you tried connecting via IP Address rather than hostname?
@captainfuture2882
@captainfuture2882 5 жыл бұрын
I am trying out a few methods. I installed the MySQL connector, but if I try to open the connection I get the error that the file or assembly "Renci.SshNet" could not be found.
@aham_abhishek
@aham_abhishek 3 жыл бұрын
How can I get these codes. I want to copy this then want to use. Is there any GitHub file or any link or anything where I can get this code?
@pdq
@pdq 3 жыл бұрын
We did not initially add these because it is querying a specific DB that we built for the examples. I was able to dig them up. I added them to github.com/pdq/Bonus-Content/tree/master/SQL%20Webcast%20Examples. You will need to set your Server, port, and build your own credentials. -Jordan
@tfre3927
@tfre3927 5 жыл бұрын
I have been trying to connect to MariaDB Connector (Program Files\MariaDB\MariaDB ODBC Driver 64-bit\maodbc.dll) using the add-type as shown and failing miserably :( can't work this out. Any clues? Perhaps it's something Captain Obvious didn't tell me.
@tfre3927
@tfre3927 5 жыл бұрын
After a week of playing around and watching this vid on and off.. I think I just realised you mean the MySQL ODBC 3.51 Driver will work with MariaDB.. so I don't need to use the separate MariaDB ODBC connector... lol oops.
@tfre3927
@tfre3927 5 жыл бұрын
..... got it working lol cheers
@AgusKurniawan_-iq5gs
@AgusKurniawan_-iq5gs 2 жыл бұрын
halo, how do you find file .XML??
@pdq
@pdq 2 жыл бұрын
In this video the xml we are using for credentials was something that Kris had made, so it was where he saved it. For how he built the credential object, he has a blog here: www.pdq.com/blog/secure-password-with-powershell-encrypting-credentials-part-1/. Other options would use Secrets Management within PowerShell to get the credential when connecting to a database.
@susandotmark521
@susandotmark521 5 жыл бұрын
How to make connection to firebird database?? pls reply
@pdq
@pdq 5 жыл бұрын
Install the firebird ODBC driver from www.firebirdsql.org/en/odbc-driver/ From there build the connection string(changing the port and everything to match his system.)$connStr = "Driver=Firebird/Interbase(r) driver;Server=localhost;Port=****;Database=*.fdb;Uid=user;Pwd=userpassword;" Then run the query the same way we showed in the odbc section at 2:27
PDQ Live! : Automated Patch Management 101
30:06
PDQ
Рет қаралды 7 М.
Using SQLite with PowerShell
16:33
Bryan Cafferky
Рет қаралды 9 М.
When mom gets home, but you're in rollerblades.
00:40
Daniel LaBelle
Рет қаралды 94 МЛН
How I Turned a Lolipop Into A New One 🤯🍭
00:19
Wian
Рет қаралды 13 МЛН
Это было очень близко...
00:10
Аришнев
Рет қаралды 6 МЛН
PowerShell SQL - Making a SQL Module Part 1 : Connecting to Database
19:48
Using PowerShell with MariaDB (MySQL) ODBC (For Drexel INFO-365)
1:02:24
PDQ Live! : How To Deploy Network Printers
36:40
PDQ
Рет қаралды 9 М.
Working with PowerShell to perform SQL tasks
38:19
Randal Root
Рет қаралды 31 М.
PDQ Live! : Streamlining PC Imaging with MDT and PDQ
32:51
How to Connect PostgreSQL from PowerShell ISE using ODBC
36:34
Powershell Scripting Automation For SQL Server DBA
Рет қаралды 200
SQL Querying for Beginners Tutorial
2:45:17
Learnit Training
Рет қаралды 265 М.
Deploying and Managing SQL Server with dbatools
1:03:07
PowerShell.org
Рет қаралды 2,2 М.
When mom gets home, but you're in rollerblades.
00:40
Daniel LaBelle
Рет қаралды 94 МЛН