Is my query the very last bit of sql sent through cfquery?

I have Coldfusion 9 on a Windows Server 2008 box. I have a datasource that points to a Windows Server 2000 with SQL Server 2000. My goal with this template was to determine if my SQL server was recieving any traffic. We anticipate that one or two databases may have select statements being run against it. So, we figured we could use this template to produce proof of activity. (if a process's last query is different from the last one we logged, then that confirms that our sql server is still recieving activity)
<cfquery name="processes" datasource=#dsn#>
    USE master
    SELECT * from sysprocesses where spid > 50
</cfquery>
<cfloop query="processes">
    <cfquery name="lastquery" datasource=#dsn#>
        DBCC INPUTBUFFER(#duckprocesses.spid#)
    </cfquery>
You can see that I'm using DBCC INPUTBUFFER to determine what the last query was. Utilizing the field called #lastquery.eventinfo# I was hoping to see some queries connected to our datasource. After testing however, I am not getting any proof of my coldfusion server sending sql to my sql server. The queries were successful, because they returned data to my test coldfusion  page, but I couldn't find my query in the inputbuffer command. I know it works, because my sql server queries (run locally on the sql server) returned some results and would properly show up after using the INPUTBUFFER command. However, when I send some queries via <CFQUERY> I do not see the queries in the inputbuffer command.  I do see the following "SET TRANSACTION ISOLATION LEVEL READ COMMITTED" next to the IP address of my Coldfusion server. So that leads me to believe that there is some transactional safety inherit with coldfusion.
Does coldfusion send ONLY my query to the database server or does it also come inherit with some transactional sql? Like when your CFM throws an error after a <cfquery>INSERT some rows here</cfquery> and the inserted rows do not show up because an error was thrown a few lines down?

I suggest that you look closely at the MySQL function library reference material for the version of MySQL that you are running ... and, consider upgrading if you need to.
In any case, you might be able to get more precision by asking for it, e.g. with the CAST() and CONVERT() functions.
The MySQL documentation (as recently as 5.0) discusses precision math functions.
Most significantly, though, it seems that MySQL now offers a library of geo-spatial (GIS) functions which might make it possible for you to go well beyond the Pythagorean Theorem in addressing your problem.  The boundaries of each ZIP Code are, of course, a closed polygon, and what you are really looking for here is to determine containment of a chosen point within this and/or adjacent polygons.  MySQL 5.0, for instance, appears to have considerable direct support for this.  You do have to purchase these data sets.
See:  http://dev.mysql.com/doc/refman/5.0/en/spatial-extensions.html

Similar Messages

  • PLEASE HELP!! I've used iWeb to create multiple sites, all published to third party servers.  The very last site I made changes to is showing up in any domain file I open - despite their different names and locations on my iMac.  I just switched to Lion.

    Please HELP!!  I just switched to Lion.  I have created multiple websites using iWeb  3.0.4 and despite my having saved their 'domain' files in various locations and using different filenames, upon opening the domain files I keep getting the very last site I published.  All the sites were published to third party servers.  The domain files (still have a preview that look correct and have different file sizes) but keep going back to the last site published. HELP ME PLEASE!! Are the old files still available?!!

    In Lion the Library folder is now invisible. To make it permanently visible enter the following in the Terminal application window: chflags nohidden ~/Library and hit the Enter button - 10.7: Un-hide the User Library folder.
    To open your domain file in Lion or to switch between multiple domain files Cyclosaurus has provided us with the following script that you can make into an Applescript application with Script Editor. Open Script Editor, copy and paste the script below into Script Editor's window and save as an application.
    do shell script "/usr/bin/defaults write com.apple.iWeb iWebDefaultsDocumentPath -boolean no"delay 1
    tell application "iWeb" to activate
    You can download an already compiled version with this link: iWeb Switch Domain.
    Just launch the application, find and select the domain file you want to open and it will open with iWeb. It modifies the iWeb preference file each time it's launched so one can switch between domain files.
    WARNING: iWeb Switch Domain will overwrite an existing Domain.sites2 file if you select to create a new domain in the same folder.  So rename your domain files once they've been created to something other than the default name.
    OT

  • TS1135 Cannot process the Photo Book; it fails always at the very last stage with "error occurred while uploading on of your files. Pls check your network connection and click Retry..." Tried at 12 times and no joy!  Can anyone help?

    Can anyone help with the Photo Book process?  I have tried at least a dozen times and the Photo Book always fails at the very last stage of the process.  I ordered Buy Book, it assembles the book and files are transferred until the very last moment... it says " An error occurred while uoloading one of your files.  Please check your network connection and click Retry to resend your files."   It fails every time, any advice?  My server is TalkTalk which may explain everything !! ??   Help.

    Boot into Safe Mode, Mac OS X: Starting up in Safe Mode, and order from there. 
    Also make a PDF file of your book according to this Apple Document, iPhoto '11: Preview a book, card, or calendar before you order or print it, before you order to check for errors.  Keep that file to compare with the printed copy when it arrives.
    OT

  • TS2516 an error occurred uploading my iPhoto Book order. It puts the book together and starts to send but at the very last moment comes up with an error message. but checking the book in iPhoto there are no problems to be found.

    an error occurred uploading my iPhoto Book order. It puts the book together and starts to send but at the very last moment comes up with an error message. but checking the book in iPhoto there are no problems to be found.

    This user talked to Apple Support personnel and confirms what Larry is suggesting:
    crowland1066
    Re: book upload fails
    Nov 30, 2013 3:02 PM (in response to pablo123)
    Just got off the phone with apple support.  If the photo book completes the assembly process but fails during the upload process the problem is in their overloaded servers.They just started a free shipping promotion for the holidays which has increased the traffic dramatically. I bought a calendar a week ago and it went right through. I'm going to try again during less peak times.
    Happy Holidays

  • Accessing the very last record in a transparent table.

    Hi!
    There's any way to read the last record of a transparent table?
    My problem is:
    I have to access the very las record of a Z table because I need the maximun value of a numeric field (that is the first field of the primary key).
    I used a SELECT MAX, with no condition , but I was asked to find a more performance solution.
    There is any way to access the last record of a table? Something like we have for the internal tables with the READ TABLE INDEX N, but with a select statement?
    Thanks a lot for your help!

    Yes, that was my first thought, but I made a comparising between both options with SE30.
    Check this numbers:
    TIME:  11,377,702
    select * from t100 into table t_t100.
    sort t_t100 descending.
    read table t_t100 index 1.
    TIME: 954,218
    DATA: MAX_MSGNR type t100-msgnr.
    SELECT MAX( MSGNR ) FROM T100 INTO max_msgnr.
    Select MAX is better...
    I don't think there is a better solucion... Maybe a big brain here has an idea...
    Vasanth, thanks for your quick reply!

  • Always fill out the very last row of a table (which can expand)

    Hi, I'm having problems with a button in table A that adds a row to another table (table B) and then automatically fills out some of the table row data (table A) into the newly created row of the other table (table B)
    Here's my code (on click of button in a row of Table A) - I should also mention that Table A has a button to add more rows to itself:
    This almost works - however, it only works if the amount of rows in each table match - which they don't necessarily as the user may or may not opt to add the row from table A to table B. eg. Table A could be 4 rows deep, but table B may only contain 2 Rows.
    tableB.row.addInstance(0);
    var vCol1 = this.resolveNodes("tableA.row.cellA");
    var vCol2 = this.resolveNodes("tableB.row.cellA");
    var vCol3 = this.resolveNodes("tableA.row.cellB");
    var vCol4 = this.resolveNodes("tableB.row.cellB");
    for (var i = 0; i < vCol1.length; i ++) {
                 vCol2.item(i).rawValue = vCol1.item(i).rawValue;
                 vCol4.item(i).rawValue = vCol3.item(i).rawValue;
    I'm new to scripting (learning on the fly) so my question is, seeing that the first command is to add a new row to table B, can I alter the code so that var vCol2 and vCol4 always relate to the very latest row that has been created? In that way, any previous rows that have been added will shunt down the list and will not be affected but the new button click? Or is there a better way of doing this.

    Hi,
    I think the key here is that the addInstance method returns the row it has just added.  So your add can be something like;
    var button = xfa.host.messageBox("You are about to ADD this entry to Table B. Do you wish to proceed?", "Add to Table B Section", 1, 2);
    if (button == 4)
       var newRow = tableB._tableBrow.addInstance(0);
       newRow.cellA.rawValue = cellA.rawValue;
       newRow.cellB.rawValue = cellB.rawValue;
    I'm not sure how you want the table A remove button to work?  Should it remove the first table B row with a matching cellA and cellB?
    Regards
    Bruce

  • How do you query the journal drilldown data using SQL

    Hi All,
    Appreciate if anybody can assist me into querying the database via SQL query so the journal data includes sub ledger detail.
    I found that I cannot link the GL journal batch id (etc.) with the existing sub ledger (AR and AP). Is there any way to perform this query, if not, how can the drill down works?
    I needed the guidence since there are certain info that is not available in the journal (rct number, PO no, check no etc). I need to ensure that the data I have is tally with GL journals.
    Reasons: doing some recon download to be feeded to a third party system.
    Thanks.

    Hi there are mappings for the reference fields from AP and AR, so you can buid up the links there. Just look at the reference fields of gl_je_lines and try to identify which is valuable for you.
    Ugur YILMAZ
    http://oracle-master.com

  • When uploading photos from my PC to IPad, it gets to the very last stage and then just stops synching.  I've tried multiple times and even from scratch, but same unsuccessful result.  Very frustrating and not sure what I'm doing wrong.

    When synching my photo library (selected folders) to my IPad, it reaches the last (6th) step and then I see the folders appear on my IPad for a brief moment, but then the synch stops and the photos failed to upload.  What's the deal?  After 6 attempts, I give up.  THis should not be that difficult and I've spent way too much time trying to figure this out.  Makes me want to throw out my 1st generation IPad and go with another tablet manufacturer.  Anyone who has experiened this or knows how to remedy would appreciate hearing from you.
    Tx

    Never have this problem. That's just weird. Maybe there's something wrong with one of the photos?
    Try viewing those photos with quicktime first?

  • If there a way to restore my icloud from a backup other than the very last one?

    I deleted some pics before my last backup that I need back. Can someone please help me?

    Apple states that it keeps your last three iCloud backups.  During the process of restoring an iCloud backup, iCloud will show you which ones are available and ask you to select the one you want to restore (see image below).  You may need to tap "Show older backups" to access earlier ones.  The only way to find out if an earlier one is available is to go through the restore backup process.

  • IDVD 7.2.1 is turning my 16:9 DV .mov videos into the 4:3 format.  I believe all the settings are correct. I am stuck at the very last step.  Anyone heard of this?  Thanks

    I have all the settings correct, the few that there are.  I have searched for help in documentation and tutorials but have found nothing about this?  When I slide the DV 16:9 videos into the menu and then play them, they are 4:3. I am stuck at the last step. Has anyone heard of this?  Thanks

    I don't have the need to make many DVDs.  I was doing this for someone who's grandfather, a D-Day veteran was featured in one of the videos for the website of the newspaper where I work.  It turns out that the DVD looks right on the widescreen TV, but not on my monitors. I could not find an answer to something that apparently was not a problem in the first place. I learned a lot from the various discussions and will be reading more of them, more often in the future.

  • Why does my Acrobat XI Pro (11.0.07) fail incessantly at the very last moment?

    This is the error message I get.
    Yours deeply befuddled,
    Willem

    Hey Willem,
    Please refer the KB doc link mentioned below and try out the troubleshooting steps:
    Error 1935 | Install | Acrobat, Reader | Windows
    Let me know if this helps.
    Regards,
    Anubha

  • I have just rearranged my app icons on my iPad.  I put one at the very end of the last page and an icon disappeared to make room for it.  Where has it gone, can I get it back. The app is still in my App Store and can open but no icon on my iPad or is my e

    How do I re-estate an app icon that has disappeared from the very last page of my icons because I in effect, pushed it away?

    Thanks for your help
    You are correct, in settings I can gain access to my apparent.
    What I went on to do was "reset" my app screen in settings and all my apps came back on the home pages.
    I understand that we only have twelve home pages but you can make files that contain many files on the home page by superimposing file icons while in file moving mode.
    Thanks so much for your help
    George

  • I have an iPhone 4s just eight months, it is normal that the battery lasts only 3 hours? please help me thank you very much.

    I have an iPhone 4s just eight months, it is normal that the battery lasts only 3 hours? please help me thank you very much.

    Three hours if definitely NOT normal. I get at least 48 hours out my 2 year old iPhone 4S' battery with light usage. Did you do the iOS 7 update on the phone it self (OTA) or through iTunes? In my experience most problems are caused by the OTA updates. For this reason I ALWAYS update using iTunes on my computer.
    I would suggest restoring your phone using iTunes on your computer and setting it us as a new phone. This downloads a fresh copy of iOS 7.1 from Apple and installs it on your phone. Just make sure that you transfer all purchased items (apps, music, etc.) as well as photos to your computer before restoring as the restore will completely wipe your phone. Do not restore from a back-up. Yes, you will loose all your data on the phone but restoring a back-up can restore the problem you are currently having back to your phone. Once your phone has been restored you can manually sync back your apps and music.
    Before restoring you can also check to see that battery-killers like Location Services, Background App Refresh, etc are only turned on for the apps that really need it. I recently read and article that said that the Facebook app can be a real battery killer. If you have this app installed turn of location services and background app refresh for this app and see if that helps. Also go to Settings / General / Restrictions / Location Services / System Services and turn off all the options in that menu. Your phone does not need any of those to function. Constantly using your phone's GPS is a huge battery killer. I only have Location Services enabled for Find my iPhone and Background App Refresh is turned off completely.
    I hope this helps.

  • HT3226 My iphone 4s fell down on the floor and a very very small bit on the edge of my iphone were broken. Can I insert a new iphone body panel with replace the old one

    My iphone 4s fell down on the floor and a very very small bit on the edge of my iphone were broken. Can I insert a new iphone body panel with replace the old one.. ???

    I think I had it on the iCloud, I just changed computers and had part of my old computer backed up, where are the default iTunes info saved like the pictures and I know my contacts were backed up cuz I kept getting updated stuff that I wasn't sure about, but it was contacts where some belonged to my wife's contacts....but anyway, if the cloud backed up contacts, it should have grabbed pictures too? Like I asked before, if they were backed up to the computer, is there a default iTunes folder they are saved to? I had a crap load of pictures on there that I usually could really access if I was connected to wi-fi. I turned off my data stuff as I only have 4GB and between me and my 2 kids, we seemed to use up a lot of it. My son would play music from Pandora during work, and use up all our data til I limited him to only 3GB, my daughter and I barely used 1GB. Anyway, thanks to everybody that is answering. I thought I might have done good finding the dang sim card, but pointless I guess.
    Ralph - F.Y.I. I would be happy to back up the iPhone if I could turn it on LOL......I am pretty positive I did, but what about Text messages? ANY of those saved too or not? Sorry guys, I don't know a **** of a lot about cell phones, but I do know about memory cards, but not sim cards that act like memory cards or look like them anyway. What is the purpose of a sim card if I may ask a stupid question since they don't hold any data from my phone stuff. I just hope my stuff comes back on the new replacement phone once I get it up and running. Again, thanks to everybody for the edumucation.

  • TS2771 Suddenly the sound of my iPods keyboard suddenly becomes very faint bit when I have my headset on its functioning very well please help thanks

    Suddenly the sound of my iPods keyboard suddenly becomes very faint bit when I have my headset on its functioning very well please help thanks

    Try:
    - Reset the iOS device. Nothing will be lost
    Reset iOS device: Hold down the On/Off button and the Home button at the same time for at
    least ten seconds, until the Apple logo appears.
    - Reset all settings      
    Go to Settings > General > Reset and tap Reset All Settings.
    All your preferences and settings are reset. Information (such as contacts and calendars) and media (such as songs and videos) aren’t affected.
    - Restore from backup. See:                                 
    iOS: How to back up                             
    - Restore to factory settings/new iOS device.
    If still problem, make an appointment at the Genius Bar of an Apple store since it appears you have a hardware problem.
    Apple Retail Store - Genius Bar          

Maybe you are looking for

  • Error while reading a file from server

    Mine is 9i database and 11.5.10.2 oracle apps server I am trying to read PDF file from server, I used the below code l_bfile:=bfilename('\u05\app\applmgr\11i\oraclecomn\admin\out\jamuna_server','o7742576.out'); if DBMS_LOB.FILEEXISTS(l_bfile) = 1 the

  • Legacy data transfer for new depreciation area for already existing assets

    Hi all, I am doing legacy data transfer for New deprecaition area for already existing assets through AS92. I like to give Ordinay depreciation posted amount  for the current FY for these assets in AS92, but i find this field is not editable inAS92.

  • Use of MYSQL when installing Business Objects Enterprise XI 3.1

    Hello Team, I am quite new Business Objects and right now I am using Business Objects Enterprise XI 3.1. when installing BO XI 3.1, I was prompted to select the database server to be created. I chose MySQL. Now, I am curious to know the pupose/involv

  • R/3 Plug in

    Hello Guys, Can anyone explain me How i can check R/3 plug in in R/3? do they have some functionality?? Edited by: latha reddy on Feb 6, 2008 7:32 AM

  • Macbook Pro won't open any files, safari or app store

    Hi, last night my macbook (15-inch, Late 2008) froze completely and wouldn't let me turn off or restart, so I had to wait until the battery ran out to reboot. When i rebooted it seemed the macbook had completely reset , all my files are all grouped u