Media Manager - Export data to another program?

Comments

amendegw wrote on 6/23/2011, 2:25 PM
"I rarely try to write SQL by hand, instead I cheat and use Access's query builder, switch to SQL view and copy and paste the SQL"Yeah, when I used to do this stuff for a living (actually the MS SQL stuff was only a side activity), I'd use Access as well. The reason I'm following the "native SQL" path is that Nick has said he does not own Access and would have to purchase it. Plus, I wanted to challenge myself to see how much I remembered.

...Jerry

System Model:     Alienware M18 R1
System:           Windows 11 Pro
Processor:        13th Gen Intel(R) Core(TM) i9-13980HX, 2200 Mhz, 24 Core(s), 32 Logical Processor(s)

Installed Memory: 64.0 GB
Display Adapter:  NVIDIA GeForce RTX 4090 Laptop GPU (16GB), Nvidia Studio Driver 566.14 Nov 2024
Overclock Off

Display:          1920x1200 240 hertz
Storage (8TB Total):
    OS Drive:       NVMe KIOXIA 4096GB
        Data Drive:     NVMe Samsung SSD 990 PRO 4TB
        Data Drive:     Glyph Blackbox Pro 14TB

Vegas Pro 22 Build 239

Cameras:
Canon R5 Mark II
Canon R3
Sony A9

NickHope wrote on 6/23/2011, 8:42 PM
Thanks a ton Jerry. You're incredibly helpful.

A tasty BSOD erased the long waffly reply I composed yesterday. Probably not a bad thing actually! I'll still paste the screengrabs anyway in case someone finds them useful.

Here is where I see MM assets listed:



Here is where I see MM tags listed:



Here is where some significant relationships happen:



It seems to me that one should be able to connect to this thing with Access and actually input data through it, once the effort has been put into working out how all the relationships take place.

In terms of getting tables out for my stock footage rep, time for me to do some swotting up on how to build SQL queries. Cheers!
Kimberly wrote on 6/23/2011, 10:02 PM
Hey Nick:

It seems to me that one should be able to connect to this thing with Access and actually input data through it, once the effort has been put into working out how all the relationships take place.

Yes, that is exactly what Microsoft Access (or Open Office Base) can do for you!

In the table dbo.item you have a field named Id. In the dbo.property table you have a field name ItemId. This is one possible link between these tables. Note that 1070 exists in both tables.

In dbo.item the Id is probably unique, which would make it a Record Key. In the dbo.property table the ItemId is not unique, so we know that's not the Record Key. However the field Id appears to be unique in dbo.property so that's probably the Record Key.

From your example, I can also see a probably link between the dbo.propertyType and dbo.property tables.

If you have Open Office Base, see if there is a tutorial on how to create a database, add tables, and establish relationships. I tested Base before I purchased Access. I had a client with huge data tables so ultimately I bought Access, but Base seemed okay for smaller data tables.

Kimberly
NickHope wrote on 6/24/2011, 1:31 AM
Sounds good, but before I can head down that route, I still have the problem of the Windows ODBC Data Source Administrator not offering me any SQL servers to connect to, even though MM is running. Any ideas?

amendegw wrote on 6/24/2011, 2:34 AM
Nick, Here's a copy of suggestions.

1) I know it's buried in my screenprint, but you could start with this SQL:
SELECT item.fullpath, propertytype.displayname, property.valuestring
FROM item
INNER JOIN property
ON item.id=property.itemid
INNER JOIN propertytype
ON property.propertytypeid = propertytype.id
WHERE (property.valuestring is not null) and (item.fileextension = 'veg')

You'll want to modify the WHERE clause to something other than item.fileextension = 'veg' and you'll probably want to SELECT addtional columns, but this should be a good starting point.

2) As far as you database access problems are concerned, suggest three things:
...a) Over on the left side of your management studio panel, make sure your server icon is showing green, not red. Otherwise, right click and start.
...b) You might have to right click on the "Default" database and select "New Query"
...c) A shot-in-the dark - try starting Vegas (& Media Manger) before you make your query.

Good Luck!
...Jerry

System Model:     Alienware M18 R1
System:           Windows 11 Pro
Processor:        13th Gen Intel(R) Core(TM) i9-13980HX, 2200 Mhz, 24 Core(s), 32 Logical Processor(s)

Installed Memory: 64.0 GB
Display Adapter:  NVIDIA GeForce RTX 4090 Laptop GPU (16GB), Nvidia Studio Driver 566.14 Nov 2024
Overclock Off

Display:          1920x1200 240 hertz
Storage (8TB Total):
    OS Drive:       NVMe KIOXIA 4096GB
        Data Drive:     NVMe Samsung SSD 990 PRO 4TB
        Data Drive:     Glyph Blackbox Pro 14TB

Vegas Pro 22 Build 239

Cameras:
Canon R5 Mark II
Canon R3
Sony A9

NickHope wrote on 6/24/2011, 4:16 AM
I finally managed to add a system DSN by typing "DELL-M6300\SONY_MEDIAMGR2" in the "Server" field. I was then able to connect to the database via ODBC in Open Office Base. Don't know what I'm doing in there yet, so it's tutorials time now. One step at a time.... Cheers!
NickHope wrote on 5/10/2015, 1:37 AM
Just to update this, I had some discussion in 2013 with the author of Vee-Hive, an independent program similar to Media Manager.

The discussion started on this thread on the Wetpixel forum and later continued in some private messages and in this thread on his forum. I also raised the subject in this thread on this forum.

Although the migration exercise wasn't completed (my fault for abanding it, not his), it at least showed that it's possible for a programmer without SCS inside knowledge to get the MM data out into another program. The main unresolved issue was with thumbnail migration.