
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎06-28-2016 09:30 PM
I have a list of assets and the groups I want to add them to. I have created the groups and have the keys associated to them in a separate file. I need a SQL query to add these to the Database.
File 1: AssetName,(Desired)AssetGroup
Asset1,Group1
Asset2,Group1
Asset3,Group2
Asset4,Group3
Asset5,Group3
Asset6,Group3
...
File 2: AssetGroup,AssetGroupID
Group1,10
Group2,11
Group3,12
...
I can retrieve all of the necessary information via PowerShell and I can query the DB, I just don't know how I would set up the SQL to import into the DB.
File 1: AssetName,(Desired)AssetGroup
Asset1,Group1
Asset2,Group1
Asset3,Group2
Asset4,Group3
Asset5,Group3
Asset6,Group3
...
File 2: AssetGroup,AssetGroupID
Group1,10
Group2,11
Group3,12
...
I can retrieve all of the necessary information via PowerShell and I can query the DB, I just don't know how I would set up the SQL to import into the DB.
Labels:
- Labels:
-
General Discussion
0 REPLIES 0
