Trying to loop through files

Sorry if this is a simple thing, I just can't seem to get it working.  Ugh.
I'm following the example here:
http://www.sqlis.com/sqlis/post/Looping-over-files-with-the-Foreach-Loop.aspx
I got stuck on this section:
The important part of this dialog is highlighted and that is "Expressions". Click on the ellipses and we will be taken through to the next screen where we can start to create the expression. In the screen that follows, from the Property column
drop the list down and choose ConnectionString
In the 'Property Expressions Editor' window, i can't choose Property=ConnectionString.  I just don't have it in my list.  I'm using Visual Studio Ultimate 2010.  The article is discussing SQL Server 2005 SSIS.  Maybe something changed
b/w the two versions, or maybe I'm just not doing something right.
This is a big problem, b/c when I try to set the OLEDB, I get this.
Nothing is being feed into the Loop tool, and thus nothing can be mapped to the destination table in my DB.
I thought I could just make up my own, intuitive Expression, as such.
That doesn't do anything at all. 
Can someone help me out?
Thanks!!
Knowledge is the only thing that I can give you, and still retain, and we are both better off for it.

So, I cancelled my other project and started over.  I’m at this section in the original link that I posted:
The important part of this dialog is highlighted and that is "Expressions". Click on the ellipses and we will be taken through to the next screen where we can start to create the expression. In the screen that follows, from the Property column
drop the list down and choose ConnectionString
The whole problem here is that I don’t have the Property = ConnectionString in the Property Expression Editor window.
This is what I have.
There is no ConnectionString anywhere; it simply doesn't exist.
I did set the flat file source; that's fine now.  But I have an exclamation mark in the OLEDB object (that doesn't seem right).  No matter what I do, I can't get rid of it.
Knowledge is the only thing that I can give you, and still retain, and we are both better off for it.

Similar Messages

  • SSIS - Loop through files from a file path based on the value in the variable

    Experts,
    I have a requirement where I'll be loading multiple files in to a SQL server table and archive the files when loaded. However, the challenge is , the file path should be dynamic based on the value of a variable (say, @ProductName).
    For example: If I am running the package for variable @ProductName="Product", the file path would be "\\....\Src\Product", in that case the ForEachLoop will loop through all the files in that folder, load them to the table and Archive
    the files to the "\\....\Src\Product\Archive" folder.
    Similarly, if the @ProductName="Product_NCP", the foreachloop container should loop through files in the "\\....\Src\Product_NCP" folder, load them to the table and archive them to the ""\\....\Src\Product_NCP\Archive"
    folder.
    Any suggestions? I should be able to run the package manually just by passing the "@Product" value, create Archive folder if it doesn't exist, load the data and archive the files.

    Yes
    1. Have a variable inside SSIS to get folder path. Set path based on your rule using an expression
    like
    (@[User::ProductName] == "Product" ? "\\....\Src\Product" : (@[User::ProductName] == "Product_NCP" ? \\....\Src\Product_NCP:..))
    similary archive
    (@[User::ProductName] == "Product" ? "\\....\Src\Product\Archive" : (@[User::ProductName] == "Product_NCP" ? "\\....\Src\Product_NCP\Archive" :..))
    Please Mark This As Answer if it solved your issue
    Please Vote This As Helpful if it helps to solve your issue
    Visakh
    My Wiki User Page
    My MSDN Page
    My Personal Blog
    My Facebook Page

  • Trying to loop through records

    Hi
    I trying to loop through my records and write to a database each time, but my code only seems to write the first time through...
              //check for the stock levels...
              Iterator stockLevels = getItems().iterator();
              pstmt = dbConn.prepareStatement(sql_bundle.getString("findStock"));
              while (stockLevels.hasNext()) { 
                   CartItem stockL = (CartItem) stockLevels.next();
                   pstmt.setString(1, stockL.getProduct().getISBN());
                   ResultSet rscp = pstmt.executeQuery();
                   if(rscp.next()){
                        if (rscp.getInt("STOCK_LEVEL") > stockL.getQuantity()) {
                             int newAmount = rscp.getInt("STOCK_LEVEL") - stockL.getQuantity();
                             PreparedStatement pstmte = dbConn.prepareStatement(sql_bundle.getString("updateStock"));  
                             pstmte.setInt(1, newAmount);
                             pstmte.setString(2, stockL.getProduct().getISBN());
                             pstmte.executeUpdate();
                        } else {
                             cat.error("Right Bloddy mess");
                                 throw new Exception();
                   }else{ 
                        throw new Exception("No results from known good query.");
              pstmt.close();I get the following error in my browser:
    org.apache.jasper.JasperException
         at org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:248)
         at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:289)
    and no errors when I compile using javac...
    Thanks

    excellent my looping is working...
    thanks

  • Looping through files in a folder, How to

    Looking for plsql code to read through files in a folder, and pass the name of the file found to a parm.
    The parm will then be used to open the table, process data to end of file, and then close the file. The file is then moved to an archive, and the next file in the folder is read, name of file passed to parm, file is opened, data is processed, and file is moved to archive....repeat until no files in folder.
    I only need some help with reading through the folder to find the table. I have code on how to open, process and move a folder...it's the file in folder read loop I am trying to develop.
    In summary, I am looking for some code showing how to read all tables in a folder and pass the name of the table found, until all files read.

    emss wrote:
    Yes, you understand....thank you. That's the primary objective of this thread....determine the name of the .csv file.
    The putline and so forth process the file. I need to find the file, it's name, and then process the .csv file.PL/SQL itself has no mechanism built in for determining the list of files in a directory.
    The Java solution is one of the easiest to implement as PL/SQL can interface fairly simply with Java functions which you can create on the database.
    There are other ways, but no way is going to be completely simple.
    Remember, from PL/SQL you will only really be able to get to files that the database server itself can see, so either files on the database server itself, or files on machines that the server itself has network mappings to that it can treat as if they are local files. It certainly won't be able to hack across the network to any client machines hard drive to read a list of files.

  • Looping through files with Regular expressions ?

    Hi,
    My Question is:
    if i have the following Regular Expression,
    String regrex = "tree\\s\\w{1,4}.+\\s=\\s(.*;)";
    The file in which i am looking for the string has multiple entries, is it
    possible to do another regular expression on the captured group (.*;)
    which is in the original Regular expression ?
    The text that is captured by the RE is of the type "(1,(2,((3,5),4)));" for
    each entry, and different entries in the file have slightly different syntax
    is it possible to loop through the file and first of all check for the presence
    of the original RE in each entry of the file
    and then secondly, check for the presence of another RE on the captured group?
    [ e.g. to check for something like, if the captured group has a 1 followed by a 3
    followed by a 5 followed by a and so on ].
    Thanks Very much for any help, i've been struggling with this for a while!!
    Much appreciated
    The code that i have so far is as follows:
    import java.util.*;
    import java.util.regex.*;
    import java.io.*;
    import java.lang.*;
    import javax.swing.*;
    public class ExpressReg {
    public String Edit;
    public ExpressReg(String editorEx){
    Edit = editorEx; // Edit = JTextArea
    String regrex = "tree\\s\\w{1,4}.+\\s=\\s(.*;)";
    //String regrex1 = "(.*;)";
    Pattern p = Pattern.compile(regrex);
    Matcher m = p.matcher(editorEx); // matcher can have more than one argument!
    boolean result = m.find();
    if(result){                           
    JOptionPane.showMessageDialog(null, "String Present in Editor");
    else if(!result){
    JOptionPane.showMessageDialog(null, "String Not Present In Editor");

    if i have the following Regular Expression,
    String regrex = "tree\\s\\w{1,4}.+\\s=\\s(.*;)";
    The file in which i am looking for the string has multiple entries, is it
    possible to do another regular expression on the captured group (.*;)
    which is in the original Regular expression ?Yes, the capturing group is $1 (the only one) referenced in source code as m.group(1).
    m.group() will return entire matching.
    simply use this way:
    String result = m.group(1);
    // your stuff: could be another validation
    The text that is captured by the RE is of the type "(1,(2,((3,5),4)));" for
    each entry, and different entries in the file have slightly different syntax
    is it possible to loop through the file and first of all check for the presence
    of the original RE in each entry of the file
    and then secondly, check for the presence of another RE on the captured group?Again "Yes", no limits!
    Don't need to create another Matcher, just use m.reset(anotherSourceString)..loop using the same pattern.
    Note: Take care with ".*" because regex nature is "greedy", be more specific, eg.: "\\d" just matches digits (0-9).
    Can you give us some sample of "slight difference" ?

  • URGENT:  Loop through files

    I have a package that will be run from an Oracle Job and I want to process files in a directory and load each of the files into the database. I can load one specifically, but I want to loop through all the files in the directory and load each one at a time. Any help would be greatly appreciated.
    Lisa

    I followed the instructions but when I try to create the java, I get the following error (removed the numbers in front of each line):
    and compile java source named "DirList"
    ERROR at line 2:
    ORA-29536: badly formed source: Encountered "<EOF>" at line 1, column 17.
    Was expecting:
    unknown command beginning "import jav..." - rest of line ignored.
    unknown command beginning "public cla..." - rest of line ignored.
    unknown command "{" - rest of line ignored.
    unknown command beginning "public sta..." - rest of line ignored.
    For a list of known commands enter HELP
    and to leave enter EXIT.
    unknown command beginning "throws SQL..." - rest of line ignored.
    unknown command "{" - rest of line ignored.
    unknown command beginning "File path ..." - rest of line ignored.
    unknown command beginning "String[] l..." - rest of line ignored.
    For a list of known commands enter HELP
    and to leave enter EXIT.
    unknown command beginning "String ele..." - rest of line ignored.
    unknown command beginning "for(int i ..." - rest of line ignored.
    unknown command "{" - rest of line ignored.
    unknown command beginning "element = ..." - rest of line ignored.
    For a list of known commands enter HELP
    and to leave enter EXIT.
    unknown command beginning "#sql { INS..." - rest of line ignored.
    unknown command beginning "VALUES (:e..." - rest of line ignored.
    unknown command "}" - rest of line ignored.
    unknown command "}" - rest of line ignored.
    For a list of known commands enter HELP
    and to leave enter EXIT.
    unknown command "}" - rest of line ignored.
    and compile java source named "DirList"
    ERROR at line 2:
    ORA-29536: badly formed source: Encountered "<EOF>" at line 1, column 17.
    Was expecting:
    I researched it on metalink with no luck. I'm running it on my local database (Oracle8i Release 8.1.7.0.0 - Production JServer Release 8.1.7.0.0 - Production) so this may be the problem.
    Help!
    Lisa

  • Is it possible to loop through files in a folder, but only load those with a specific filename?

    Hello all. I have a folder with about 100 text files total, but it's really only about 25 different reports, each with multiple quarters. So, for example, it looks like this...
    Report A 2014-12-31
    Report A 2014-09-30
    Report A 2014-06-30
    Report A 2014-03-31
    Report B 2014-12-31
    Report B 2014-09-30
    Report B 2014-06-30
    Report B 2014-03-31
    Report C 2014-12-31
    Report C 2014-09-30
    Report C 2014-06-30
    Report C 2014-03-31
    ...and so on
    I need to load only report B to a table in SQL Sever 2008 R2, but I need to load all quarters for report B. I'm trying to accomplish this using a foreach loop container, but I haven't figured
    out hot to tell it to only look at report B and ignore the others. In testing, the loop always starts with report A.
    In the process, I also need to capture the date section of the filename in a variable so I can create a derived column with the date to insert into the table.
    Any ideas how to accomplish this? I'm trying to avoid putting each report in its own folder because it adds a manual step, but if there's a way to do that using a file system task before running the loop, I'm open to it.
    Thanks for any advice you have!
    WeeLass

    Have you tried specified Report B*.txt for Files : under the Collections tab ?
    Narsimha

  • SQL Agent Permssions With SSIS for each loop not looping through files

    Hi I am Having trouble getting a ssis package to iterate through a file directory using a proxy account set up in Sql Server.
    So I have a package that loops over csv files. If I run the package manually or set the sql agent job to run as Sysadmin the pakage runs fine all files are processed.
    However if I use the proxy account. the package completes but no files are processed. there are no failures, there is no error handling set up in the control flow. the for each loop container simply does not recognise any files when run under a proxy.
    Note: the proxy is set up with credentials to access the folder. the credential is also set up with the server admin server role... still nothing
    i'm not sure is this is a ssis or permissions problem?
    Any comments will be appreciated

    Can you check this and see if you've configured all the steps correctly
    http://www.mssqltips.com/sqlservertip/2163/running-a-ssis-package-from-sql-server-agent-using-a-proxy-account/
    Also enable logging in package and see if you're getting any error messages obtained in output table/file based on the logging option you chose.
    Please Mark This As Answer if it helps to solve the issue Visakh ---------------------------- http://visakhm.blogspot.com/ https://www.facebook.com/VmBlogs

  • Loop through files locating specific data sets

    Hi there,
    I have been given the wonderful task of developing a setup which needs to do the following using JCAPS:
    - open and read through various flat files in a folder. These flat files have random data sets in them, where a line starting with 01, marks the start of a data set and 99, marks the end of a data set. 03, marks the line where the account number can be found.
    - retrieve the account number from the data sets and verify that against an external Oracle database table.
    - if account number is found, then read the data set from the flat file and write the data set to an output file.
    - if the account number is not found in the Oracle database table, just discard the dataset and continue with the next data set.
    If you have any ideas on how to set this up, that would be much appreciated. No need to spell things out, but if anyone has worked on a scenario like this or similar using JCAPS to do the trick please let me know.
    A scenario variant is that, instead of looking up the account number against the oracle database, we can use an if-statement like "if the currency is GBP, EUR, SEK, then take the data set from the input file and write the data set to the output file.
    I can create an input OTD to read in the data sets, and an output OTD which creates the output file. There is a blank line between data sets. The structure of a data set looks like this:
    01,CITIDIRECT,2978169,080922,0401,04010900,999,,2/
    02,2978169,400515,1,080919,0000,USD,2/
    03,57787314,USD,010,2191397371,,,015,2191397371,,,030,2191397371,,,040,2191397371,,,045,2191397371,,,060,2191397371,,,072,000,,,074,000,,,100,000,0,,400,000,0,,470,000,0,/
    49,13148384226,2/
    03,57787322,USD,010,1494730626,,,015,1494730626,,,030,1494730626,,,040,1494730626,,,045,1494730626,,,060,1494730626,,,072,000,,,074,000,,,100,000,0,,400,000,0,,470,000,0,/
    49,8968383756,2/
    03,57787349,USD,010,423382915,,,015,423382915,,,030,423382915,,,040,423382915,,,045,423382915,,,060,423382915,,,072,000,,,074,000,,,100,000,0,,400,000,0,,470,000,0,/
    49,2540297490,2/
    98,24657065472,3,8/
    99,24657065472,1,10/
    Thanks & Kind Regards,
    Richard

    Yes
    1. Have a variable inside SSIS to get folder path. Set path based on your rule using an expression
    like
    (@[User::ProductName] == "Product" ? "\\....\Src\Product" : (@[User::ProductName] == "Product_NCP" ? \\....\Src\Product_NCP:..))
    similary archive
    (@[User::ProductName] == "Product" ? "\\....\Src\Product\Archive" : (@[User::ProductName] == "Product_NCP" ? "\\....\Src\Product_NCP\Archive" :..))
    Please Mark This As Answer if it solved your issue
    Please Vote This As Helpful if it helps to solve your issue
    Visakh
    My Wiki User Page
    My MSDN Page
    My Personal Blog
    My Facebook Page

  • Problem when loop through a list within CollectionModel

    In my bean, I have these codes to define a node.
    Map<String, Object> node = new HashMap<String, Object>();
    node.put("Nodeid", nodeid);
    List theColors = new ArrayList();
    node.put("Colors", colors);
    node.put("Type", type);
    node.put("Desc", desc);
    Then, a list of these nodes are converted to CollectionModel using ModelUtils.toCollectionModel(nodes);
    In my jspx, I am able to loop through nodes, and get Type, Nodeid and Desc from the node to show on the screen.
    I am trying to loop through the list of colors within the node to draw circles with different diameter.
    <af:forEach var="theColor" items="#{node.Colors}" varStatus="vs">
    <dvt:pointLocation pointX="50%" pointY="50%">
    <dvt:marker id="mk2" scaleX="#{15-vs.index*2}" scaleY="#{15-vs.index*2}" shape="circle" fillColor="#{theColor}" />
    </dvt:pointLocation>
    </af:forEach>
    But above code does not work.
    Can someone help me? Any suggestions?
    Thanks.

    I want to call a javascript function inside a c:forEach loop.Nope sorry, won't work.
    Java/JSP runs on the server. At the server end, any html/script code is just template text to output to an html file.
    The server produces an html file, and sends it to the client.
    Java stops running.
    Java cannot call javascript, javascript can not call java. There is no direct communication.
    Java code can produce javascript code to run on a page.
    The only communication javascript has back with the server is if it makes a request (click a link, submit a button, Ajax call...)

  • How to loop through attributes

    Im trying to loop through some XML and use the two attributes
    name and href for each button im creating. so far all I have been
    able to do is onfuse myself, well not totally - I can pull the
    first name attribute from the firstChild. But I have not been able
    to successfully assign it to a button. I took out my button code as
    it was probably wrong. Heres what Ive tried...

    The arrays are built in an event, so before that event
    happens, they are undefined. After the event, you can access the
    arrays as usual. The trace(menus); call is before the
    myXML_xml.load("menu2.xml"); line, which triggers the loading, so
    it can't trace any values. It also wouldn't trace anything when
    placed directly after the load() call, because the loading will
    take some time until all data is loaded and the onLoad event is
    fired. That makes it a bit hard to use the data outside the event,
    because you must assert that it's loaded when used. The onLoad
    event is just perfect for that, so it should be done there, just
    after the loop through the xml nodes.
    For the submenus, the attached code will place the childnode
    data in subMenus. The arrays must be declared outside the event,
    otherwise they get deleted when the event finishes.
    cheers,
    blemmo

  • Loop through components...

    hello,
    im trying to loop through all the components on a jdialog/jframe ... my end goal is to resize them all, but first im just trying to get the following code working:
       Component[] cmp = this.getRootPane().getComponents();
       for (int x=0; x < cmp.length; x++)
         System.out.println(cmp[x].toString());         
       }i want to get this to display all the components on the frame, but right now it only displays one: JPanel.. i have about 20-40 components on the frame, all in different tabs on a JTabbedPane. anyone know of a nice and easy way to get all the components in an array, or use some type of enumeration to go through all the components on a form?
    thanks a lot! talk to ya later,
    Steven Berardi
    --------------------------------------

    hey trejkaz/appler,
    thanks a lot for the help.. i got it working now. trejkaz, i just wasnt sure what to pass to the method you wrote (i was passing this.getRootPane() and just "this").. but appler's code had this.getContentPane() , so i tried that and it worked ! :)
    thanks a lot both of you! anyway, heres the final code i have, in case someone else has the same question later on:
    public ArrayList getAllComponents(Container top) {   
        Component[] comp = top.getComponents();       
        ArrayList compList = new ArrayList();
        if (comp.length == 0)       
          return compList;   
        for (int i = 0; i < comp.length; i++) {
            compList.add(comp);
    if (comp[i] instanceof Container) {
    compList.addAll(getAllComponents((Container)comp[i]));
    return compList;
    private void jButton1ActionPerformed(java.awt.event.ActionEvent evt) {
    // Add your handling code here:
    ArrayList compList; // = new ArrayList();
    compList = this.getAllComponents(this.getContentPane());
    for (int n=0; n < compList.size(); n++)
    System.out.println(compList.get(n).toString());
    thanks again! talk to ya later,
    Steven Berardi

  • Loop through styles not working as intended.

    I'm trying to loop through all the styles in a number of documents and locate any styles with the font "Times New Roman (OTF)." Unfortunately, no matter how I tweak the script, it won't trigger the alert where and when it should. Any ideas? Thanks!
    var myDocument = app.activeDocument;
    for (a=1; a < myDocument.allParagraphStyles.length; a++) {
        if(myDocument.allParagraphStyles[a].appliedFont == "Times New Roman (OTF)") {alert()}
    for (b=1; b < myDocument.allCharacterStyles.length; b++) {
        if(myDocument.allCharacterStyles[b].appliedFont == "Times New Roman (OTF)") {alert()}

    Try this,
    var myDocument = app.activeDocument;
    for (a=1; a < myDocument.allParagraphStyles.length; a++) {
        if(myDocument.allParagraphStyles[a].appliedFont.fontFamily == "Times New Roman (OTF)") {alert()}
    for (b=1; b < myDocument.allCharacterStyles.length; b++) {
        if(myDocument.allCharacterStyles[b].appliedFont.fontFamily == "Times New Roman (OTF)") {alert()}
    Regards,
    Chinna

  • Looping through Collection and getting ConcurrentModificationException

    I'm trying to loop through a collection to delete some objects referenced by that collection but keep coming up against a ConcurrentModificationException.
    BwView view = svci.getViewsHandler().find("Lists");
                  Collection<BwSubscription> subarr = new TreeSet<BwSubscription>();
                  subarr = svci.getSubscriptionsHandler().getAll();  
                  if (subarr == null) {
                       logger.info("Its not working");
                  for (BwSubscription sub: subarr) {
                       logger.info("Removing subs " + sub);
                       svci.beginTransaction();
                       svci.getSubscriptionsHandler().delete(sub);
                       logger.info("Deleting calendars :" + sub);
                       svci.endTransaction();
                 The loop is allowing me to delete the first entry but then fails with the exception.
    I have tried with a generic loop but this doesn't initialise the sub entity so the loop fails and is ignored leading to problems later in the code.
    BwView view = svci.getViewsHandler().find("Lists");
                  BwSubscription[] subarr = (BwSubscription[])view.getSubscriptions().toArray(new BwSubscription []{});
                  if (subarr == null) {
                       logger.info("Its not working");
                  for (int i=subarr.length - 1; i>=0; i--) {
                       sub = subarr;
                   logger.info("Removing subs " + sub);
                   svci.beginTransaction();
                   svci.getSubscriptionsHandler().delete(sub);
                   logger.info("Deleting calendars :" + sub);
                   svci.endTransaction();
    Sub is either not initialised or gets initialised as 0 causing an ArrayIndexOutofBoundsException. I'd be grateful for some advice on getting the code to loop correctly.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                               

    While iterating over a collection (using its iterator), a ConcurrentModificationException will be thrown if the collection is modified, except if it is modified using the iterator itself.. The enhanched for-loop you're using is iterating over the collection by implicitly using an Iterator. To do what you want, make the Iterator explicit (change the enhanced for-loop to a while loop) and then use iterator.remove().

  • Loop through Query String in ASP

    Hi,
    I am new to ASP and am trying to loop through values in a
    query string
    separated by a comma, for example:
    /site/search/results.asp?ids=19736a,20248a,14952a,19956a
    I need to construct SQL from this something like
    SELECT * FROM MyTable WHERE
    ID = 19736a OR
    ID = 20248a OR
    ID = 14952a OR
    ID = 19956a
    I am just unsure on how to separate all the values from the
    query string.
    Thanks for your advice.

    Oh, in the example below there is no space between the id
    numbers in the
    querystring.
    eg. ids=1,23,456,2
    If you do have spaces then you need to adjust the split
    accordingly
    eg. ids=1, 23, 456, 2
    you would use myIdArray=split(idStr,", ")
    note the space after the comma.
    just make sure you always use the same format in your
    querystring
    Justin
    "Justin Reid" <[email protected]>
    wrote in message
    news:e6osem$dfj$[email protected]..
    > You need to create an array of ids and then add them to
    your SQL.
    > Something like:
    > <%
    > If Request.QueryString("ids") <> "" Then
    > Dim idStr, cnt, varID
    > 'get the string of id'
    > idStr = Request.QueryString("ids")
    > 'create the array
    > myIdArray=split(idStr,",")
    > cnt=0
    > 'loop though the array and add to a new string
    > for i=o to ubound(myIdArray)
    > If cnt > 0 Then varID = (varID & " OR")
    > varID = (varID & " id = " & cStr(myIdArray(i)))
    > cnt=cnt+1
    > next
    > End If
    > %>
    >
    > Then simply add you new SQL segment to your recordset.
    > Something like
    >
    > SELECT * FROM MyTable WHERE" + Replace(varID, "'", "''")
    + "
    >
    > Hope that helps
    >
    > Justin
    >
    > "Shaun" <[email protected]> wrote in
    message
    > news:e6ole1$56v$[email protected]..
    >> Hi,
    >>
    >> I am new to ASP and am trying to loop through values
    in a query string
    >> separated by a comma, for example:
    >>
    >>
    /site/search/results.asp?ids=19736a,20248a,14952a,19956a
    >>
    >> I need to construct SQL from this something like
    >>
    >> SELECT * FROM MyTable WHERE
    >> (
    >> ID = 19736a OR
    >> ID = 20248a OR
    >> ID = 14952a OR
    >> ID = 19956a
    >> )
    >>
    >> I am just unsure on how to separate all the values
    from the query string.
    >>
    >> Thanks for your advice.
    >>
    >
    >

Maybe you are looking for

  • Yosemite - dual monitor; full screen option

    I have a Mac Mini running the latest version of Yosemite. I have two monitors. Because I want to use Spaces, I do not have separate desktops on each monitor. My problem comes in when I click on a window "expand" button. When I do this the window expa

  • Data Migration Part - Reg.

    Hi all, While in Implementation of FICO part, what are the data we need to upload thrugh LSMW or BDC like Vendor Master, GL Master? Can any one suggest me and anybody can give Templates source data? Thanks & Regards, M.Mohan.

  • Debugging and preview screen

    Hello Gurus, While I am debugging a report, is it possible to view the window that is building or the alv that is showing step by step according I am debugging the report? Thanks for your help.

  • Not "Keeping files organised"

    Although this can't be a new problem, a search didn't give me an answer. I do not want iTines to organise my music, in particular I do not want it in sub folders. I want to keep it all in one folder. I used to have two main music folders, and when I

  • No apps showing on my Creative Cloud screen.

    Why do I not have any apps showing on my Creative Cloud screen even though I have both Photoshop and Lightroom.  I did not even realize there should be apps listed on the CC screen until others started showing screenshots of theirs yesterday on FaceB