Avatar of adznon
adznon

asked on 

Powershell Script to update SQL Database

Hello to anyone who comes across this.

I have two tables in the same database

I am looking to update Store_Manager_ID in table 1 that is currently blank with the result from securityPrincipal in Tablet 2 where the Email address's in both tables match all this needs to happen in powershell

Table 1
Store_Manager_Email - (Contains Email Address)
Store_Manager_ID - (Blank)

Table 2
user.mail - (Contains Email Address)
securityPrincipal (Contains User ID)
DatabasesPowershellSQL

Avatar of undefined
Last Comment
Jose Gabriel Ortega Castro
ASKER CERTIFIED SOLUTION
Avatar of Jose Gabriel Ortega Castro
Jose Gabriel Ortega Castro
Flag of Venezuela, Bolivarian Republic of image

Blurred text
THIS SOLUTION IS ONLY AVAILABLE TO MEMBERS.
View this solution by signing up for a free trial.
Members can start a 7-Day free trial and enjoy unlimited access to the platform.
See Pricing Options
Start Free Trial
Databases
Databases

Databases are organized collections of data, most commonly accessed through management systems including schemas, tables, queries and processes that allow users to enter and manipulate the information or utilize it in other fashions, such as with web applications or for reporting purposes.

62K
Questions
--
Followers
--
Top Experts
Get a personalized solution from industry experts
Ask the experts
Read over 600 more reviews

TRUSTED BY

IBM logoIntel logoMicrosoft logoUbisoft logoSAP logo
Qualcomm logoCitrix Systems logoWorkday logoErnst & Young logo
High performer badgeUsers love us badge
LinkedIn logoFacebook logoX logoInstagram logoTikTok logoYouTube logo