Export script xls with all options??

Post a reply

Smilies
:D :) :( :o :-? 8) :lol: :x :P :oops: :cry: :evil: :roll: :wink:

BBCode is ON
[img] is ON
[url] is ON
Smilies are ON

Topic review
   

Expand view Topic review: Export script xls with all options??

Gettling all data to Excel

by ZeusRex » Tue Oct 05, 2004 9:19 am

Here's a solution that I put in another post.

Copy and paste this into Notepad:

XLODBC
1
DSN=MediaMonkey;DBQ=D:\My Music\MediaMonkey\MediaMonkey.mdb;DriverId=25;FIL=MS Access;MaxBufferSize=2048;PageTimeout=5;
SELECT Albums.*, Artists.*, Songs.*, Genres.*, Medias.*, Memos.* FROM (Medias INNER JOIN (((Albums INNER JOIN Artists ON Albums.IDArtist = Artists.ID) INNER JOIN Songs ON Albums.ID = Songs.IDAlbum) INNER JOIN Genres ON Songs.Genre = Genres.IDGenre) ON Medias.IDMedia = Songs.IDMedia) INNER JOIN Memos ON Songs.ID = Memos.IdSong;



Replace the file name "D:\My Music\MediaMonkey\MediaMonkey" with the name of your MM database. It will probably be in a different location.

Save the file as "SelectAll.DQY". The .DQY extention is for query files for Excel.

Close Notepad and double-click the SelectAll.dqy file. It should open in Excel. A dialog should open saying that no data connection could be made. No problem. Click OK and another dialog will open, "Select Data Source". Click New -> User Data Souce -> Next -> Select Microsoft Access Driver -> Next -> Finish. A new dialog will open called ODBC Microsoft Access Setup.

For the Data Source Name, enter "MediaMonkey". Then click "Select", and browse for your MM database. Once it shows in the lefthand panel, select it and click OK. You've now created the database connection.

Click OK to the Select Data Source Window, and OK to the Login Panel. The results of the query should appear in Excel.

If all works you should have almost all of the data from MediaMonkey on the spreadsheet.

Now, you can format the information how you want it. In Excel, click Data -> Import External Data -> Data Range Properties. In the dialog, select "Refresh Data on File Open" and "Remove external data from worksheet before saving". This will clear the spreadsheet of all data when you save it and refresh the data everytime you open it. Always up to date. Also be sure that Preserve Column Sort and Preserve Cell Formatting are selected. Close the dialog.

Now, you can hide some columns (you'll probably have lots of irrelevent data), and put the columns in the order you want.

Save the spreadsheet. Everytime you open it now it will load the query and the data from MM.

Hope this works for you.

by Guest » Thu Jul 29, 2004 7:39 pm

The links working again.

Still hoping for an Excel script to export ALL data.

by pah68 » Sat Jul 17, 2004 7:13 pm

Dud link.

I too am looking for something to export the entire database to Excel.

Does anything exist yet?

Read this

by Lowlander » Sun Feb 29, 2004 12:57 pm

There is no such script yet for xls (there is one for html), but this topic covers all the accesible objects in MM http://www.songs-db.com/forum/viewtopic.php?t=1654

Export script xls with all options??

by LO » Sun Feb 29, 2004 12:52 pm

Hello

I was wondering. Is there a script to make exportfiles in xls. That include all possible options in MM like BPM, Custum 1, 2, 3 and type.

Because i tried to rewrite the script, but i don't have a clue how this works.

LO

Top