Php record insert via csv upload

Hi
My client has a set of records that are generated via a third party as csv files.
I want to create an insert statement that allows for the csv file to be uploaded and mapped fields inserted to the table.
Any ideas?
if there is an extension then so much the better.
Thanks
dan

I've done this in ASP, but the concepts would be identical in php. Obviously you first need to create a form and write a php script that would upload the csv file to the server. You would then use php file system functions to open, loop through, and read each line in the file and store the values of each row in local variables - then execute the insert statement using the local variables. Continue looping through the file until done.
You could also loop through the file and extract all of the data to be used in one single INSERT statement.

Similar Messages

  • How to have concurrent CSV upload and manual edit in APEX on the same table

    Hi there,
    my users want to have csv upload and manual edit on apex pages functions together...
    it means they want to insert the data by csv upload and also have interactive report and form on the same table...
    so if user A changes something in csv file...then user B update or delete another record from apex fronted (manually in the apex form)...then after that user A wants to upload the csv file,the record was changed by user B would be overwritten ...
    So how can I prevent it?????

    Hi Huzaifa,
    Thanks for the reply...
    I'm going to use File Browser so that end users can upload the files themselves...
    after editing data by users...a manger going to review it and in case of approval , i need to insert the data to one final table....
    so it needs much effort to check two source tables and in case of difference between table of csv and other one...what to do...

  • Record Insertion Form Wizard, page not displaying

    I used the "Record Insertion Form Wizard" in Dreamweaver 8 to
    build the following code. Problem is that when I upload this to my
    server and load the page nothing is being displayed. Anybody have
    any thoughts on this?

    Hi yea,
    you need to upload the includes folder that is created when
    using the
    interakt extensions.
    "Herman2468" <[email protected]> wrote in
    message
    news:e7mmi0$ic3$[email protected]..
    > Dreamweaver's "Record insertion form wizard" creates
    this code in my
    > add_products.php page
    >
    > 1 <?php
    require_once('../Connections/connStore1.php'); ?>
    > 2 <?php
    >
    > 4 //Alternative for PHAkt's functions.inc.php
    > 5 require_once('../includes/tNG_functions.inc.php');
    >
    > 7 //load the tNG classes
    > 8 require_once('../tNG/KT_tNG.inc.php');
    >
    > Which causes this error message:
    >
    > Warning: main(../includes/tNG_functions.inc.php): failed
    to open stream:
    > No
    > such file or directory in
    /home/herm1/public_html/admin/add_product.php on
    > line
    > 5
    >
    > Fatal error: main(): Failed opening required
    > '../includes/tNG_functions.inc.php'
    > (include_path='.:/usr/lib/php:/usr/local/lib/php') in
    > /home/herm1/public_html/admin/add_product.php on line 5
    >
    >
    > Dreamweaver is telling add_products.php to access a
    folder that does not
    > exist.
    > I'm stuck.
    >
    >
    >

  • CSV upload and update table fields

    Hi,
    Is there any way to update any field of the underlying table from HTMLDB while importing the CSV file?For e.g, if there are XYZ table have 200 ermployee where empno is primary key.
    Once we upload the data from CSV its fine.Now after 2 weeks i need to update the sal and ename corresponding to the previous 100 employees only.So now when i trying to update the data a unique constraints violation occurs since the empno have already present so my concern is that -- how to get out of this problem specially when updation of huge no. of records needed and also no updation required for some records already present?Do the CSV update be helpful on that circumstances?
    One thing we can do that we can track down the list of 100 employee whose information going to be updated.Put those info in excel and add rest 100 emplyee to that excel and again doing the CSV upload ?
    This is a huge issue and not only the tedious task but also errorprone and that task will be increased with the amount of data increasing in the table.
    Please anyone can suggest ?
    Regards,
    ROSY.

    The best way to solve your problem is next way.
    1º) Save the file with the data to import like a BLOV ITEM.
    Ok it can be done. CSV placed on BLOB data field.2º) Make a procedure to manage this BLOV item that can be fired by user pushing a buttom. (you can do it easy from HTMLDB).
    how to manage ? What need to be fire to push the CSV to the target table with the actual field population ?3º) Into this procedure insert the records freely and dont worry for anything more. (maybe you can be worry about duplicate records is so, only, into this same procedure make any pl/sql lines to be sure record is not duplicate before insert)
    ? ? ? If the data already exist it should be needed to truncate before insert that is not my reqr rather the existing data should be updated based on PK if any chages occurs in the CSV fo that data.4º) after you are sure the insert work properly and if you need any other treatment to record, with a trigger in the table or calling any other procedure from the same trigger make the traeataments that you need.
    that can be done highly .......before insert trigger.Remember. Dont put any commit.
    sure.......5º) Go down from horse. Dont take coffe or Tea in exceed. And remember all we are the same, people that only want go to eat with childs in week-end.
    i m in land no way to go down........nothing i take ya eat & eat much ....but this is not the right place for making comments about Weekend....Regards and good luck.
    anyway embargo starts...........enjoy Cheers...........Wish u All Hp XMas...

  • Field merge via Excel upload?

    I decided to create a new string for this question, though I had found a related article where I initially made a posting (I can't now edit or delete my original posting - "actions" menu doesn't open for me, PC and Mac, Chrome and FF):
    Using Field Merge to Dynamically Display an Image
    The post above outlines pretty much exactly what I want to do, but I'm missing something -
    Here is what I'd like to do: I have some customer information that I want to merge to an email; the information is not something I want to necessarily retain with my contacts.
    We're using Excel to upload lists, as these are contacts not currently in our database. I created a new field merge, and inserted the merge into my email. Creating the field merge requires linking the merge to either Contacts, Accounts, Events/Event Sessions, or CDOs. My original assumption was that I'd need to create a CDO, which I did. So I created the field merge, tied it to my CDO, and inserted the field into the email.
    When I then go to test the email, I upload my test segment. In matching fields, I can't match the additional customer data fields from Excel to fields in Eloqua - I had thought maybe the CDO fields would appear as options for matching.
    So, my question is, how do I get the Excel data to match up to my merge field in Eloqua?
    Thanks for any help you can give!
    Colin

    Here was the outcome:
    You can't perform a merge via Excel upload (ie - trying to create a new segment via upload that contains data to be merged) - I was on the right track, that this needs to be done via CDO.
    1. Create your CDO, upload your Excel file, and map contacts to the data card
         - Create a new CDO, adding the extra fields you want to capture
         - Specify "Email Address" in the Display name, Unique ID and Email Address fields. I also set the Group By field to Email Address, and the Entity type as Contacts with field again set to Email Address.
         - When uploading your Excel file with the records you want to merge, make sure to map the uploaded contacts to the data card (Custom Object > Upload Custom Object Records). In the resulting wizard, in step 4 - Upload Actions, be sure that the Map data card checkbox is checked. Not real sure why you'd ever not want this - it seems to me you can't do much without it.
    2. Create your field merges Email Field Merges
         - map these to your CDO fields
    3. Insert the field merges into your email
    That's about it - if anyone has additional info or corrections on the above, let me know. Hope this helps -
    Colin

  • SQL syntax error when creating record insertion form

    Good day,
    I was hoping someone could help me.  I am trying to create a record insertion form on a website to insert data into a database table.  When attempting to create the form, I am getting the following error: 
    You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near ' Organization, Office, Department, Phone, EmailAddress, JobTitle, `OfficialMaili' at line 1
    Not sure what is going on.  I am running windows 8 and DW cs5 w/ MYSQL.  I am testing on a local server prior to pushing to the remote server.
    Thank you for your assistance and please advise any code you would like me to send.

    Here is all the code from this particular webpage.  I apologize, I am too stupid to realize which parts are SQL vice PHP vice HTML:
    <?php require_once('Connections/group4.php'); ?>
    <?php
    if (!function_exists("GetSQLValueString")) {
    function GetSQLValueString($theValue, $theType, $theDefinedValue = "", $theNotDefinedValue = "")
       if (PHP_VERSION < 6) {
         $theValue = get_magic_quotes_gpc() ? stripslashes($theValue) : $theValue;
      $theValue = function_exists("mysql_real_escape_string") ? mysql_real_escape_string($theValue) : mysql_escape_string($theValue);
      switch ($theType) {
         case "text":
           $theValue = ($theValue != "") ? "'" . $theValue . "'" : "NULL";
           break;   
         case "long":
         case "int":
           $theValue = ($theValue != "") ? intval($theValue) : "NULL";
           break;
         case "double":
           $theValue = ($theValue != "") ? doubleval($theValue) : "NULL";
           break;
         case "date":
           $theValue = ($theValue != "") ? "'" . $theValue . "'" : "NULL";
           break;
         case "defined":
           $theValue = ($theValue != "") ? $theDefinedValue : $theNotDefinedValue;
           break;
       return $theValue;
    $editFormAction = $_SERVER['PHP_SELF'];
    if (isset($_SERVER['QUERY_STRING'])) {
       $editFormAction .= "?" . htmlentities($_SERVER['QUERY_STRING']);
    if ((isset($_POST["MM_insert"])) && ($_POST["MM_insert"] == "form1")) {
       $insertSQL = sprintf("INSERT INTO individual (Grade, LastName, FirstName, M.I., Organization, Office, Department, Phone, EmailAddress, JobTitle, `OfficialMailing Address`, Citizenship, Designation, IATrainingComplete, IADate) VALUES (%s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s)",
                            GetSQLValueString($_POST['Grade'], "text"),
                            GetSQLValueString($_POST['LastName'], "text"),
                            GetSQLValueString($_POST['FirstName'], "text"),
                            GetSQLValueString($_POST['MI'], "text"),
                            GetSQLValueString($_POST['Organization'], "text"),
                            GetSQLValueString($_POST['Office'], "text"),
                            GetSQLValueString($_POST['Department'], "text"),
                            GetSQLValueString($_POST['Phone'], "double"),
                            GetSQLValueString($_POST['EmailAddress'], "text"),
                            GetSQLValueString($_POST['JobTitle'], "text"),
                            GetSQLValueString($_POST['OfficialMailing_Address'], "text"),
                            GetSQLValueString($_POST['Citizenship'], "text"),
                            GetSQLValueString($_POST['Designation'], "text"),
                            GetSQLValueString($_POST['IATrainingComplete'], "text"),
                            GetSQLValueString($_POST['IADate'], "text"));
      mysql_select_db($database_group4, $group4);
       $Result1 = mysql_query($insertSQL, $group4) or die(mysql_error());
      $insertGoTo = "index.php";
       if (isset($_SERVER['QUERY_STRING'])) {
         $insertGoTo .= (strpos($insertGoTo, '?')) ? "&" : "?";
         $insertGoTo .= $_SERVER['QUERY_STRING'];
       header(sprintf("Location: %s", $insertGoTo));
    mysql_select_db($database_group4, $group4);
    $query_rsIndividual = "SELECT * FROM individual ORDER BY IndividualNumber ASC";
    $rsIndividual = mysql_query($query_rsIndividual, $group4) or die(mysql_error());
    $row_rsIndividual = mysql_fetch_assoc($rsIndividual);
    $totalRows_rsIndividual = mysql_num_rows($rsIndividual);
    ?>
    <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
    <html xmlns="http://www.w3.org/1999/xhtml">
    <head>
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
    <title>Contact Us</title>
    <script src="SpryAssets/SpryMenuBar.js" type="text/javascript"></script>
    <link href="SpryAssets/SpryMenuBarHorizontal.css" rel="stylesheet" type="text/css" />
    <style type="text/css">
    .header {
      font-size: 36px;
      text-decoration: underline;
    .quote {
      font-size: 18px;
      font-style: italic;
    .tablethisone {
      margin: 5px;
      padding: 25px;
      border: medium none #000;
      text-align: center;
    </style>
    </head>
    <body>
    <p><img src="Images/EGA.png" width="227" height="222" alt="EGA" /><span class="header">SAAR Tracking System
    </span></p>
    <ul id="MenuBar1" class="MenuBarHorizontal">
       <li><a href="index.php">Home</a>  </li>
       <li><a href="search.php">Search</a></li>
       <li><a href="contact.php">Contact Us</a>  </li>
    </ul>
    <p> </p>
    <p>PRIVACY ACT STATEMENT</p>
    <p>Executive Order 10450, 9397; and Public Law 99-474, the Computer Fraud and Abuse Act.
       To record names, signatures, and other identifiers for the purpose of validating the trustworthiness of individuals requesting
       access to Department of Defense (DoD) systems and information. NOTE: Records may be maintained in both electronic
       and/or paper form.</p>
    <p> </p>
    <p> </p>
    <form action="<?php echo $editFormAction; ?>" method="post" name="form1" id="form1">
       <table align="center">
         <tr valign="baseline">
           <td nowrap="nowrap" align="right">Grade:</td>
           <td><input type="text" name="Grade" value="" size="32" /></td>
         </tr>
         <tr valign="baseline">
           <td nowrap="nowrap" align="right">LastName:</td>
           <td><input type="text" name="LastName" value="" size="32" /></td>
         </tr>
         <tr valign="baseline">
           <td nowrap="nowrap" align="right">FirstName:</td>
           <td><input type="text" name="FirstName" value="" size="32" /></td>
         </tr>
         <tr valign="baseline">
           <td nowrap="nowrap" align="right">M.I.:</td>
           <td><input type="text" name="MI" value="" size="32" /></td>
         </tr>
         <tr valign="baseline">
           <td nowrap="nowrap" align="right">Organization:</td>
           <td><input type="text" name="Organization" value="" size="32" /></td>
         </tr>
         <tr valign="baseline">
           <td nowrap="nowrap" align="right">Office:</td>
           <td><input type="text" name="Office" value="" size="32" /></td>
         </tr>
         <tr valign="baseline">
           <td nowrap="nowrap" align="right">Department:</td>
           <td><input type="text" name="Department" value="" size="32" /></td>
         </tr>
         <tr valign="baseline">
           <td nowrap="nowrap" align="right">Phone:</td>
           <td><input type="text" name="Phone" value="" size="32" /></td>
         </tr>
         <tr valign="baseline">
           <td nowrap="nowrap" align="right">EmailAddress:</td>
           <td><input type="text" name="EmailAddress" value="" size="32" /></td>
         </tr>
         <tr valign="baseline">
           <td nowrap="nowrap" align="right">JobTitle:</td>
           <td><input type="text" name="JobTitle" value="" size="32" /></td>
         </tr>
         <tr valign="baseline">
           <td nowrap="nowrap" align="right">OfficialMailing Address:</td>
           <td><input type="text" name="OfficialMailing_Address" value="" size="32" /></td>
         </tr>
         <tr valign="baseline">
           <td nowrap="nowrap" align="right">Citizenship:</td>
           <td><input type="text" name="Citizenship" value="" size="32" /></td>
         </tr>
         <tr valign="baseline">
           <td nowrap="nowrap" align="right">Designation:</td>
           <td><input type="text" name="Designation" value="" size="32" /></td>
         </tr>
         <tr valign="baseline">
           <td nowrap="nowrap" align="right">IATrainingComplete:</td>
           <td><input type="text" name="IATrainingComplete" value="" size="32" /></td>
         </tr>
         <tr valign="baseline">
           <td nowrap="nowrap" align="right">IADate:</td>
           <td><input type="text" name="IADate" value="" size="32" /></td>
         </tr>
         <tr valign="baseline">
           <td nowrap="nowrap" align="right"> </td>
           <td><input type="submit" value="Insert record" /></td>
         </tr>
       </table>
       <input type="hidden" name="MM_insert" value="form1" />
    </form>
    <p> </p>
    <p> </p>
    <p> </p>
    <p> </p>
    <p> </p>
    <p>Disclosure of this information is voluntary; however, failure to provide the requested information may impede, delay or
    prevent further processing of this request.</p>
    <p class="quote">&quot;Be polite, be professional, but have a plan to kill everybody you meet&quot; General James Mattis</p>
    <p> </p>
    <script type="text/javascript">
    var MenuBar1 = new Spry.Widget.MenuBar("MenuBar1", {imgDown:"SpryAssets/SpryMenuBarDownHover.gif", imgRight:"SpryAssets/SpryMenuBarRightHover.gif"});
    </script>
    </body>
    </html>
    <?php
    mysql_free_result($rsIndividual);
    ?>

  • CSV upload for end user

    I've searched all over the web and this forum and haven't found exactly what I'm looking for. I see this referenced a lot (http://avdeo.com/2008/05/21/uploading-excel-sheet-using-oracle-application-express-apex/), but it's still a little too technical for me to figure out.
    Is there a packaged app or a dumbed down "how to" for creating a csv upload? I want the end user to be able to upload a csv file (same columns/headings, but the number of rows will vary) and display the table they just uploaded in a report.
    Thank you!!

    Hi Bob,
    Where exactly are you stuck? In the example that Tony linked, all you have to do is modify ~line 53 to the number of columns that will go into your table (and the name of the file browse item).
    i.e.
    APEX_COLLECTION.ADD_MEMBER(
                                p_collection_name => c_collection_name,
                                p_c001 => v_curr_row(1),
                                p_c002 => v_curr_row(2) -- add more of these for the number of columns that will be in your csv file);Or does the example not meet your requirements? If I interpret correctly, you want the user to be able to upload a file where they have specified the column names at the top of the csv file? I have created an example using this technique, although I am not entirely happy with it yet (for the lack of confirming the data that is to be inserted).
    Ta,
    Trent

  • CSV Upload Procedure

    I am using Apex 3.2
    I have built a csv upload procedure with help from this thread
    {message:id=10502964}
    All seems to be working fine but I need to a validation on the number of columns before I make my insert to my table.
    How can I count the columns in an apex collection
    Cheers
    Gus
    Edited by: Gus C on Aug 31, 2012 1:26 AM
    Edited by: Gus C on Aug 31, 2012 1:27 AM

    Gus C wrote:
    I am using Apex 3.2
    I have built a csv upload procedure with help from this thread
    {message:id=10502964}
    All seems to be working fine but I need to a validation on the number of columns before I make my insert to my table.
    How can I count the columns in an apex collectionMy thinking is that the number of "columns in an APEX collection" is fixed, and depends on the APEX version and your definition of "column". Could be 50 if you are only considering VARCHAR2 columns (as is likely for the purposes of CSV processing), or 51 in APEX 3.2, or 63 in APEX 4.1...
    I'd say you need to determine the number of columns from the CSV file (by counting the [maximum number of] delimiters) rather than the contents of the collection. Once the data is in the collection, how can you tell if empty columns are beyond the end of the row or are trailing null values?

  • An extra record inserted

    Hi,
    When I upload data from R/3 to BW, I am constantly getting one blank record inserted as the first record. Can someone tell me what could be the problem and how to eliminate this.
    Thanks in advance.
    Subray Hegde

    Hi Bhanu,
    I agree with you for Master data. But, it happened with some transactional data loads as well. That is what is concerning me. This upload is based on the standard content and there is no modifications to the transfer rules or the update rules. Has anyone come across this kind of problem before?
    Thanks and Regards
    Subray Hegde

  • SQL: System locks up and runs slow after performing simple DML record insert

    SQL Version:  2008 R2
    I am having a serious problem.  I ran the following code to perform a simple table record insert which ran successfully.  However, after running this code I could no longer access the related table.  I couldn't run a query against it. 
    I tried to delete all the records and that wouldn't work either.  When attempting to run any DML statements (i.e. Select * From vPCCertificateTypes) against this table SQL gets locked up and never returns anything and no error messages.  I have
    to manually stop the query.  Now the entire SQL system is running slow.
    Any help would be greatly appreciated.  The code I ran to originally insert the records is below.
    Regards,
    Bob Sutor
    CODE: 
    Begin TRAN
     INSERT INTO vPCCertificateTypes (VendorGroup, CertificateType, Description, Active, Category)
     SELECT HQCo, 'MBE', 'Minority-owned Business Enterprise', 'Y', 'Affirmative Action' 
     FROM HQCO
     Where HQCo IS NOT NULL
      AND HQCo <> 100
      AND HQCo <> 99
     IF @@ROWCOUNT <> 44 ROLLBACK ELSE COMMIT
    Bob Sutor

    The problem was an open uncommitted transaction against the table as you suspected.  I ran your code and it cleared the transaction.  In the past I would intentionally leave our the Commit statement and then if the transaction ran fine, I would
    simply highlight and run 'COMMIT' and it would close the transaction.  Apparently that is not the correct approach.  I'll use your suggested code from now on.
    Thanks for the help.
    Bob Sutor

  • Dreamweaver CS4 - Record Insertion Form js error

    Hi
    I'm dreamweaver cs4 and started using the Record Insertion form, I was mainly experimenting with it and just seeing what it could do.
    However when I get to the wizard i have to wait a few seconds for it to connect to the database and then I get an error message that says:
    While executing onLoad in ServerObject-InsRecPHP.htm, the following Javascript error(s) occured:
    At line 283 of the file "Macintosh HD:Application:Adobe Dreamweaver
    CS4:Configuration:Commands:ServerObject-FormCmnPHP.js":
    invalid array length
    I was just wondering if this was a common problem, or I've messed something up either in Dreamweaver, or in the SQL database that I'm using.
    I've also noticed that its the same for Update and Delete Records Wizards aswell.
    Any help would be greatly appreciated
    Aaron Kennedy

    I see it's your first post. Welcome to the forum.
    A good place to start looking for answers is the Dreamweaver FAQ. You'll find the answer to your question under "Crashes, installation, JavaScript, and unexplained problems".

  • In an HDV sequence can I "scrub" the timeline and record it via FW to tape?

    In an HDV sequence can I "scrub" the timeline and record it via FW to tape?
    In standard definition I used to be able to do this via Firewire to my mini-dv deck. But now I am working with the Canon Vixia30, an HDV camera. I'd like to be able to scrub the time line back and forth at varying speeds and record this scrubbing live (rather than doing it with Motion software.) Is there anyway to "record" this action, either onto tape or digitally, while maintaining the HD resolution?
    If possible I'd like to figure out how to do this without buying extra equipment. I understand I could get a Matrox MO2 Mini box ($450.) to output the live HD signal, but then how to record the HD signal from the Matrox box? (my camera only has HDMI out, not in.)
    Thank you for your input.

    And if you capture your footage as ProRes (as I see discussed in another thread), you cannot output to HDV via firewire. It would be pointless. To go from a lossy format to ProRes to edit...then convert back to HDV. Typically people who shoot HDv never master back to HDV, as it isn't a mastering format.
    And yes, the MAX is totally worth it. Compression times faster than RT (meaning less time to compress than the timeline is long...I did 90 min timeline in 75 min yesterday). Worth it? Depends how much your time is worth. TO me, I'd like to have the compression done in 75 minutes opposed to 3-4 hours.
    Shane

  • How to get count of records inserted and errored out in an email

    Hi
    I have following question
    I want to send report statics of scenario i.e Number of rows inserted during the scenario and
    Number of rows in error in the scenario in an email.Here in my scenario I am trying to insert data into Essbase database and when i try to use getNbInserts() and getNbErrors functions of ODI in an email body,its giving zero value even though there 140 records inserted and 10 errored out.Can any one let me know how we get this number of records inserted and number of records errored in email.
    Thanks in advance
    Regards
    Baji

    Hi
    I have following question
    I want to send report statics of scenario i.e Number of rows inserted during the scenario and
    Number of rows in error in the scenario in an email.Here in my scenario I am trying to insert data into Essbase database and when i try to use getNbInserts() and getNbErrors functions of ODI in an email body,its giving zero value even though there 140 records inserted and 10 errored out.Can any one let me know how we get this number of records inserted and number of records errored in email.
    Thanks in advance
    Regards
    Baji

  • How to import images from web via CSV in Indesign CS4?

    Hi,
    I am using Indesign CS4 and i want to import pictures from my homepage.
    I have a CSV export from a database with products and the url to the
    product picture. I want to import the information for the products and
    the picture via data merge. I added the @ in the name of the column
    where the url to the pictures is. Everything works perfect when I use
    a lokal path, but I need to get the pictures from the website.
    Is it possible to import pictures from a website via CSV data merge?
    What steps are needed for that?
    Would be great if you could help me.
    Best Regards.

    thank you all for your answers, that was what i thought.
    yes, it starts with http://domainnaime.... it's from an extern webspace
    then i will backup all pictures and put them in the local network and try over ip-address if that also won't work then I'll copy then locally
    altough, it would be great if it works via ip-address

  • Find record insert date and time in a table

    Hi All,
    I want to get record insert date and time in a table. There is no datetime column in my table. Are there any possibility to get date and time for each record?
    Thank You

    Thats not easy. If your transaction info still resides on active portion of the log you can use fn_dblog to read out the time at which the transactions occurs. This is useful only if you try it shortly after transaction.
    the code would look like this
    SELECT *
    FROM fn_dblog(null,null)
    WHERE [Transaction Name] LIKE 'INSERT%'
    OR [Transaction Name] LIKE 'UPDATE%'
    Also see
    http://www.mssqltips.com/sqlservertip/3076/how-to-read-the-sql-server-database-transaction-log/
    http://solutioncenter.apexsql.com/read-a-sql-server-transaction-log/
    Please Mark This As Answer if it helps to solve the issue Visakh ---------------------------- http://visakhm.blogspot.com/ https://www.facebook.com/VmBlogs

Maybe you are looking for

  • CASE WHEN statement in DECODE

    SELECT v_startdate, v_enddate, (CASE WHEN SYSDATE BETWEEN v_startdate AND v_enddate THEN 'active' ELSE 'inactive' END) status FROM correction_tab; Could you kindly guide us as to how can we use DECODE and get the desired output. Thanks, Rami Reddy.

  • Regular expressions question - making a capture group optional to match.

    Hello java Experts... I have a problem with making a group optional to match. I am using a pattern to match a text from an apache/bittorrent log. This text sometimes contains an IP address and sometimes it doesn't. Here is an example: GET /announce?i

  • Broken WoW Wireless Headset...

    Hello! Yesterday my 60 euro beautiful headset just broke... picture included. This is not nice at all as it seems you used wrong plastic (instead of metal for example) or too thin... I bought them on Creative Online Store and would like to get those

  • Queries about list item display

    Hi Friends, I have a list and library and I would like to: Order/sort items in a library so that a particular item is always on top? How to display a few items on the top of the list. Is it possible that these positions don't change despite adding nu

  • Why has my text-the characters–become fuzzy, poorly defined

    Mac OS 10.4.11 Adobe Reader 9.2.0 Hi, I just started using Adobe Reader 9.2.0. I need to read the manual for iPhoto. When I first opened the manual, all text pictures etc were well-defined with no breaks in the characters.  I don't know what I did, b