Need to return the fieldnames from an acess database
I need to return the fieldnames (column headings) from an acess database.
What drivers are you using to access the database. In ADO it's very easy - in fact it's almost a side effect of getting our data. If you're using the Database Connectivity Toolkit, I don't know. Check out this thread for alternate code. The example "Basic Query.vi" in the zip file I uploaded shows the basic process that you go through to read data using ADO. You'll notice that the column names are very easy to get to.
Mike...
Certified Professional Instructor
Certified LabVIEW Architect
LabVIEW Champion
"... after all, He's not a tame lion..."
Be thinking ahead and mark your dance card for NI Week 2015 now: TS 6139 - Object Oriented First Steps
Similar Messages
-
Return the Minimum from two tables in a Union
Hello
I have written a simple union query from our dialler service which has 2 tables, in inbound and an outbound table. A lead can show in any table depending how they came through to an agent and they can also show in both tables. I need to return the
the first instance in the calltime column from both tables but also return all the other information. I'm expecting multiple entries for the minimum calltime which is fine, I will be using a lookup in excel to extract the time. Just to make matters
a little more difficult i'm having to use the OPENQUERY function because its within MYSQL.
SELECT O.Lead, O.DataList, O.[CallTime] AS 'CallDate', O.[Status], O.Uniqueid, O.Campaign, O.number, O.Advisor, 'Outbound' AS CallType
FROM OPENQUERY (dialler, 'SELECT * FROM dialler_outbound_data') O
WHERE O.CallTime >= '2014-12-01'
UNION
SELECT I.Lead, I.DataList, [CallTime] AS 'CallDate', I.[Status], I.Uniqueid, I.Campaign, I.Number, I.Advisor, 'Inbound' AS CallType
FROM OPENQUERY (dialler, 'SELECT * FROM dialler_inbound_data') I
WHERE I.CallTime >= '2014-12-01'
Can anyone help please?
Many Thanks
RichHi Rich,
The use of the ROW_NUMBER function as mentioned and temp tables should do the trick. See the code below...hope this helps.
SELECT ROW_NUMBER() OVER(ORDER BY O.[CallTime]) as 'Occurrance'
,O.Lead
,O.DataList
,O.[CallTime] AS 'CallDate'
,O.[Status]
,O.Uniqueid
,O.Campaign
,O.number
,O.Advisor
,'Outbound' AS CallType
INTO #TEMP1
FROM OPENQUERY (dialler, 'SELECT * FROM dialler_outbound_data') O
WHERE O.CallTime >= '2014-12-01'
SELECT ROW_NUMBER() OVER(ORDER BY I.[CallTime]) as 'Occurrance'
,I.Lead
,I.DataList
,[CallTime] AS 'CallDate'
,I.[Status]
,I.Uniqueid
,I.Campaign
,I.Number
,I.Advisor
,'Inbound' AS CallType
INTO #TEMP2
FROM OPENQUERY (dialler, 'SELECT * FROM dialler_inbound_data') I
WHERE I.CallTime >= '2014-12-01'
INSERT INTO #FINAL
SELECT * FROM #TEMP1
UNION
SELECT * FROM #TEMP2
SELECT * FROM #FINAL AS F WHERE F.Occurrance = 1
I'm new to this so if this helps, I could use your vote.
Thanks,
Zach -
Returning the string from the SimpleDateFormat
Hi guys,
Can someone tell me how to return the string from the SimpleDateFormat?
I've created the method to do this, but i don't know the exact code to use. Here's my code so far...
public String convert (Calendar gc)
String s = convert(gc);
return // I need to return the s here, but don't know how to code it.
}BTW, i've already wrote the code for the SimpleDateFormat (so if you want me post that, i will).DrLaszloJamf wrote:
LevelSix wrote:
DrLaszloJamf wrote:
No.Can you tell me what it is, because i've went through the API and i don't know.
Have you looked for a tutorial: [http://java.sun.com/docs/books/tutorial/i18n/format/dateintro.html]
Thanks a lot DrLaszloJamf, this is useful.
DrClap wrote:
Nope. Suppose you were on a construction site and the foreman told you to move a pile of concrete blocks from a truck into the building. What do you suppose would happen if you asked the foreman what a concrete block was, and where the building was, and whether you should drive the truck into the street, and then you tried to pick up the whole pile all at once, and then you asked if you could kick the blocks like footballs? This is what you're doing here. You'd be fired from the construction site within half an hour.Sir... -
Need to grab the data from Web Page and send it to SAP using PI
Hello Experts,
I need to grab the exchanges rates from the below link.
http://www.cbr.ru/scripts/XML_daily.asp?date_req=09-06-2011.
This link returns an XML . I need to get the data from this XML page and post it to SAP ECC using PI.
My requirement is that, process should start from the ECC and grabs the data from the web page which gives you the XML and post this data into ECC using PI. We have a RFC written in ECC side to post the data in ECC.
Please help me to identify the adaptor's needed and what should I need to do to initiate the process from ECC.
Would it be a Async or Sync process ?
I would really appreciate the inputs.
Thanks.
Gaurav.Hi,
Any particular reason that you want to go for a sync process as then you would need to either use a BPM (RFC to BPM where you use sync/async bridge to get the xml file from the specified link and then send the response back to ECC) or go for a synchronous Java proxy on the receiver side which will grab the exchange rates and then map back to the RFC response structure. In this case, you can avoid the BPM.
Else, as mentioned in Michal's blog, you can break it up into 2 seperate scenarios. RFC/Proxy to File and then File to IDoc/RFC/Proxy which will get the exchange rates into ECC.
Another option can be Proxy --> PI --> ECC(IDoc/Proxy/RFC). Here you can grab the exchange rates from the link in your message mapping through a UDF.
Regards -
i have the djay app on my ipad and i want to record the set i'm playing on my iphone through garageband. i need to take the sound from the headphone jack of the ipad, as the 30pin connector will be used to connect to the DJLive accessory. Is this possibl?reco
You may get a better response in this community:
https://discussions.apple.com/community/app_store/garageband_for_ios -
Needed to copy the share from one server to share in another server
Hi ,
Needed to copy the data from one share named as xyz in the server 1 to the another share abc in another server 2.
Share xyz data should be copied to the share abc which has already different data in it .We need to copy all the data from the share xyz to the share abc without deleting any existing data in the destination share.
I know that /MIR option will replace the destination same as source
Can anybody help us in the Robocopy command & switches for this activity?
Any help is greatly appreciated!
Thanks & Regards S.Swaminathan Live & let others live!!!Hi Mandy,
Thanks for your reply.
I have done many robocopy for the share movements from the one server joined in a domain to another server joined in the same domain.In that instances, the destination server will not be having any share of the old server name and just I robocopy the share
from the old server to the new server after creating a new share .The usual command is as follows:
"\\server1\oldshare" \\server2\newshare" *.* *.* *.* /ZB /E /COPY:DATO /XJ /R:0 /W:0 /TEE /dcopy:T /NP /log:c:\robocopy.txt
And after the copy , during the cutover of the standalone DFS pointing to the new share , the domain users in the corresponding access groups (name of the groups based on the old server name) of Full,Modify,Read will be appropriately copied to the respective
new groups (name of the groups based on the new server name) of the new share and the access is ensured by the users.
But in this case , the destination server is already having a share with existing data in it and to be added with the old share data
My question is shall I use the same command as before by copying all the data to the newly created subfolder inside the existiing destination share through the following command
"\\server1\oldshare" \\server2\newshare\new sub-folder" *.* *.* *.* /ZB /E /COPY:DATO /XJ /R:0 /W:0 /TEE /dcopy:T /NP /log:c:\robocopy.txt
You have already mentioned /E without purge options will do.
Just asking one more time for the safer side
Thanks & Regards S.Swaminathan Live & let others live!!! -
Need to pass the value from UI
Hi!!
I am using jdeveloper 11.1.1.5
I had dragged and dropped Three Input Text Boxes in my UI
I need to pass the values from the UI to my AMImpl Methods
i.e. In my AMImpl Methods
vo2.setNamedWhereClauseParam("year",[af:ImputTextBox1]);
vo2.setNamedWhereClauseParam("period",[af:ImputTextBox2]);
vo2.setNamedWhereClauseParam("bu",[af:InputTextBox3]);
vo2.executeQuery();The links given by Vinoth and jabr is very usefull for me!!
Still i m receiving an while i clicked the button
Cannot convert MEL of type class java.lang.String to class oracle.adf.view.rich.component.rich.input.RichInputText
Cannot convert 201011 of type class java.lang.String to class oracle.adf.view.rich.component.rich.input.RichInputText
Cannot convert 5 of type class java.lang.String to class oracle.adf.view.rich.component.rich.input.RichInputTextEdited by: wilhelm wundt on Dec 18, 2011 10:00 PM -
Do we need to buy the license from SAP for EACH 'Z'form
Hello
I heard that, we (company) have to take license for the development of EACH adobe interactive form (even though its totally custom brand-new interactive form created from scratch), on individual form basis, is it true? (i know, its free of cost to play around with interactive forms in DEV and QA, but, if we want to move them to PROD, in that case do we need to buy the license from SAP for EACH form individually?)
Thank youThats true...license based on end user usage is required for SAP interactive forms. For more information read SAP note number 750784. The license comes in package like per 1000 users one time payment.
Regards,
Vaibhav -
Need to fetch the plant from route and country
Hi all,
I need to fetch the "plant" from "route" and "country".
is there any table having all the 3 fields, or any way to link these 3 fields ??
thanks
SriHi Sri,
Try the COPA docs table CE1*
Regards,
Sandeep -
I'm trying to buy CC Photoshop/Lightroom packages. In order to complete payment, I need to change the country from the default options (United States) to Brazil, But I'm not allowed to do it. I've already changed my origin country in my account information.How do I change the country in order to complete payment?
These are the two links I have
Change/Verify Account https://forums.adobe.com/thread/1465499 may help
-http://helpx.adobe.com/x-productkb/policy-pricing/change-country-associated-with-adobe-id. html
If the above doesn't help, you will have to contact Adobe (this is an open forum, not Adobe support)
Adobe contact information - http://helpx.adobe.com/contact.html
-Select your product and what you need help with
-Click on the blue box "Still need help? Contact us" -
HT1349 i need to put the documents from the mac onto the mac book air
i need to put the documents from the mac onto the mac book air. How to I transfer my mac documents and music information to my macBook air?
You have many options.
Network the two Macs
Use a Thunderbolt or FireWire cable and use FireWire Target Disk Mode
Use Setup Assistant when you first set up a new Mac, or Migration Assistant at any time thereafter
Use an inexpensive USB flash drive
Email documents and files to yourself
Use Dropbox or similar service
Those are just a few. If you explain further or reply with the model of your "older" Mac and which OS version it is using, more specific information can be provided.
You may find Apple Support Communities contributor Pondini's OS X tip useful: Setting-up a new Mac from an old one, its Backups, or a PC -
How can I see website data from itouch 4th generation? My 8 yr old may have been on inappropriate sites and I need to see the data from website data stored on the itouch.
There is no way to see where he has been.
Go into Settings > General > Restrictions > Safari and turn it off. Then add the MacGruff browser from the app store. After that go back to Restrictions and turn off the ability to add apps. -
I am selling my sons ipod and i need to reset the ipod from the itunes account because there is a password and no one remembers it. I am not an expert ( or even close) on the itunes stuff so I have tried everything I can see.
If you have a passcode to the screen lock that you've forgotten and your device is running iOS 6 or earlier, restore the device from the computer to which the device is synced. For information and instructions, see:
http://support.apple.com/kb/ht1212
If that will not work, you'll need to put the device into Recovery Mode and then try the Restore again:
http://support.apple.com/kb/ht1808
If that still doesn't work, as a last resort try DFU mode:
http://www.iclarified.com/entry/index.php?enid=1034
If your device is running iOS 7 and you set up Find My iPhone (iPad/iPod), however, then it has the Activation Lock on it and you'll need to enter in your Apple ID and password after erasing to be able to restore the device:
http://support.apple.com/kb/HT5818
Regards.
Forum Tip: Since you're new here, you've probably not discovered the Search feature available on every Communities page, but next time, it might save you time (and everyone else from having to answer the same question multiple times) if you search a couple of ways for a topic, both in the relevant forums and in the Apple Knowledge Base, before you post a question. -
Need to Extract the Data From "0BBP_TD_CONTR_2"
Hi,
I need to extract the data from SRM extractor "0BBP_TD_CONTR_2". I do not have much knowledge in SRM. Can any one give me the steps how can i check the extractor its not like R3. All kind of help will be appreciated.
ThanksNever mind guys i figured it out. Thnaks
-
What hardware do I need to monitor the signal from an incremental encoder?
We are trying to implement a feeding
solution for one of our cutting machines and I’m not quite sure how to proceed.
I have attached a document from the NI website that outlines exactly what we are
trying to do but does not go into detail on any of the concepts like programming
and implementation.
1.) We have a NI DAQPad-6015
connected to a SC-2345 which has one SCC-CTR01 module installed. Which this
configuration can we read the incremental encoder signal and use to setup our
cutting machine as outlined in the attached document? If not what is the
minimum amount of hardware we need to sample the signal from the incremental
encoder and obtain both the direction and magnitude of the
movement?
2.) If we wanted to use the
information obtained from the encoder and subsequently send a signal to a
stepper motor controller or perhaps a PLC what additional hardware would be
needed.
Thanks,
Chris
Attachments:
Incremental Encoder Example.pdf 94 KBHi Chris,
For quadrature encoder measurements your
hardware is not the ideal equipment. The 6015 doesn't provide X4
decoding. That means, that the board counts only one raising edge of
one phase. Still, if you connect phase A and B to the counter inputs,
it will count up and down, depending on the direction of the axis, but
as already mentioned, you will loose 75% of the available resolution. Here is some more information about this topic.
The document that you are referring to recommends a PCI-6624
and this is in fact a much better option. This board provides X4
decoding and isolated inputs not only for phase A and B but also for
the Z-index (not available for the 6015).
If you need a USB-solution and if you can work with TTL voltages, you might have a look at the USB-6218, that provides isolated I/Os.
For motion control there are various options. E. g. you could use an NI motion control device like the PCI-7332,
but there are also options to communicate with external motion
controllers through CANopen, RS232 or various fieldbusses. Depending on
the solution that you choose, you may need a bus interface that
provides support for your programming software.
I hope that helps,
Jochen KlierNational Instruments
Message Edited by Jochen on 09-24-2008 09:24 AM
Maybe you are looking for
-
Display of Chinese Characters in Flash Video
'''Help needed to resolve issue with display of chinese fonts in Firefox.''' I used to be able to run an html based chinese language learning program (with embedded Flash) in Firefox on my Galaxy Nexus mobile...that is until I installed the latest ve
-
How do you operate the Firewall in Mac OS X Server 10.9.4
Hi, I recently upgraded to Mavericks Server - Overall the performance seems excellent but I miss some of the configuration options available in earlier versions. The firewall is extremely confusing to me as I have come across many articles on how to
-
Change Request Management without Transport Managment System
Hello, we would like to use the Change Request Management but without using the Transport Managment System (TMS). Means, we do not want that transport request are created automatically, we do not want that it is possible to log on to the satellite sy
-
Syncing music to my Cosmos Touch
I have a Cosmos Touch and have had it for a while now. I am really happy with it, no complaints really. The only thing I find aggravating it syncing music to it!!! I have a SD card for my phone. I have an itunes music library and that is where all of
-
My ipad 2 won't restore on itunes
Hey Fellow apple ppl! Just wondering if anyone could please help me with an issue i have doing a restore on itunes with my ipad 2 which i never got a chance 2 do a back up it is stuck in recovery mode & no matter what i do it won't enter dfu mode can