Storing the Output of DBQuery directly in Excel?

Technical support and scripting issues

Moderators: Dorian (MJT support), JRL

Post Reply
User avatar
migro
Macro Veteran
Posts: 152
Joined: Thu Nov 06, 2003 5:23 pm
Location: Germany
Contact:

Storing the Output of DBQuery directly in Excel?

Post by migro » Sun Jun 14, 2009 9:38 pm

Hi there,

is there a posibility to store the output of a database query (like in the sample) directly into a excel spreadsheet, e.g. with DBexec?

Code: Select all

//Connect to Datasource
Let>str=Driver={MySQL ODBC 3.51 Driver};Server=someserver.com;Port=3306;Database=example;User=admin;Password=xxxx;Option=3;
DBConnect>str,dbH
 
//Perform SELECT query
Let>SQL=select * from customers where custID='abc123'
DBQuery>dbh,SQL,CUSTOMERS,numrecs,numfields
 
//loop through returned recordset
Let>r=0
Repeat>r
Let>r=r+1
Let>f=0
Repeat>f
  Let>f=f+1
  Let>this_field=CUSTOMERS_%r%_%f%
   Message>this_field

  Wait>0.5
Until>f=numfields
Until>r=numrecs
 
//Close database connection
DBClose>dbH
It would be nice if anyone can extend the sample to show how it should be done. If there is a possibility to do this anyhow ;-)

Thanks in advance.
regards
migro

User avatar
JRL
Automation Wizard
Posts: 3526
Joined: Mon Jan 10, 2005 6:22 pm
Location: Iowa

Using DBQuery to Read from and Write to excel files

Post by JRL » Wed Jul 01, 2009 4:41 am

I also needed to know how to write to an excel file. The following example does not extend your sample but it might be enough information for you to figure your situation out.

I'm not particularly experienced with SQL so that part was a challenge for me. The read example was on the forum HERE. I used that and a little Googling to figure out how to "Insert".

If you run the following script as-is, be aware that it will create two version 97/2003 excel files on your desktop.

Hope this is helpful.

If you have Macro Scheduler version 11, the dialog color scheme in the following script is from around 1985... give or take a few years.

Code: Select all

Dialog>Dialog1
   Caption=Please Read
   Width=600
   Height=220
   Top=100
   Left=CENTER
   Button=Ok,262,160,75,25,2
   Label=Stop and examine the two test.xls files%CRLF%that should now be on your desktop.%CRLF%%CRLF%Notice test2.xls contains only headers%CRLF%"A" "B"  and "C"%CRLF%%CRLF%Be sure to close both files then pick Ok,45,12,true
EndDialog>Dialog1

SetDialogObjectColor>Dialog1,,0
SetDialogObjectFont>Dialog1,mslabel1,Terminal,12,0,1234567

Let>WLN_NOCRLF=0
IfFileExists>%desktop_dir%\test1.xls
Else
Let>File1=0M8R4KGxGuEAAAAAAAAAAAAAAAAAAAAAPgADAP7/CQAGAAAAAAAAAAAAAAABAAAAAQAAAAAAAAAAEAAAHQAAAAEAAAD+////AAAAAAAAAAD////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////9////IAAAAAMAAAAEAAAABQAAAAYAAAAHAAAACAAAAAkAAAAKAAAACwAAAAwAAAANAAAADgAAAA8AAAAQAAAAEQAAABIAAAATAAAAFAAAABUAAAAWAAAAFwAAABgAAAAZAAAAGgAAABsAAAAcAAAA/v////7///8fAAAA/v////7//////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////1IAbwBvAHQAIABFAG4AdAByAHkAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAWAAUA//////////8CAAAAIAgCAAAAAADAAAAAAAAARgAAAAAqupDT2tTJASAzQnPN+ckBHgAAAMACAAAAAAAAVwBvAHIAawBiAG8AbwBrAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABIAAgEEAAAA//////////8AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAACAAAAIjQAAAAAAAAFAFMAdQBtAG0AYQByAHkASQBuAGYAbwByAG0AYQB0AGkAbwBuAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAKAACAQEAAAADAAAA/////wAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAADQAAAAAAAAAAUARABvAGMAdQBtAGUAbgB0AFMAdQBtAG0AYQByAHkASQBuAGYAbwByAG0AYQB0AGkAbwBuAAAAAAAAAAAAAAA4AAIB////////////////AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABAAAAAgBAAAAAAAACQgQAAAGBQCpH80HyQABAAYEAADhAAIAsATBAAIAAADiAAAAXABwAAUAAGRpY2tsICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICBCAAIAsARhAQIAAADAAQAAPQEGAAEAAgADAJwAAgAQABkAAgAAABIAAgAAABMAAgAAAK8BAgAAALwBAgAAAD0AEgB4AFoAUEZEJTgAAAAAAAEAWAJAAAIAAACNAAIAAAAiAAIAAAAOAAIAAQC3AQIAAADaAAIAAAAxAB4A3AAAAAgAkAEAAAACAIIHAUMAYQBsAGkAYgByAGkAMQAeANwAAAAIAJABAAAAAgCCBwFDAGEAbABpAGIAcgBpADEAHgDcAAAACACQAQAAAAIAggcBQwBhAGwAaQBiAHIAaQAxAB4A3AAAAAgAkAEAAAACAIIHAUMAYQBsAGkAYgByAGkAMQAeANwAAAAIAJABAAAAAgCCBwFDAGEAbABpAGIAcgBpADEAHgBoAQEAOAC8AgAAAAIAggcBQwBhAG0AYgByAGkAYQAxAB4ALAEBADgAvAIAAAACAIIHAUMAYQBsAGkAYgByAGkAMQAeAAQBAQA4ALwCAAAAAgCCBwFDAGEAbABpAGIAcgBpADEAHgDcAAEAOAC8AgAAAAIAggcBQwBhAGwAaQBiAHIAaQAxAB4A3AAAABEAkAEAAAACAIIHAUMAYQBsAGkAYgByAGkAMQAeANwAAAAUAJABAAAAAgCCBw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AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAQAAAAIAAAADAAAA/v///wUAAAAGAAAABwAAAAgAAAD+////CgAAAP7////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////+/wAABQECAAAAAAAAAAAAAAAAAAAAAAABAAAA4IWf8vlPaBCrkQgAKyez2TAAAACgAAAABwAAAAEAAABAAAAABAAAAEgAAAAIAAAAWAAAABIAAABoAAAADAAAAIAAAAANAAAAjAAAABMAAACYAAAAAgAAAOQEAAAeAAAACAAAAGRpY2tsAAAAHgAAAAgAAABkaWNrbAAAAB4AAAAQAAAATWljcm9zb2Z0IEV4Y2VsAEAAAAAArDjD2tTJAUAAAACAUnvRyvnJAQMAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA/v8AAAUBAgAAAAAAAAAAAAAAAAAAAAAAAQAAAALVzdWcLhsQk5cIACss+a4wAAAA2AAAAAkAAAABAAAAUAAAAA8AAABYAAAAFwAAAGQAAAALAAAAbAAAABAAAAB0AAAAEwAAAHwAAAAWAAAAhAAAAA0AAACMAAAADAAAALUAAAACAAAA5AQAAB4AAAAEAAAAAAAAAAMAAAAAAAwACwAAAAAAAAALAAAAAAAAAAsAAAAAAAAACwAAAAAAAAAeEAAAAwAAAAcAAABTaGVldDEABwAAAFNoZWV0MgAHAAAAU2hlZXQzAAwQAAACAAAAHgAAAAsAAABXb3Jrc2hlZXRz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AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA////////////////AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAD///////////////8AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA=
Base64>file1,decode,file1
WriteLn>%desktop_dir%\test1.xls,wres,file1
EndIf
IfFileExists>%desktop_dir%\test2.xls
Else
Let>File2=0M8R4KGxGuEAAAAAAAAAAAAAAAAAAAAAPgADAP7/CQAGAAAAAAAAAAAAAAABAAAAKQAAAAAAAAAAEAAA/v///wAAAAD+////AAAAACgAAAD///////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////8JCBAAAAYFAOwVzQfJAAEABgMAAOEAAgCwBMEAAgAAAOIAAABcAHAAAgAAICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIEIAAgCwBGEBAgAAAMABAAA9AQYAAQACAAMAnAACAA4AGQACAAAAEgACAAAAEwACAAAArwECAAAAvAECAAAAPQASAPAAaQDVOUofOAAAAAAAAQBYAkAAAgAAAI0AAgAAACIAAgAAAA4AAgABALcBAgAAANoAAgAAADEAHgDcAAAACACQAQAAAAIAbQcBQwBhAGwAaQBiAHIAaQAxAB4A3AAAAAgAkAEAAAACAG0HAUMAYQBsAGkAYgByAGkAMQAeANwAAAAIAJABAAAAAg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AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAEAAAACAAAAAwAAAAQAAAAFAAAABgAAAAcAAAAIAAAACQAAAAoAAAALAAAADAAAAA0AAAAOAAAADwAAABAAAAARAAAAEgAAABMAAAAUAAAAFQAAABYAAAAXAAAA/v///xkAAAAaAAAAGwAAABwAAAAdAAAAHgAAAB8AAAD+////IQAAACIAAAAjAAAAJAAAACUAAAAmAAAAJwAAAP7////9/////v//////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////UgBvAG8AdAAgAEUAbgB0AHIAeQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABYABQH//////////wIAAAAgCAIAAAAAAMAAAAAAAABGAAAAAAAAAAAAAAAAAAAAAAAAAAD+////AAAAAAAAAABXAG8AcgBrAGIAbwBvAGsAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAEgACAf///////////////wAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAACxLwAAAAAAAAUAUwB1AG0AbQBhAHIAeQBJAG4AZgBvAHIAbQBhAHQAaQBvAG4AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAoAAIBAQAAAAMAAAD/////AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAGAAAAAAQAAAAAAAABQBEAG8AYwB1AG0AZQBuAHQAUwB1AG0AbQBhAHIAeQBJAG4AZgBvAHIAbQBhAHQAaQBvAG4AAAAAAAAAAAAAADgAAgH///////////////8AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAgAAAAABAAAAAAAAA=
Base64>file2,decode,file2
WriteLn>%desktop_dir%\test2.xls,wres,file2
EndIf


Show>Dialog1,res1
GoSub>GetData
GoSub>PutData
Let>Dialog1.mslabel1=Data has been transfered from test1.xls%crlf%to test2.xls
ResetDialogAction>Dialog1
Show>Dialog1,res1


SRT>GetData
  Let>connStr1=Provider=Microsoft.Jet.OLEDB.4.0;Data Source=%desktop_dir%\test1.xls;Extended Properties=Excel 8.0;
  DBConnect>connStr1,dbH1
  Let>SQL1=select * from [Sheet1$]
  DBQuery>dbH1,SQL1,rsSheet1,nR,nF
END>GetData

SRT>PutData
  Let>connStr2=Provider=Microsoft.Jet.OLEDB.4.0;Data Source=%desktop_dir%\test2.xls;Extended Properties=Excel 8.0;
  DBConnect>connStr2,dbH2
  Let>SQL2=INSERT INTO [Sheet1$](A,B,C) VALUES('%rsSheet1_2_1%','%rsSheet1_2_2%','%rsSheet1_2_3%')
  DBExec>dbH2,SQL2,result
END>PutData

User avatar
migro
Macro Veteran
Posts: 152
Joined: Thu Nov 06, 2003 5:23 pm
Location: Germany
Contact:

Post by migro » Sun Jul 05, 2009 9:53 pm

Dear JRL,

thanks for the sample.

Because I didn't got DBQuery to work with my Access-DB, I have done it in VB with my friend Google who assists me over the nights searching for code pieces to put them together ....

The following code is only a little part from the whole script showing how the databasequery with direct excel export can be done. Maybe its helpfull for somebody who have similar needs. I'm not an expert in VB so my code may look a little bit free-spirited :wink:

Code: Select all

Label>DateConfig
   Day>the_day
   Month>the_month
   Year>the_year
   Let>today=%the_day%.%the_month%.%the_year%


Label>Init
   Let>strRKB=C:\my.mdb
   Let>strDateAnf=01.01.1997
   Let>strDateEnd=%today%
   // Or anything other You like to query the database
   Let>strSQL=SELECT * FROM TmyDB WHERE TmyDBTs BETWEEN #%strDateAnf%# AND #%strDateEnd%#
   Let>WritePath=DESKTOP_DIR\sample.xls

    // Progress is at 80%
   let>Dialog1.msProgressBar1=80
   ResetDialogAction>Dialog1

Label>Action
Vbstart
   'Option explicit
   Function GetXvalue(strRKB,strSQL,WritePath)
   Dim Sqlstring
   Dim RS
   Dim I

   On Error Resume Next
   Set Mydb = Createobject("Adodb.Connection")
   Set RS = CreateObject("ADODB.recordset")
   Mydb.Provider = "Microsoft.Jet.Oledb.4.0"
   Mydb.Connectionstring = "Data Source=" & strRKB & ";"
   Mydb.Open
      Sqlstring = "" & strSQL & ""
      Set RS = Mydb.Execute(Sqlstring)
      If Not RS.Eof Then
         GetXvalue = RS.Fields("TmyDBCulIntIDPk")&";"&RS.Fields("TmyDBTs")&";"&RS.Fields("TmyDBSName")&";"&RS.Fields("TmyDBSFirstname")&";"&RS.Fields("TmyDBDBirthday")&";"&RS.Fields("TmyDBSSex")&";"&RS.Fields("TmyDBSPreg")&";"&RS.Fields("TmyDBSType")&";"&RS.Fields("TmyDBSRegio")&";"&RS.Fields("TmyDBSRadDur")&";"&RS.Fields("TmyDBSVolt")&";"&RS.Fields("TmyDBSCur")&";"&RS.Fields("TmyDBSDr")&";"&RS.Fields("TmyDBSComment")

         'Create a new workbook in Excel
         Set oExcel = CreateObject("Excel.Application")
         Set oBook = oExcel.Workbooks.Add
         Set oSheet = oBook.Worksheets(1)
         With oSheet.Range("A1", "N1")
         .Orientation = 0
         .Font.Bold = True
         .Font.Color = RGB(255,255,255)
         .Borders.Color = RGB(150, 150, 150)
         .interior.Color = RGB(5, 72, 115)
         .HorizontalAlignment = -4108
         End With

         'Transfer the Header to Excel
         oSheet.Cells(1, 1).Value = "Nr."
         oSheet.Cells(1, 2).Value = "   Aufnahmedatum   "
         oSheet.Cells(1, 3).Value = "Name"
         oSheet.Cells(1, 4).Value = "Vorname"
         oSheet.Cells(1, 5).Value = "Geb. Datum"
         oSheet.Cells(1, 6).Value = "Geschlecht"
         oSheet.Cells(1, 7).Value = "Schwanger"
         oSheet.Cells(1, 8).Value = "Typ"
         oSheet.Cells(1, 9).Value = "Zahn/Prog."
         oSheet.Cells(1, 10).Value = "ms"
         oSheet.Cells(1, 11).Value = "kV"
         oSheet.Cells(1, 12).Value = "mA"
         oSheet.Cells(1, 13).Value = "Verantwortlicher"
         oSheet.Cells(1, 14).Value = "Bemerkung"

         'Transfer the data to Excel
         oSheet.Range("A2").CopyFromRecordset RS

         ' Make some formatting of the cells
         With oSheet.Range("B2:B65536")
         .NumberFormat = "DD.MM.YYYY hh:mm:ss"
         End With
         With oSheet.Range("E2:E65536")
         .NumberFormat = "DD.MM.YYYY"
         End With
         With oSheet.Range("A1", "N1")
         .EntireColumn.Autofit
         End With
         With oSheet.Range("A2").CurrentRegion
         .Borders.Color = RGB(200, 200, 200)
         End With
         With oSheet.Range("A2:B65536")
         .HorizontalAlignment = -4108
         End With
         With oSheet.Range("E2:M65536")
         .HorizontalAlignment = -4108
         End With
         With oSheet.Range("A2").CurrentRegion
            For I = 3 To .Rows.Count Step 2
               With .Rows(I).Interior
               .ColorIndex = 19
               '.Pattern = xlSolid
            End With
            Next
         End With

         oExcel.ErrorCheckingOptions.BackgroundChecking = False
         oExcel.DisplayAlerts = False
         oBook.SaveAs (WritePath)
         oExcel.Quit
         Set oExcel = Nothing
         Set oBook = Nothing
         Set oSheet = Nothing
      Else
         GetXvalue = "Not Found"
      End If
   RS.Close
   Mydb.Close
   End Function
Vbend

Vbeval>GetXvalue("%strRKB%","%strSQL%","%WritePath%"),strValue
   IF>%strValue%=Not Found
      Goto>Abbruch
   ENDIF

   // Progress is at 100%
   let>Dialog1.msProgressBar1=100
   ResetDialogAction>Dialog1

   ExecuteFile>%WritePath%
   Goto>MacroEnde

Label>MacroEnde
   // Do some things ...
   Goto>Exit


Label>Abbruch
   // Do some other things


Label>Exit
regards
migro

User avatar
JRL
Automation Wizard
Posts: 3526
Joined: Mon Jan 10, 2005 6:22 pm
Location: Iowa

Post by JRL » Wed Aug 04, 2010 5:17 pm

The sample that I posted above does not seem to work in version 12. It works fine in version 11. The script is supposed to create two excel files on the desktop (and it does that). Then the script uses DBQuery> to extract some data from one of the files, and DBExec> to insert that data into the other.

Even though it appears to function properly, two bad things happen when you run the script in 12. First, the data does not get inserted into "test2.xls". Second, Macro Scheduler locks both files from being opened or deleted. You have to exit from Macro Scheduler before being allowed to work with the files.

almedajohnson
Newbie
Posts: 3
Joined: Thu Sep 16, 2010 10:10 am
Contact:

Post by almedajohnson » Thu Sep 16, 2010 10:22 am

Hi
thanks for the source code. I was looking for the same. IT was really helpful to me.. :)
yahoo store designer

Post Reply
cron
Sign up to our newsletter for free automation tips, tricks & discounts