Filter a OBDC connection

Hi I am using a OBDC connection to connect to our DB. I need to filter my employee list based on if they are active or not.
I tried a SQL statement but I seem to be able to only draw on the data from tables. Queries wont work.
I can see the Employees table and select names but I want to prefilter only active employees.
Thanks

user575089 wrote:
sabre150 wrote:
Iterate through the list looking for students that are active and add them to a new list.I'm worried about time complexity and hence I posted ....because I'll be doing such filtration for couple of lists .To check each student you have to visit each student O(N). To create a list you have to create a new list ad add each active student to it.
How big are the lists and how often do you have to do this filtering.
>
Is there any other approach to think about in java side ?I can think of slower methods! i.e. clone() a list then iterate through the clone() removing ones that are not active.

Similar Messages

  • Use a High Pass Filter for multiple connections

    Hello, you can check this site: http://www.cableboxfilters.com
    You can find the best filter and these are newly designed and is a super mini size high pass filters. They have excellent specifications, dimensions of only 13mm x 40.5mm and a weight of only 18g. These filters are best suitable for use in many communications applications, such as CATV, Cable Internet and other RF systems. Hope that this info can help your problem.
    With too many connections as you mentioned, you must install a High Pass Filter. These are newly designed and is a super mini size high pass filters. They have excellent specifications, dimensions of only 13mm x 40.5mm and a weight of only 18g. These filters are best suitable for use in many communications applications, such as CATV, Cable Internet and other RF systems.

    Hi, Graham,
    You wrote: "...There is a Lowpass filter writen within LabVIEW (IMAQ LowPass) this has been optimized for multicore prosessing and runs pretty efficiently..."
    Sorry, but I can't recognize any advantages of IMAQ LowPass on the DualCore system. See attachment. When this VI running, then I have approx. 50% CPU load, and no any effect when I set 2 cores with IMAQ Multi-Core Options. This take always approx. 60 - 70 ms for 5x5 low pass on 1024x1024 8 bit image.
    I'm missing something?
    Upd:
    Sorry, forgot technical data:
    LabVIEW 8.6f1; Vision 8.6.1; WinXP Prof SP3; Intel Core2 6700 CPU
    Andrey.
    Message Edited by Andrey Dmitriev on 11-19-2008 02:21 PM
    Attachments:
    Benchmark.vi ‏16 KB

  • Help with OBDC connection in Windows 7 64bit with Office 2010 32 bit.

    Hi,
    Many moons ago I wrote an application in Java that configured XP machines after they were sysprep’d and deployed. I am currently migrating all our workstations to Windows 7, and was checking my application still worked and queries the correct registry keys etc.
    As it turns out however I don't even get going as I believe the application is unable to connect to the ODBC Microsoft Access Driver in Windows 7 64bit with Office 2010 32 bit. Below is the code I have always used and no longer works. I am hopeful that someone can tell me how to modify the command to work on Windows 7 64bit. If I browse to C:\Windows\SysWow64\OBDCad32.exe all the drivers I need are there I think, but if I open OBDC from Administrative Tools the Drivers tab is empty but for SQL. Anyway I will shut up and below is the code I used to use:
         public IOMakeConnection()
         dm = new DisplayMessage();
         ioed = new IOEncryptDecrypt();
         url = "jdbc:odbc:DRIVER=Microsoft Access Driver (*.mdb);DBQ=" + getPath() + "Config.mdb;Uid=admin;Pwd=password";
              try
              Class.forName("sun.jdbc.odbc.JdbcOdbcDriver");
              connection = DriverManager.getConnection( url );
              catch( Exception e )
              system.out.println( "" + e );
              errorObtainingPath();
    The exception is always thrown as my little app that requests the database path always loads.
    Thanks in advance,
    Cheers Kris

    Hello again,
    Sorry for the delayed response, I have been out of the office for a few days.
    I have solved the issue, and as stated above the issue was the way I was launching the application. Below is a summary of the issue and the resolution.
    My problem was that in Windows 64bit if you click on ODBC in Administrative Tools the Drivers Tab only includes an SQL Driver, and my code reference a Microsoft Access Driver to query the database. That said however if you browse to C:\Windows\SysWow64 and open obdcab32.exe it opens the 32bit version of ODBC, and the Microsoft Access Driver (*.mdb) is listed.
    Basically what I need to do therefore is get my code to access the “32bit” version of ODBC in a Windows 7 64bit environment, so my application was able to read the necessary information from the Access Database associated with it.
    I understand that this is not a coding issue directly, but assuming people still use Java to open an Access Database on a Windows 7 64bit OS, this may be of help.
    So previously I ran the following command, from the “Target” box in a shortcut to execute the java code:
    cmd.exe /C SET CLASSPATH=C:\SCAConfigurationUtility && CD\SCAConfigurationUtility && JAVAW SCAConfigurationUtility
    Windows 7 64bit, defaults to the 64bit version of Java, and just seems to plain fail if you only have the 32bit version installed. To overcome this I forced the java executable that I was using to be the 32bit version, and used the system switches available in Java 7 (-cp does not appear to be available in Java 6)
    So my Shortcut now has this in the “Target” box:
    java.exe -d32 -cp C:\SCAConfigurationUtility SCAConfigurationUtility
    And this in the “Start in” box:
    "C:\Program Files (x86)\Java\jre7\bin"
    Or by using the target below the same shortcut works in XP
    "C:\Program Files\Java\jre7\bin"
    Thanks for all the help,
    Regards Kris.

  • Service Status - Filter by test-connection status

    I would like the script to skip computers that are not responding to the test-connection status. I have pieced this script together off others on the www. So I do not really know what I am doing. Please assist.
    $strCategory = "computer"
    $objDomain = New-Object System.DirectoryServices.DirectoryEntry
    $objSearcher = New-Object System.DirectoryServices.DirectorySearcher
     $objSearcher.SearchRoot = $objDomain
     $objSearcher.Filter = ("(objectCategory=$strCategory)")
    $colProplist = "name"
     foreach ($i in $colPropList){$objSearcher.PropertiesToLoad.Add($i)}
    $colResults = $objSearcher.FindAll()
    foreach ($objResult in $colResults)
         {$objComputer = $objResult.Properties; $objComputer.name}
    C:\myscipts\getpcnames.ps1 > "C:\myscripts\Computers.txt"
    C:\Users\wgrier\Documents\getpcnames.ps1>"C:\myscripts\Computers.txt"
    Get-ContentC:\myscripts\computers.txt|ForEach-Object{
    $svr=$_;
    Get-Service-NameWSearch-ComputerName$svr}
    |Format-tableName,status,machinename-autosize|out-file-filepathC:\results.txt 
    The Black script works without a issue, my part works but is slow and returns errors on the computers that are not powered on, this is why I am asking for a way to filter the script to only run on the pc's that test-connection .  

    Wayne is your question about Configuration manager 2007? Can you please explain your scenario, it is not clear on what you are trying to achieve from your question. Please clarify so that I can move it to the right forum so that you can get more help.
    Thx.
    Kerim
    This posting is provided "AS IS" with no warranties, and confers no rights.

  • Upgraded from CR XI to 2011 and now my old 2005 SQL OBDC Connection is gone

    I upgraded from a working CR XI (v11.0) product to CR 2011 v14.0.2.  But when I try to open an old report from CR XI, it prompts me to a OBDC (RDO) Data Source Selection Window and my old Database connection is not there to select. 
    I use SQL Native Client 2005.90.3042.00 for my old SQL Server DSN Config with CRXI.  How do I select my old DSN Configuration so I can access my data?
    If I run CR XI, I can still connect with the above mentioned configuration without any problems.
    Edited by: Jeff W1800 on Feb 8, 2012 1:17 AM
    Edited by: Jeff W1800 on Feb 8, 2012 1:01 PM

    Hi Jeff,
    That is strange.... I've never heard of that happening before. I have 100's of reports that have no problems. What OS are you using? CR 2011 fully supports ODBC and SQL Server 2005 and 2008. How did you create the DSN and is it a User DSN, System DSN or file DSN?
    Actually we did not support the SQL Native Client in XI, you had to use the MDAC version "SQL Server" to connect. Not sure why it worked, likely because the SQL generated wasn't complex so it mapped to that driver easily.
    There have been others who have discovered using the SQL Native 10 client that gets installed with SQL Server 2008 Client Tools works great for both 2005 and 2008. You can download it from MS's site, get the 32 bit version. CR 2011 is still a 32 bit application.
    It does require you to update your DSN to the Native 10 driver, update, verify and save your old reports also to get them to the new CR 2011 file format.

  • Allow a simple obdc connection without Reader Extensions

    I have this requirement, and so it seems to others on the LS forums.
    I have no server and need to distribute information to Adobe Reader users of a form. The information benefits from some manipulation (sorting), and may be updated frequently. One easy way to maintain the data is using XL. When the data needs to be sent to the user community its simple to attach it to an email.
    My form, created with LS uses this variable information as a 'database' to populate default values into the form, think names, addresses, and phones. The Reader user doesn't update the database, though they could by using XL.
    Today I can't tie the form to the XL data easily. While I appreciate the security issues I'd request some completely 'local' solution to an LS data connection, one that could run on a single PC.

    Thanks for a quick response.
    In Acrobat *8 or 9 Professional you can enable a form to be activated with the save feature.
    How do you do this.  When I saved the form without distributing it, and opened the form up in Acrobat Reader, the header said specifically that the data could not be saved in the form.  And when I went to save it, I got the message in a popup that said "Data in this form will not be saved. Reader can only save a blank copy of this form."  Then a second message (with a light bulb) said:  "Please print your completed form if you would like a copy for your records."
    So, if in fact I can have the form (without "distributing" it) so that the user can save the form with the data, how do I do that?  Are there commands I use, options?  Please let me know.  I will be eternally grateful.
    Also, if you edit form fields, you may remove the submit button.
    The edit form fields does not offer any access to the submit button.
    Best,
    Barbara

  • OBDC Connectivity for 10gR2

    Hi All,
    This following is the email that I got from my customer. Can any one help me out with his question.
    Question: As we have found out from Oracle that the HS-ODBC (a.k.a.generic connectivity) functionality for 10gR2 does not work under EM64T, on Windows 2003 64 bit Server, and a large number of clients may be using this component, I am wondering if Oracle Corp has done any impact study. Also, can we have an alternate solution till they get a fix on this?
    Any help on this question is really helpful for me.
    With Regards
    Phanish

    They say that it is going to be supported in version 11. You can setup HSODBC on some other machine, and then point your servers at that listener rather than the local machine.
    -J

  • JDBC OBDC CONNECTION * INSERTION* Using SEQUENCE variable.

    Hi I tried this program....
    import java.sql.*;
    public class Cust_Insert{
    public static void main(String args[]) {
    try {
    Class.forName("sun.jdbc.odbc.JdbcOdbcDriver");
    String dataSourceName="mdbTEST";
    String dbURL = "jdbc:odbc:DATABASE_NAMEXXX";
    Connection con=DriverManager.getConnection(dbURL," "," ");
    Statement s=con.createStatement( );
    System.out.println("Hi");
    s.execute("CREATE SEQUENCE SL#_SEQ START WITH 1 INCREMENT BY 1");
    System.out.println("Hii");
    s.executeUpdate("insert into Customer values(SL#_SEQNEXTVAL,'Aircel','Aircel Limited','soa','abcd','us','Ramesh')");
    System.out.println("Hiiii");
    ResultSet rs=s.getResultSet();
    System.out.println(" Hi hello");
    s.close();
    con.close();
    catch (Exception err) {
    System.out.println("Error: " +err);
    Compilatio: No Error
    Running:
    Hi
    Error: java.sql.SQLException: [Microsoft][ODBC Microsoft Access Driver] Syntax e
    rror in CREATE TABLE statement.
    But if I remove the following line its working properly
    s.execute("CREATE SEQUENCE SL#_SEQ START WITH 1 INCREMENT BY 1");
    Suggestion are requested for correction. But I need a sequence variable.

    Sureendarvettri wrote:
    Suggestion are requested for correction. But I need a sequence variable.As stated that is impossible. MS Access doesn't support 'sequence'.
    And at least Oracle wouldn't categorize a 'sequence' as a 'variable'.
    MS Access does however support auto increment columns.

  • Access to OBDC connectivity

    Guys,
    I've an access table which is linked to an Oracle table.
    Everytime I open the access table,an ODBC login page appears where I've to enter the login credentials everytime for Oracle connectivity.
    Is there anyway that I could make my access remember the Oracle connectivity parameters,so that it doesn't prompt for login everytime?
    Thanks,
    Bhagat

    hi
    Well, I haven't found any such login dialogbox prompting for username/password.
    I linked it successfully and its working fine and refreshing both the tables from
    (Oracle and MS-Access) automatically.
    But, the same thing happening here as you mentioned in VisualBasic Form.
    when I connect to Oracle via VB form using ODBC service every time it prompts
    for username/password before form is run.
    Which Driver you have selected for DSN?

  • SharePoint 2013 Filter Web Part configure connection webpage blank

    Hi,
    I've got a problem at one of my clients. I'm trying to connect a filter web part to a document library.
    I'm configuring a connection and the first pop-up (where you can configure a "Get Parameters From or Get Filter Values from" connection type) shows up fine.
    When I select one of the options the next screen is all blank.
    I've used IE in different modes (IE 11, IE 10 IE 9) and also tried using Chrome, but all the same result.
    Can anyone help me?

    Hi Elmar,
    According to your description, my understanding is that the Configure Connection webpage of the filter web part was blank.
    I recommend to add the site where the filter web part existed to the trusted zone and add to compatibility view in Internet Explorer to see if the issue still occurs.
    Best regards.
    Thanks
    Victoria Xia
    TechNet Community Support

  • Data Quality - Failed to create connection to MDR.

    Hi All,
    I have installed Data Quality 11.7.2 on windows 2003 server using SQL 2005 (Both SQL 2005 server and Data Quality are in the same server) , The install was successful. But when I try to Open 'Data Quality Project Architect' it throws an error
    Failed to create connection to MDR.
    Driver error messgage = qodbc_mssql:
    Unable to connect, Database error message =] [microsoft][odbc sql server driver]
    [ tcp/ip sockets] sql server does not exist or access denied
    I checked the ODBC connection and tested it successfully too.
    I am not able to pass through the 'Meta Data Repository Connection' as its failing in 'Setup SQL connection option'
    Any help is appreciated !!!
    Thanks
    Ranjit Krishnan

    Hi Paul,
    Thanks for you reply, OBDC connection was created under System DSN, also tired the users DSN option too, but did not work.
    Recreated the ODBC connection many times still no luck.
    The 'Project Architect' client and the MDR (SQL 2005 Server) are on the same machine.
    Thanks
    Ranjit Krishnan

  • SharePoint List Filter to narrow a folder structure

    Hello,
    The company I work for has a document library containing folders for each of their hundreds of clients.  The current process now is to load all of the folders in alphabetical order in order so that the users can scroll through and find the correct client
    relatively quickly.  This takes longer than it should considering how many folders need to load.
    I was trying to utilize the SharePoint List Filter to pull the Title column so the users could filter based on the name and we wouldn't need to pull all of the data each time the library was opened, but it seems that the title and name columns don't hold
    their connection to the list.  Each time I attempt to set the connections and then use the filter, I get the "This filter is not connected" error.
    Is it possible to use this web part in this manner (or is there another web part that will work) or should I suggest moving to meta data instead of a folder structure if they want speed of use?
    Thank you in advance!

    Hi,
    Based on your description, my understanding is that you want to you want filter the document library by the title column so that the users could filter based on the name and don’t need to pull all of the data each time the library was opened.
    Refer to the following steps:
    Open your document library-> choose Export to Excel->in excel, click insert PivotTable,
    create a pivot table in Excel -> use  Report filters
    To filter the title column->save it and upload it to a document library
    Then create a new page in SharePoint  and add the Excel Web Access web part and configure it to display your workbook, (or you can add the Excel Web Access web part in your document library and configure it to display your workbook) Now
    you can filter the document library by the title column.
    Here is a link about how to Create a pivot table in Excel 2010:
    http://www.techonthenet.com/excel/pivottbls/create2010.php
    Here is a link about how to use Report filters:
    http://www.gcflearnfree.org/excel2010/20.5
    Besides, you can refer to the following blog:
    http://consulting.risualblogs.com/blog/2014/09/10/filtering-excel-webparts-in-sharepoint-using-query-string-parameters/
    Best Regards,
    Lisa Chen

  • How can I use today's date as default value in query string filter web part in SharePoint

    I have a query string filter on my web part page. I am trying to figure out how I can set it's default value to Today? I can't find anything online...

    Hi,
    Per my understanding, you might want to set a default value to the Query String Filter Web Part.
    It would not be able to set default value to the Query String Filter Web Part with the OOTB features available.
    By default, with a Query String Filter Web Part in the current page, we can filter other web part in the same page by adding parameters and values in the address bar
    of browser.
    If setting the “Query String Parameter Name” of a Query String Filter Web Part as “t”, then we can filter the corresponding connected web part by inputting such an
    URL into the address bar:
    http://sharepoint/SitePages/Page1.aspx?t=value1
    Suppose you want to filter the list view with a value dynamically when user opens this page, as a workaround, we can generate an URL with the parameters needed when
    page loaded, then redirect user to this URL afterwards. This can be achieved using JavaScript.
    About how to redirect user to other page with an URL:
    http://www.tizag.com/javascriptT/javascriptredirect.php
    How to get today’s date using JavaScript:
    http://www.w3schools.com/js/js_dates.asp
    Best regards      
    Patrick Liang
    TechNet Community Support

  • Connecting to Azure SQL database in Access 2010

    I've recently purchased a new computer and I had an OBDC connection set up to link to a sql database in azure through access. I am trying to set it up on my new computer but I'm unable to define the specific database. I'm able to make the connection but
    it only allows me into the master database. I've added my IP address in the configure servers but still can't get things to work. Any help would be greatly appreciated.
    thanks
    Lynn

    Hi,
    The following guidelines apply to SQL Database connections using ODBC:
    • When using SQL Server Native Client from SQL Server 2008 R2 or SQL Server 2008, the connection string must include the server name as part of the user name (user@server).
    • You must use TCP/IP as the protocol when connecting to an Azure SQL Database.
    • You cannot create a table in the master database, so therefore you must create a user database to create a table.
    • You cannot execute a use database command to switch to your user database. You must disconnect and connect directly to the user database.
    • You must have a primary key or clustered index on your table to be able to insert data.
    Ref:
    https://msdn.microsoft.com/en-us/library/azure/hh974312.aspx?f=255&MSPPError=-2147217396
    http://blogs.office.com/2010/06/07/access-2010-and-sql-azure/
    https://support.microsoft.com/en-us/kb/2028911/
    Hope this helps you.
    Girish Prajwal

  • Not able to fix connection not trusted problem, updating date not working, cert8.db file missing in moxilla firefox folder

    I have been using firefox since several years. Few addwares like digicoupons, discountcoupons bothered me so I installed kasprosky lab anti virus and did scanning. I also made some settings in security settings of Mozilla firefox. but now I am not able to open any site with https address and also the display of webpage for youtube etc are not proper. I have downloaded and installed firefos at least 6 times but am not able to rectify the problem. The file cert8.db is not available in the folder as I triedtosearch it and delete it. The updation of system as well as internet date and time is also not working.
    The error message is Error code: sec_error_unknown_issuer
    Pleaase advice, I have already tried troubleshooting as given in support link of Mozilla.

    Kaspersky has a feature to filter your web connections. When filtering a secure connection, it needs to present a "fake" certificate to Firefox in order to decrypt and examine the content you are exchanging with the site. Naturally, Firefox does not consider fake certificate secure, so you need to set up Firefox to work with this feature.
    These are some links I found about 6 months ago. Hopefully one of them will help:
    * See Opera section of this one: http://support.kaspersky.com/us/9093#block1
    * Manual steps using classic menu bar (tap the Alt key to display it): http://support.kaspersky.com/5414

Maybe you are looking for

  • Unable to access jar file error !

    hello, i have built my netbeans project and obtained the hequalifies.jar file . unfortunately when i'm trying to run this jar file from the prompt command I'mgetting the error: unable to access jar file here is the command i'm typing: C:\Users\User\D

  • Solaris 8 on Toshiba 8200 install problem

    Has anyone tried to install Solaris 8 on a Toshiba 8200? I have set the CDRom drive as a bootable device but the install does not start, just a flashing cursor on the screen. I have tested the CD in another computer and all is ok. I do not have a USB

  • My phone is annoying me.

    I wqas using my Nokia X3 today and The slide keeps stiffening up and not working properly, Also Sometimes when i slide my phone to lock it it turns itself off and sometimes it keeps saying that i either have no signal and that My Sim card isn't in..

  • Secure storage of password/passphraseto a background run

    I have to create some payments using F110. A user is defines parameters for creating a payment run, which is executed in the background job. Is it possible to somehow store a passphrase entered by a user and securely transfer the phrase to a job runn

  • Indesign search for untagged content

    Is there a search technique for highlighting untagged content in an InDesign document?