Basic ADODB Problem

So, I want to implement a simple database project using VB 6 and Oracle 10g. A friend of mine who has done a similar project, sent me some sample of his code because I am new to DB programming. I had already implemented a simple working code. Here is the comparison:
rs is the ADODB.recordset object
and dbipl is the ADODB.connection object
team is the tablename
name is a column in the table
His code:
dbipl.Open "dsn=new;user id=system;password=pass;"
rs.CursorType = adOpenStatic
rs.CursorLocation = adUseClient
rs.LockType = adLockOptimistic
rs.Open "select * from team", dbipl, , , adCmdText
Do While Not rs.EOF = True
list.AddItem rs.Fields("name")
rs.MoveNext
Loop
rs.Close
dbipl.Close
My Code:
dbipl.Open "dsn=new;user id=system;password=pass;"
set rs = db.Execute("select * from team")
Do While Not rs.EOF = True
list.AddItem rs("name")
rs.MoveNext
loop
rs.close
dbipl.Close
I am not using the Fields keyword anywhere in my code. Also, he hasn't used the INSERT or UPDATE statements in his entire code because he is using something like this to update or insert records:
rs.AddNew
rs.Fields(0) = Text1.Text
rs.Fields(1) = Text2.Text
rs.Update
I though we have to use the SQL statements like this:
set rs = db.Execute("insert into table values (......)")
I am guessing his advantage is that he doesn't need to use SQL statements for inserting records or updating his tables. I am completely lost and I don't know which method to use. Please clarify the difference in the two methods. Thank you for your time.

Pratham wrote:
Also, he hasn't used the INSERT or UPDATE statements in his entire code because he is using something like this to update or insert records:
rs.AddNew
rs.Fields(0) = Text1.Text
rs.Fields(1) = Text2.Text
rs.Update
I though we have to use the SQL statements like this:
set rs = db.Execute("insert into table values (......)")The AdoDB class generates that SQL itself if you do not explicitly provide a SQL statement. In fact, from long past experience doing Windows client development, drivers like AdoDB can be quite noisy and generate all kinds of SQL statements for "managing" the database client-server session - totally unbeknown to the developer whose code that AdoDB driver is executing. This can cause anything from a performance knock to unexpected run-time behaviour.
Back then I always used the "+passthru+" option - telling the driver to bug out and only do the SQLs I explicitly coded and nothing else.
No idea how the "modern" driver behaves... but I would think that not much have changed.
If you do have to use SQL from your client code, then rather use explicit SQL. Code it yourself. Use bind variables (critical!). Use bulk binding. Do not rely on the driver to generate the appropriate and optimised SQL for you. It is seldom able to do it as well as hand crafted SQL.

Similar Messages

  • Really Basic Spry problem

    I'm new to CS3. I'm using Dreamweaver, and I want to use the
    Spry XML deatail region display. I followed the tutorial for the
    Aquo example. When I transfer all of the files to my server, the
    spry js effects don't work. No errors, just no function. I checked
    the file paths and made sure they matched and that files were in
    the right directories on the server. It seems like this must be
    something so basic that it's not in the help files. Can anyone
    help?

    "lanfest" <[email protected]> wrote in
    message
    news:gnulsa$jo9$[email protected]..
    > When I transfer
    > all of the files to my server, the spry js effects don't
    work. No
    > errors, just
    > no function.
    Without seeing your files, any answer is pure guesswork. Post
    a URL to
    the problem page, and someone should be able to help you.
    David Powers
    Adobe Community Expert, Dreamweaver
    http://foundationphp.com

  • Visual basic code problem

    Hello!
    I want to use visual basic to build a htm which can control labview throght datasocket, i set the switch
    as " Swithc until release " in visual basic, the code is
    Private Sub CWButton1_Click()
    CWDataSocket1.Data = CWButton1.Value
    End Sub
    but the led of labview can't light on.
    is the code problem?
    thanks!

    The problem is most likely because you have the code in the Click() event handler. The click event in VB is a left mouse down AND mouse up over the controls. If you are wanting it to send out the value when you press and hold the button down, change the event handler to the ValueChanged event.
    Best Regards,
    Chris Matthews
    National Instruments

  • Please explain Importance of Interfaces ....? [Basic Conceptual Problem..]

    Hi everyone..
    i am new to java..i want to know the importance of interfaces in java....
    interface A{
    public void print();
    class B implements A{
    public void print()
    System.out.println("Please explain me the importance of Interfaces");
    the class B can also be defined with out interface as the following...
    class B {
    public void print()
    System.out.println("Please explain me the importance of Interfaces");
    Both the classes have the same functionality ... then what the use of declaring an Interface and implementing it...?
    PLEASE EXPLAIN BASIC USE OF INTERFACES....?
    Note: Ignore any syntax errors in the code that i have written above
    thanks in advance

    In Java, mostly we use inheritance for code reuse.
    public class Toy{
    public class Ball extends Toy{
    }Suppose there is another class Type which doesn't related to Toy family.
    public class Tyre{
    }Now we know that Ball and Tyre are bouncable. So we will have to implement bounce() method in both class which behave differently.
    public class Ball extends Toy{
        public void bounce() {
    }Suppose there is another class Type which doesn't related to Toy family.
    public class Tyre{
        public void bounce() {
    }*If want to collect bouncable things into a single collection, then how can we do that?*
    There is way, we can use abstract class:-
    public abstract BouncingThings {
    public abstract void bounce();
    }Now things that are bouncable can extend BouncingThings class and the collection of bounce things will be
    BouncingThings [] bouncingThings;
    But there is one problem Java doesn't allow multiple class inheritance. So Ball can't extend both Toy and BouncingThings.
    We can use interface:-
    public interface Bouncable{
    void bounce();
    public class Ball extends Toy implements Bouncable{
    public void bounce(){
    public class Tyre implements Bouncable{
    public void bounce(){
    Bouncable[] bouncableThings = { new Ball().new Tyre() };Edited by: SandipGaikwad on Oct 16, 2007 12:23 PM

  • Help with Hiss Removal / Basic Audio Problems

    Hey guys.  I have a Panasonic HDC-TM700 with an attached Azden High-performance (SMX-10) Stereo Condenser Microphone.  I use it to record a person talking about 6 feet away in small room.  However the audio always sounds horrible on playback.  By horrible I mean there is always a loud hiss, and they sound so flat.  Since I have to do this on a weekly basis now I am hoping somebody here can give me some pointers on how to fix these issues.  I assume it a fairly issue fix in Adobe Audition CS 5.5 (which I have).  I start my production in Premiere Pro CS5.5 and then export the audio to Adobe Audition for editing.  My problem is ive never been a sound guy so I really don’t understand what all the filters and settings do (in Premiere or Audition).  I was able to “capture the noise” and have Auditon “remove it”.   That does an ok job of removing the hiss… but then the already flat voice left over, sounds very tinny.  
    So is there any advice or direction you can give me on what settings to use or apply to get audition to make the audio sound better?  Or is there anywhere (for beginners) to learn how to use the settings?  I think my problem is that I don’t understand the basics of audio like what EQ or a compressor does, and how the settings effect things.  But everything I read is so technical and it just confuses me more. 
    Or are there any other microphones (under $200.00) anybody could suggest that would be able to be added to this camera that could get me better audio for my situation?  
    I would really appreciate any advice, or a point in the right direction.  Thanks guys.

    I'm afraid my answer isn't going to make you happy.  A microphone mounted on a camera six feet away from a speaker isn't ever going to give you the results you're after.  Audition may be able to help a little but the real trick is to get the mic much closer to the speaker, especially in a small room which is going to sound hollow and boomy.  Effectively what you're asking is like "if I shoot on a wide angle lens, how can I zoom into a closeup in editing without losing resolution".  Sound is just as unforgiving.  When I was working as a sound guy for video, the trick was always to get the mic in as close as possible without getting into shot--even with a thousand dollar mic, I couldn't just stand by the camera and get good results--well, at least not without a long fish pole!
    How you do this is going to depend on the details of your shoot.   You might try a shotgun mic on a fishpole boom--the cheapest shotgun I know is the Rode NTG2 but this with a fishpole will blow your $200 budget.  (There's also the NTG1 but this needs phantom power and I'll assume you can't provide that.
    Or, in a static situation, there are various clip on lavalier mics you could try--Sennheiser do at least one within your budget (or used to--haven't checked lately) that can be powered with a little button battery.
    Either way, though, the trick is to get the mic much closer to the subject.
    For material you already have, the only suggestion I have is to do your hiss reduction in several small steps rather than trying to do it all at once.  This should result in the remaining voice sounding less "processed" but it's still not the same as getting the recording right to start with.

  • Dreamweaver - Properties - Basic Design Problem

    I have been using Dreamweaver 8 for some time now with no
    problems but now when I opened a page in Dreamweaver last night it
    appears to have lost all of it's properties and gone back to basic
    design. When I try to change the properties like changing the font
    to bold or increasing the size of the font - It won't let me - It
    just says basic The links have also gone back to the basic blue
    rather then black which is the colour i set them to.
    I have obviously changed some kind of setting but don't know
    which one.
    I tried downlaoding my site from the server to the
    dreamweaver root folder to see if this would solve the problem but
    again it looks very basic.. When I preview the site in internet
    exploer it looks how it was originally designed.
    Help!!!

    Please keep this on the DW forum.
    Murray --- ICQ 71997575
    Adobe Community Expert
    (If you *MUST* email me, don't LAUGH when you do so!)
    ==================
    http://www.dreamweavermx-templates.com
    - Template Triage!
    http://www.projectseven.com/go
    - DW FAQs, Tutorials & Resources
    http://www.dwfaq.com - DW FAQs,
    Tutorials & Resources
    http://www.macromedia.com/support/search/
    - Macromedia (MM) Technotes
    ==================
    "mickeyboi79" <[email protected]> wrote in
    message
    news:em1av3$qev$[email protected]..
    >I have been using Dreamweaver 8 for some time now with no
    problems but now
    >when
    > I opened a page in Dreamweaver last night it appears to
    have lost all of
    > it's
    > properties and gone back to basic design. When I try to
    change the
    > properties
    > like changing the font to bold or increasing the size of
    the font - It
    > won't
    > let me - It just says basic The links have also gone
    back to the basic
    > blue
    > rather then black which is the colour i set them to.
    >
    > I have obviously changed some kind of setting but don't
    know which one.
    >
    > I tried downlaoding my site from the server to the
    dreamweaver root folder
    > to
    > see if this would solve the problem but again it looks
    very basic.. When I
    > preview the site in internet exploer it looks how it was
    originally
    > designed.
    >
    > Help!!!
    >

  • Basic Design Problem: Using an interface as flag

    My problem is pretty basic - i just want to know the best way to design that:
    Imagine, you have an interface Example. There are two abstract classes implementing this - ExampleOne and ExampleTwo.
    Now there may be dozens of classes that subclass one of these two. They provide certain things that may be cacheable or not. By default it should be, but if the class implements NonCacheableExample its results must not be cached.
    I tried it by adding an attribute "cacheable = true" to the Example interface and "cacheable = false" to the NonCacheableExample. This doesn't work of course - when i try to retrieve the attribute from whatever class it is always "true", no matter if it implements NonCacheableExample or not. I guess the attribute inherited from the abstract class is "stronger" than the one from the interface.
    The only easy way I could imagine would be to add an interface CacheableExample, so that a class needs to implement either Cacheable- or NonCacheableExample - however I'd like it to be cacheable by default.
    Puh... I hope that was somehow understandable. Any ideas?

    My problem is pretty basic - i just want to know the
    best way to design that:
    Imagine, you have an interface Example. There
    are two abstract classes implementing this -
    ExampleOne and ExampleTwo.
    Now there may be dozens of classes that subclass one
    of these two. They provide certain things that may be
    cacheable or not. By default it should be, but if the
    class implements NonCacheableExample its
    results must not be cached.
    I tried it by adding an attribute "cacheable = true"
    to the Example interface and "cacheable =
    false" to the NonCacheableExample. This
    doesn't work of course - when i try to retrieve the
    attribute from whatever class it is always "true", no
    matter if it implements NonCacheableExample or not. I
    guess the attribute inherited from the abstract class
    is "stronger" than the one from the interface.Let's get one thing straight - there ARE no attributes associated with an interface. They're pure signatures, nothing else. You can have static data members, but no attributes.
    If the abstract class appears "stronger", that's because it's the only one with attributes.
    >
    The only easy way I could imagine would be to add an
    interface CacheableExample, so that a class
    needs to implement either Cacheable- or
    NonCacheableExample - however I'd like it to
    be cacheable by default.
    Puh... I hope that was somehow understandable. Any
    ideas?You have have a Cacheable interface that includes addToCache() and removeFromCache() methods. The AbstractCacheable implementations of these methods can default to meaningful behavior. The AbstractNonCacheable can implement these methods in such a way that they're no-ops or throw the runtime exception that indicates OperationNotSupported.
    Personally, I think this is a bad design. You don't want to build in cacheable or not into an object. If you look at what people are doing with POJO persistence, they go to a great deal of trouble not to have to build persistence into the objects. No marker interfaces like Persistable. I think you should follow this course, too.
    Why would something NOT be cacheable? If you have a cache and an object, under what circumstances would you want to absolutely prohibit caching?
    Better to stop spending so much time thinking about this and more time thinking about getting a good cache, preferrably not one that you have to write. EHCache and OSCache come to mind. Go get those and get on with it. Neither of them require anything like a Cacheable interface.
    %

  • Basic GUI problem

    Okay, Im trying to create a simple input/output menu. I'm trying to get the GUI portion wrapped up but it's kicking my but. The display is suppose to have one side with a text=Enter Weekly Hour, a text entry field and a enter button. The other side will be the display. I have built these and put them in there round about locations but I have two problems.
    1. The text "enter weekly hour", text entry field and the enter button are suppose to be one on top of each other.
    2. When I resize the screen down or up it cuts off or rearranges the area's different than the way they are suppose to be.
    I know I have to bind the heights of the components by placing them into another BorderLayout-managed container. Which I thought I have done. Obviously I am missing something really simple.
    import javax.swing.*;
    import java.awt.*;
    import java.awt.event.*;
    class Ch14NestedPanels1 extends JFrame {
    //    Data Members
         * Default frame width
        private static final int FRAME_WIDTH    = 300;
         * Default frame height
        private static final int FRAME_HEIGHT   = 170;
         * X coordinate of the frame default origin point
        private static final int FRAME_X_ORIGIN = 150;
         * Y coordinate of the frame default origin point
        private static final int FRAME_Y_ORIGIN = 250;
        private JTextField inputEntry, outputDisplay;
        private JLabel  list, text;
    //      Main method
        public static void main(String[] args) {
            Ch14NestedPanels1 frame = new Ch14NestedPanels1();
            frame.setVisible(true);
    //    Constructors
         * Default constructor
        public Ch14NestedPanels1() {
            Container         contentPane;
            JPanel                  inputPanel;
            JPanel            listPanel;
            JButton           enterButton;
            //set the frame properties
            setSize      (FRAME_WIDTH, FRAME_HEIGHT);
            setTitle     ("Program Ch14NestedPanels1");
            setLocation  (FRAME_X_ORIGIN, FRAME_Y_ORIGIN);
            contentPane = getContentPane( );
            contentPane.setLayout(new BorderLayout(5,5));
              //Creates panel for entry items inputEntry,text, and enterButton
            inputPanel = new JPanel();
            inputPanel.setBorder(BorderFactory.createLoweredBevelBorder());
            contentPane.add(inputPanel, BorderLayout.WEST);
            //Creates text entry field       
            inputEntry = new JTextField(10);
            inputPanel.add(inputEntry,BorderLayout.CENTER);
            //Creates text label
            text = new JLabel("Enter weekly hour");
            inputPanel.add(text,BorderLayout.NORTH);
            //Creates enter button
            enterButton = new JButton("Enter");
            inputPanel.add(enterButton,BorderLayout.SOUTH);
            //Creates panel for list display
            listPanel = new JPanel();
            listPanel.setBorder(BorderFactory.createLoweredBevelBorder());
            listPanel.add(list = new JLabel("This is where the list goes"));
            contentPane.add(listPanel,BorderLayout.EAST);
            setDefaultCloseOperation( EXIT_ON_CLOSE );

    Your basic code is like this:
    inputPanel = new JPanel();
    inputEntry = new JTextField(10);
    inputPanel.add(inputEntry,BorderLayout.CENTER);
    text = new JLabel("Enter weekly hour");
    inputPanel.add(text,BorderLayout.NORTH);
    enterButton = new JButton("Enter");
    inputPanel.add(enterButton,BorderLayout.SOUTH);
    By default when you create a JPanel it uses a FlowLayout. So when you add a component to the panel the components a layed out Left-to-Right.
    Using BorderLayout.CENTER, NORTH, SOUTH is ignored by the FlowLayout manager.
    You should be using:
    JPanel inputPanel = new JPanel( new BorderLayout() );
    Now when yo add component to your panel you can use the BorderLayout constraints.

  • Basic noobie problem with image dimensions

    Hi folks.
    I'm trying to walk myself through a Layer Masking exercise, but I've run into a 'glitch' involving some very basic Photoshop CS3 sizing elements, and I'm durned if I can see what's going wrong.
    I've print screened the last stage of my PSD and uploaded it to Alkaspace, here:
    http://www.alkaspace.com/free/view_image/a0a4b2304/gearshake.JPG
    The screen you see is made up (on an XPP SP3 laptop) of three basic components;
    1) 'masking2.psd'is the file I created as background. It's 200mm x 200mm x 72 pixels\inch, RGB, 8 bits and white. But I'm not sure that this file has anything to do with my question. Rather, I think it's to do with one or the other of the two jpgs I downloaded from a tutorial site for the purposes of this exercise. These files are: (not the original names which I think were 'example1 and 2)
    2) handshake.jpg 7k
    3) gearwheel.jpg 25k
    Here's my headscratcher:
    Both of these files are 72pi and the same width, 8.82cm. (their heights are different, as you can see)
    Both were set at (if it matters) 100% size.
    So why is handshake front) markedly different in width from gearwheel (rear), when they're both 8.82 cm wide? Why don't the sides of the handshake image line up exactly with the sides gearwheel?
    It's driving me bats. Help would be greatly appreciated :-)
    TX

    >There doesn't seem to be a choice in the Layer's right-click menu to turn off the "mask facility" without also removing the results of the masking process.
    you can right click the mask itself in the layers palette to get a popup menu that lets you "apply" it. that kinda merges it into the rest of the layer.
    >And if the Layer Mask is still activated on a layer, how does one then use the paint brush normally on the layer?
    in the layers palette, on the masked layer, you can click on either the icon for the image data, or the icon for the mask data. try it. see how whichever one you click on gets a little border around it? that tells you which one will get attention when you paint on the layer in the main image.

  • HELP me please with a basic Mac Problem

    I recently updated to Yosemite, and I have a question that can hopefully be fixed. Even as I am typing, the problem is occuring. The issue is that right now, my cursor is in this little box typing, but all of a sudden, its gone. For example, when you're in Microsoft word or when you're on the internet, and you click on something ELSE, like opening Photo Booth or whatever, the original thing you were on grays out because it is not the primary focus, my macbook is doing that so every few seconds, it removes the "focus" from the internet, or microsoft word, and i have to re-click on the **** thing every few seconds.
    another example, I am typing on microsoft word for 2 minutes and the microsoft bar thing is dark gray. without notice, the dark gray turns light gray and now I am getting that little "beep" sound because my cursor is no longer in microsoft word and it stops me from typing anything until i click on word again. any issues why this is happening?

    I got a table with 7 columns (parameter:NUMBER).
    column1 column2 column3 ...etc.
    1 20 3000
    0 22 12123
    1 24 3244
    1 18 4535
    1 29 5654
    1 40 5775
    0 30 2344
    0 23 2366
    With the procedure (schritt2) above you can calculate the regression function STATS_CROSSTAB(column1,column2,'CHISQ_OBS') with the parameter table_name and two column_names. I get as result:
    count(column) age chi_square chi_significance
    101 38 38.4 0.002
    The problem is that I must repeat the calculation 6 times for 7 columns.
    The calculation-code:
    OPEN cur_cross FOR 'WITH '
    ||'att_grp AS '
    ||'(SELECT '||column1||' as x1 , lev, '||column2||', '
    ||' CASE'
    ||' WHEN '||column2||' <= lev '
    ||' THEN 1 '
    ||' ELSE 2 '
    ||'END attribute_group '
    ||'FROM '||table_in||', '
    ||'(SELECT level AS lev '
    ||'FROM dual '
    ||'WHERE level >= (SELECT MIN('||column2||') FROM '||table_in||') CONNECT BY level <= (SELECT MAX('||column2||') FROM '||table_in||'))) '
    ||'SELECT count(lev), lev, '
    ||'ROUND(STATS_CROSSTAB(x1,attribute_group,''CHISQ_OBS''),4)) AS chi_square, '
    ||'ROUND(STATS_CROSSTAB(x1,attribute_group,''CHISQ_SIG''),4) AS significance, '
    ||'dense_rank() over (order by ROUND(STATS_CROSSTAB(x1,attribute_group,''CHISQ_OBS'' ),4) DESC) AS rank '
    ||'FROM att_grp '
    ||'GROUP BY lev '
    ||'ORDER BY lev';
    Is there a alternative to put this calculation code in a FOR LOOP??
    Edited by: user8902564 on 12.02.2010 07:22

  • A basic question/problem with array element as undefined

    Hello everybody,
    thank you for looking at my problem. I'm very new to scripting and javaScript and I've encountered a strange problem. I'm always trying to solve all my problem myself, with documentation (it help to learn) or in the last instance with help of google. But in this case I am stuck. I'm sure its something very simple and elementary.
    Here I have a code which simply loads a text file (txt), loads the content of the file in to a "var content". This text file contents a font family name, each name on a separate line, like:
    Albertus
    Antenna
    Antique
    Arial
    Arimo
    Avant
    Barber1
    Barber2
    Barber3
    Barber4
    Birch
    Blackoak ...etc
    Now, I loop trough the content variable, extract each letter and add it to the "fontList[i]" array. If the character is a line break the fontList[i] array adds another element (i = i + 1); That's how I separate every single name into its own array element;
    The problem which I am having is, when I loop trough the fontList array and $.writeln(fontList[i]) the result in the console is:
    undefinedAlbertus
    undefinedAntenna
    undefinedAntique
    undefinedArial ...etc.
    I seriously don't get it, where the undefined is coming from? As far as I have tested each digit being added into the array element, I can't see anything out of ordinary.
    Here is my code:
    #target illustrator
    var doc = app.documents.add();
    //open file
    var myFile = new File ("c:/ScriptFiles/installedFonts-Families.txt");
    var openFile = myFile.open("r");
    //check if open
    if(openFile == true){
        $.writeln("The file has loaded")}
    else {$.writeln("The file did not load, check the name or the path");}
    //load the file content into a variable
    var content = myFile.read();
    myFile.close();
    var ch;
    var x = 0;
    var fontList = [];
    for (var i = 0; i < content.length; i++) {
        ch = content.charAt (i);
            if((ch) !== (String.fromCharCode(10))) {
                fontList[x] += ch;
            else {
                x ++;
    for ( i = 0; i < fontList.length; i++) {
       $.writeln(fontList[i]);
    doc.close (SaveOptions.DONOTSAVECHANGES);
    Thank you for any help or explanation. If you have any advice on how to improve my practices or any hint, please feel free to say. Thank you

    CarlosCantos wrote an amazing script a while back (2013) that may help you in your endeavor. Below is his code, I had nothing to do with this other then give him praise and I hope it doesn't offend him since it was pasted on the forums here.
    This has helped me do something similar to what your doing.
    Thanks again CarlosCanto
    // script.name = fontList.jsx;
    // script.description = creates a document and makes a list of all fonts seen by Illustrator;
    // script.requirements = none; // runs on CS4 and newer;
    // script.parent = CarlosCanto // 02/17/2013;
    // script.elegant = false;
    #target illustrator
    var edgeSpacing = 10;
    var columnSpacing = 195;
    var docPreset = new DocumentPreset;
    docPreset.width = 800;
    docPreset.height = 600;
    var idoc = documents.addDocument(DocumentColorSpace.CMYK, docPreset);
    var x = edgeSpacing;
    var yyy = (idoc.height - edgeSpacing);
    var fontCount = textFonts.length;
    var col = 1;
    var ABcount = 1;
    for(var i=0; i<fontCount; i++) {
        sFontName = textFonts[i].name;
        var itext = idoc.textFrames.add();
        itext.textRange.characterAttributes.size = 12;
        itext.contents = sFontName;
        //$.writeln(yyy);
        itext.top = yyy;
        itext.left = x;
        itext.textRange.characterAttributes.textFont = textFonts.getByName(textFonts[i].name);
        // check wether the text frame will go off the bottom edge of the document
        if( (yyy-=(itext.height)) <= 20 ) {
            yyy = (idoc.height - edgeSpacing);
            x += columnSpacing;
            col++;
            if (col>4) {
                var ab = idoc.artboards[ABcount-1].artboardRect;
                var abtop = ab[1];
                var ableft = ab[0];
                var abright = ab[2];
                var abbottom = ab[3];
                var ntop = abtop;
                var nleft = abright+edgeSpacing;
                var nbottom = abbottom;
                var nright = abright-ableft+nleft;
                var abRect = [nleft, ntop, nright, nbottom];
                var newAb = idoc.artboards.add(abRect);
                x = nleft+edgeSpacing;
                ABcount++;
                col=1;
        //else yyy-=(itext.height);

  • Basic question - Problems with basic query - Mask = INSIDE

    Greetings,
    I'm doing a basic query on Oracle 10g Spatial, is to determine the intersection between two layers (one point called "Calidad1") and other polygons, called "Parishes")
    For issuing the following query based on the documentation of oracle:
    "select C1.ID, C1.SECUENCIA,
    P. COD_ENTIDAD, P. STATE
    Cod_county P., P. TOWNSHIP,
    P. COD_PARROQUIA, P. PARISH
    from CALIDAD1 c1,
    PARISHES p
    where sdo_relate (c1.geoloc, p.geoloc, 'mask = INSIDE querytype = WINDOW') = 'TRUE'
    order by C1.ID;
    When I run the query, no errors but extends too long (more than 10 minutes) and no end, I have to cancel.
    Canceling shows me the following error:
    "ORA-13268: error obtaining dimension from USER_SDO_GEOM_METADATA
    ORA-06512: at "MDSYS.MD", line 1723
    ORA-06512: at "MDSYS.MDERR", line 8
    ORA-06512: at "MDSYS.SDO_3GL", line 89 "
    This query is very basic and the data volume is small, a conclusion: I must be skipping a step or activity.
    Can you guide a little to resolve this situation and get the query that I need?
    Thanks to all

    First, try this query with the ordered hint and also note the change in the FROM clause.
    select /*+ ordered */ C1.ID, C1.SECUENCIA,
    P. COD_ENTIDAD, P. STATE
    Cod_county P., P. TOWNSHIP,
    P. COD_PARROQUIA, P. PARISH
    from PARISHES p,
    CALIDAD1 c1,
    where sdo_relate (c1.geoloc, p.geoloc, 'mask = INSIDE querytype = WINDOW') = 'TRUE'
    order by C1.ID;
    See if this is using the index as expected. If not try this:
    select /*+ ordered index(p name_of_the_spatial_index_on_the_PARISH_Table) */
    C1.ID, C1.SECUENCIA,
    P. COD_ENTIDAD, P. STATE
    Cod_county P., P. TOWNSHIP,
    P. COD_PARROQUIA, P. PARISH
    from PARISHES p,
    CALIDAD1 c1,
    where sdo_relate (c1.geoloc, p.geoloc, 'mask = INSIDE querytype = WINDOW') = 'TRUE'
    order by C1.ID;
    siva

  • Basic Deployment problem, SQL Server 2000 and wanna create setup

    I have just finished making a small app using Java and using JDBC driver to connect to an SQL Server 2000 that is installed on my PC.
    I now want to create a setup (using NSIS) of this app and distribute among friends. But my problem is that I have created the database on my PC on the SQL Server 2000. Do all the people who want to use my app have to have Sql Server 2000 installed ?? How do they get the data from the database if they dont have Sql Server installed??
    I really havent tried much of apps that use databases...soo dont know much, but then any help would be appreciated!!

    They have to connect to an instance of SQL Server 2000 that has the database and schema that your app requires, so the host machine has to be visible in their network, with SQL Server installed, listening on the port in your URL connection string (default is 1433), with a username and password that you've set up for a user with the appropriate permissions GRANTed.
    As you can see, it's not trivial.
    If all the people you're distributing the program to can see your machine's IP address, they can simply connect to your database.
    If not, you should provide all the scripts necessary to create the database and create the tables, set up the permissions, and populate the data.
    %

  • Really basic embeding problem

    I am trying to duplicate a display for training pilots. The
    display is a 14hi x 25wide grid. The font is 'Letter Gothic MT
    Bold'.
    Each character has equal widths and fits perfectly in the
    grid, which is what I need. I also need the same font 3 points
    smaller that also fits in the grid. I do this by selecting 1.8 A/V
    (I guess this is like kerning) It works great with static text.
    Unfortunately, I have to embed the font so the end user can
    see it correctly. Thats where problems begin. I apparently can only
    embed with Dynamic text which is OK. When I embed the font the 1.8
    A/V (kerning) goes away and I lose all the alignment. I am
    currently trying to use text variables and HTML coding to color the
    letters and change the size of the characters.
    I have to embed, I would like dynamic text, and I have to
    change the color on individual characters.
    I don't understand how flash manages text. I tried to find it
    in the online docs and in this forum but no luck.
    Any ideas?
    Sorry, I'm still using Flash 7.
    Thanks for helping.

    Thanks for the quick reply.
    I tried your suggestion. Apparently static text does auto
    embed itself into the final swf. Since that is the case, I suppose
    what I'm remembering must be that we used dynamic text and forgot
    to embed.
    It would be nice to use actionscript to control the text
    content (ie. dynamic) then we don't have to be concerned with
    messing up the alignment.
    Thank you again for your help.

  • Motion Basic 3D Problem

    I would like to move the x-axis or the anchor point of the basic 3D-filter to the base of an object, enabling the object move around it's base instead of it's center, is this possible?
    If so, how do I do it?
    If not, how else can I create this effect?
    Thanks in advance for your help.
      Mac OS X (10.4.6)  

    omendrec, it was nice of you to give thanks in advance but it would also be right to give points after having received valuable information. Mark at the right of a post to award points and then mark your thread as "solved." If you do not know how to do this yet, someone will be glad to show you how.
    Welcome to the forum.
    LM
    PBG4 17", 1.67 GHz, 2 GB RAM   Mac OS X (10.4.6)   Tiger 4.7, 4 external hard drives (2 Seagates @ 350 + GB), 3 firewire. 1 USB

Maybe you are looking for

  • Upload of EBS

    Hi all, I am trying to upload an EBS file and the system issues error message "House bank: no entry with bank key& and account&'. All the bank details data are maintained correctly in the house banks, there is entry with the specific bank key and acc

  • Photos not showing, only gray boxes

    so i opened up my iPhoto, and some of my pics aren't showing. they show when i click on them, but the like thumbnails aren't showing. only gray boxes. like the outline of the box is a dotted gray line. help?

  • Automatic upload bank stmt.

    Hi,     I faced a problem when uploading the bank stmt into Tcode FF67 , the fields which r entered in my selection criteria went to selection screen of FF67, but i did not get the output , when the program executed directly the batch input is create

  • How long does it take to download and install ios 7.1.2?

    hello, how long does it take to download and install the new ios 7.1.2? i am in the installation phase but its taking about an hour now and its still trying to load. i cant use my ipod. i really need help because the bar is not moving and the screen

  • CD/DVD disc player not auto reading when disc inserted

    CD-DVD drive not working properly . Will not auto read when a disc is inserted to play music even tho Windows Media Player is designated as the auto player. Have checked the DVD-CD disc drive in device manager and it says it is working properly and t