REMOVAL OF THE LAST SQL DATA with php

Hello

I have a chat software that I would like to delete the oldest cat after 5 cats. That last 5 discussions appear and nothing after 5 is deleted. Thank you. This in the code.

Querying database

$id = $_SESSION ['id'];

$collect = mysql_query ("SELECT * FROM cats WHERE userid ='$id '");

$collectnum = mysql_num_rows ($collect);

if($collectnum>5)

{

remove old cats if the user has more than 5 cats


$delete = mysql_query ("DELETE * FROM cats WHERE userid = '$id' ORDER BY ASC LIMIT 1");

I hoped the code above would be to remove the oldest cat in the database for the user, but after the Cat 5 the Remove feature does not work as expected.

CSA code want to delete things in ascending order, making it the fifth cat deleted first.

My problem is that the code above does not work.

}

on the other

{

While (Rows = mysql_fetch_assoc ($Collect))

{

All the CATS OF the INDIVIDUAL USER.

}

}

Tony404 wrote:

I have a chat software that I would like to delete the oldest cat after 5 cats. That last 5 discussions appear and nothing after 5 is deleted.

Installs on the Dreamweaver application development forum, which is more suitable for this kind of question.

I wonder why you want to delete the older hardware? If you simply want to display on the latest five, assuming that the primary key for the table is chat_id, you can do this:

$id = $_SESSION['id'];
$result = mysql_query("SELECT * FROM chats WHERE userid=$id
                       ORDER BY chat_id DESC LIMIT 5");

However, if you really want to delete the older records, you can do it like this:

$id = $_SESSION['id'];
$result = mysql_query("SELECT COUNT(*) FROM chats WHERE userid = $id");

// if more than 5 results, delete the old ones
if (mysql_num_rows($result) > 5) {
  // get the primary key of the sixth oldest
  $result = mysql_query("SELECT chat_id FROM chats WHERE userid = $id
                         ORDER BY chat_id DESC LIMIT 5,1");
  $row = mysql_fetch_assoc($result);
  $no6 = $row['chat_id'];
  mysql_query("DELETE FROM chats WHERE userid = $id
               AND chat_id <= $no6");
}

You can then get all the records and show. Replace "chat_id" in the previous code with the name of the primary key column in your table of cats.

Tags: Dreamweaver

Similar Questions

  • Extract the last opening date of session using Groovy?

    Is it possible to extract the last opening date of session of the user via a Groovy script?  I went through the scheme, but I don't have the slightest idea how to begin to know where there.

    Ideally, I'd end up with a list that displays the name of each user connection and date of last connection.

    Try this:

    msg = new StringWriter()

    SS = server. SecurityService;

    FMS = server. HaMembershipService.getHostName)

    Msg. Append ("FMS; Foglight ID; Foglight roles; lastLogonTS; logonCount; statusDesc; logonType; createdTS\n')

    (user) {ss.findAllUsers ()}

    Msg. Append (FMS). Append(";")

    Msg. Append (User.Name). Append(";")

    List =]

    for (secRole in ss.getAllRolesForUser (user.name)) {list += secRole.name}

    Msg. Append("["). Append (List.Join(",")). Append("];")

    Msg. Append (User.lastLogonTS.ToString ()). Append(";")

    Msg. Append (User.logonCount.ToString ()). Append(";")

    Msg. Append (User.getStatusDesc ()). Append(";")

    If (User.isExternal ()) {msg.append ("external ;")}

    Else {Msg.Append ("Internal ;")} ")}

    Msg. Append (User.createdTS.ToString ()). Append ("\n")

    }

    return msg;

  • Error: The lines of data with unmapped dimensions exist for period "1 April 2014".

    Expert Hi

    The below error when I click on the button Execute in order to load data in the area of data loading in 11.1.2.3 workspace. Actually, I already put in the tabs global mapping (add records of 12 months), mapping of Application (add records of 12 months) and map sources (add a month "1 April 2014' as the name of period with Type = Explicit mapping") in the service of the period mapping. What else should I check to fix this? Thank you.

    2014-04-29 06:10:35, 624 [AIF] INFO: beginning of the process FDMEE, process ID: 56
    2014-04-29 06:10:35, 625 [AIF] INFO: recording of the FDMEE level: 4
    2014-04-29 06:10:35, 625 [AIF] INFO: FDMEE log file: null\outbox\logs\AAES_56.log
    2014-04-29 06:10:35, 625 [AIF] INFO: user: admin
    2014-04-29 06:10:35, 625 [AIF] INFO: place: AAESLocation (Partitionkey:2)
    2014-04-29 06:10:35, 626 [AIF] INFO: period name: Apr 1, 2014 (period key: 4/1/14-12:00 AM)
    2014-04-29 06:10:35, 627 [AIF] INFO: category name: AAESGCM (category key: 2)
    2014-04-29 06:10:35, 627 [AIF] INFO: name rule: AAESDLR (rule ID:7)
    2014-04-29 06:10:37, 504 [AIF] INFO: Jython Version: 2.5.1 (Release_2_5_1:6813, September 26 2009, 13:47:54)
    [JRockit (R) Oracle (Oracle Corporation)]
    2014-04-29 06:10:37, 504 [AIF] INFO: Java platform: java1.6.0_37
    2014-04-29 06:10:39, 364 INFO [AIF]: - START IMPORT STEP -
    2014-04-29 06:10:45, 727 INFO [AIF]:
    Import of Source data for the period "1 April 2014".
    2014-04-29 06:10:45, 742 INFO [AIF]:
    Import data from Source for the book "ABC_LEDGER".
    2014-04-29 06:10:45, 765 INFO [AIF]: monetary data lines imported from Source: 12
    2014-04-29 06:10:45, 783 [AIF] INFO: Total of lines of data from the Source: 12
    2014-04-29 06:10:46, 270 INFO [AIF]:
    Map data for period "1 April 2014".
    2014-04-29 06:10:46, 277 [AIF] INFO:
    Treatment of the column mappings 'ACCOUNT '.
    2014-04-29 06:10:46, 280 INFO [AIF]: data rows updated EXPLICIT mapping rule: 12
    2014-04-29 06:10:46, 280 INFO [AIF]:
    Treatment of the "ENTITY" column mappings
    2014-04-29 06:10:46, 281 [AIF] INFO: rows of data updates to EXPLICIT mapping rule: 12
    2014-04-29 06:10:46, 281 [AIF] INFO:
    Treatment of the column mappings "UD1.
    2014-04-29 06:10:46, 282 [AIF] INFO: rows of data updates to EXPLICIT mapping rule: 12
    2014-04-29 06:10:46, 282 [AIF] INFO:
    Treatment of the column mappings "node2".
    2014-04-29 06:10:46, 283 [AIF] INFO: rows of data updates to EXPLICIT mapping rule: 12
    2014-04-29 06:10:46, 312 [AIF] INFO:
    Scene for period data "1 April 2014".
    2014-04-29 06:10:46, 315 [AIF] INFO: number of deleted lines of TDATAMAPSEG: 171
    2014-04-29 06:10:46, 321 [AIF] INFO: number of lines inserted in TDATAMAPSEG: 171
    2014-04-29 06:10:46, INFO 324 [AIF]: number of deleted lines of TDATAMAP_T: 171
    2014-04-29 06:10:46, 325 [AIF] INFO: number of deleted lines of TDATASEG: 12
    2014-04-29 06:10:46, 331 [AIF] INFO: number of lines inserted in TDATASEG: 12
    2014-04-29 06:10:46, 332 [AIF] INFO: number of deleted lines of TDATASEG_T: 12
    2014-04-29 06:10:46, 366 [AIF] INFO: - END IMPORT STEP -
    2014-04-29 06:10:46, 408 [AIF] INFO: - START NEXT STEP -
    2014-04-29 06:10:46, 462 [AIF] INFO:
    Validate the data maps for the period "1 April 2014".
    2014-04-29 06:10:46, 473 INFO [AIF]: data rows marked as invalid: 12
    2014-04-29 06:10:46, ERROR 473 [AIF]: error: the lines of data with unmapped dimensions exist for period "1 April 2014".
    2014-04-29 06:10:46, 476 [AIF] INFO: Total lines of data available for export to the target: 0
    2014-04-29 06:10:46, 478 FATAL [AIF]: error in CommMap.validateData
    Traceback (most recent call changed):
    Folder "< string >", line 2348 in validateData
    RuntimeError: [u "error: the lines of data with unmapped dimensions exist for period" 1 April 2014' ""]

    2014-04-29 06:10:46, 551 FATAL [AIF]: COMM error validating data
    2014-04-29 06:10:46, 556 INFO [AIF]: end process FDMEE, process ID: 56

    Thanks to all you guys

    This problem is solved after I maped all dimensions in order of loading the data. I traced only Entity, account, Custom1 and Custom2 at first because there is no source map Custom3, Custom4 and PIC. After doing the mapping for Custom3, Custom4 and PKI, the problem is resolved. This is why all dimensions should be mapped here.

  • Lightroom showing constantly "unresponsive" and very slow since the last update. With the help of Windows 10. Extremely slow import!

    Lightroom showing constantly "unresponsive" and very slow since the last update. With the help of Windows 10. Extremely slow import!

    Hi Dear

    Please see this thread windows Lightroom CC 10 'unresponsive' number.

    Let us know if this helps

    ~ Assani

  • LR doesn't stop after the last updated only with force quit

    LR doesn't stop after the last updated only with force quit

    Hi peterc48702056,

    For Windows, I'd say to set the priority of the process in Lightroom as a via the Task Manager

    For Mac, you suggested to copy the catalog to the location on the desktop or another location and then, check if the problem persists.

    Kind regards

    Claes

  • Find the store of data with more free space.

    So I'm trying to build a script to configure the virtual machine.

    I'll have it retrieve the node to keep newly available vm out based on the cluster, I said to use. I'm just using the Random function to do that then I select a node in the cluster.

    Where I have questions, how can I

    find the data store less used, based on a particular data store naming scheme.

    I want to say is:

    Hypathetically, I for example named data warehouses:

    store data-prod-01 200 GB free

    store data-prod-02 500 GB free

    free data-prod-03 10 GB store

    free data-qa-01 200 GB store

    free data-qa-02 1000 GB store

    I want to throw in a piece of code to tell him to watch data warehouses "datastore-prod *" and place the virtual machine on the store of data with the most space. (that's assuming that the vm will agree on the DS and let fresh generals)

    I guess I want to know if it is possible?

    I would also be concerned about scenario that perhaps the vm should I build just will not match on any of my other data store. I guess I need a logic to check if it is still possible.

    This is more than a wish rather than a necessity. I'm thinking if I just read the info, or use a cvs file after running the script. Any recommendations would be greatly appreacted.

    Hello, drivera01-

    You should be able to do this with a very small amount of code.  Download all data warehouses that correspond to the model name, sort free space (in descending order) and select the top one.  As:

    ## get the datastore matching datastore-prod* that has the most freespace$oDatastoreWithMostFree = Get-Datastore datastore-prod* | Sort-Object -Property FreespaceGB -Descending:$true | Select-Object -First 1
    
    ## if the freespace plus a bit of buffer space is greater than the size needed for the new VMif (($oDatastoreWithMostFree.FreespaceGB + 20) -gt $intNewVMDiskSize) {<# do the provisioning to this datastore #>}else {"oh, no -- not enough freespace on datastore '$($oDatastoreWithMostFree.Name)' to provision new VM"}
    

    The second part, where it checks for sufficient freespace on the data store that has the most free, can be updated to behave as you need, but that should be the basis.  How does this look?

  • How to remove (delete) the last blank page of the script?

    Is anyone of you know how to remove (delete) the last white page that appears in the script? My story is 126 pages long, but in the scenario (the document) 127 pages appear because the last is a blank page, how to erase this page? Thank you.

    You can try the following:

    -by pressing the delete key at the end of the text to page 126

    -Check if you have the ability to 'Unlock the Pages' in the Menu 'Production '.

    If you still face this problem, can you please save the document to disk (file > save to disk) and send us an email to DL-AdobeStory-supportadobecom, so that we can offer you a fix?

  • Call the PL/SQL procedure with in out parameter of OIC clob

    Hello

    For a few days, I am facing a problem. I have to call the pl/sql procedure with colb parameter out. I use c ++ and OIC (don't ask me why :)).

    I use a pl/sql problem test procedure:

    create or replace function Test (longField outside clob) return number is
    Number of result;
    Start
    longField: = 'prefix ';
    Result: = 12;
    Return (result);
    end Test;

    So I do all the stuff with the connection to the DB,

    I prepare the statement: "start: res: = test(:param); end; »
    So I OCIHandleAlloc (m_pCtx-> hpEnv,
    (void *) & m_hpStatement,.
    OCI_HTYPE_STMT,
    0,
    (NULL);
    and
    OCIStmtPrepare (m_hpStatement,
    m_pCtx-> hpErr,
    (...),
    (...),
    OCI_NTV_SYNTAX,
    OCI_DEFAULT);

    Before the binding I prepare parameters. For a clob I devote to the lob Locator:

    OCIDescriptorAlloc ((dvoid *) m_pCtx-> hpEnv, (dvoid *) & m_pLobLocator,)
    (ub4) OCI_DTYPE_LOB (size_t) 0, (dvoid *) 0);
    OCILobEnableBuffering (m_pCtx-> hpContext, m_pCtx-> hpErr, (OCILobLocator *) m_pLobLocator);

    that I bind parameters using OCIBindByName and OCIStmtExecute statement execution.

    I get an error
    ---------------------------
    Microsoft Visual C++
    ---------------------------
    Unhandled exception in... (ORAOCIEI11. (DLL): 0xC0000005: Access Violation.

    My question is: is it possible to call the pl/sql procedure with parameter BEAK clob?
    If Yes, what steps I need to do to succeed?

    Thank you for your response.

    Hello

    Of course, it is possible :)

    Show that you are your piece of code that is binding.
    Are you sure you had correctly the lob descriptor in the call to bind?

  • How to find the last update date, time and user of the file field peoplecode

    How to find the last updated date time fields of peoplecode records?

    Thank you.

    We can check the update date-time using the following query

    SELECT LASTUPDDTTM IN THE PSPCMPROG WHERE OBJECTVALUE1 LIKE "RECNAME" AND OBJECTVALUE2 AS "FIELDNAME".

  • SQL to generate the last weeks date (not a stored procedure)

    I need SQL to generate the last dates of weeks from Monday to Sunday. I don't want to use the data in the table or the stored procedure. I need inline SQL. Please help me with your suggestions. Thanks in advance for the help.

    Varun says:
    I need SQL to generate the last dates of weeks from Monday to Sunday. I don't want to use the data in the table or the stored procedure. I need inline SQL. Please help me with your suggestions. Thanks in advance for the help.

    below should help you get started

      1* SELECT SYSDATE-LEVEL from dual CONNECT BY LEVEL < 8
    SQL> /
    
    SYSDATE-L
    ---------
    21-APR-13
    20-APR-13
    19-APR-13
    18-APR-13
    17-APR-13
    16-APR-13
    15-APR-13
    
    7 rows selected.
    
  • How to order by the last two dates?

    Hello

    I try to get the result in a table with the highest of the two dates. First date is a date created_on, the second date is "updated_on". I want to display the rows ordered by the last day between these two.

    I've tried this application without result.
    SELECT 
      name "Nom",
      updated_on, created_on,
      greatest (updated_on, created_on) latest
    FROM  doclib_documents
    order by latest desc
    Below is an example of the table data.
    Insert into "table_export" ("Nom",UPDATED_ON,CREATED_ON) values ('readme.txt',to_timestamp('08/03/2010 15:16:56','DD/MM/RR HH24:MI:SSXFF'),to_timestamp('12/03/2009 11:22:41','DD/MM/RR HH24:MI:SSXFF'));
    Insert into "table_export" ("Nom",UPDATED_ON,CREATED_ON) values ('doc_library_readme_0.92.txt',to_timestamp('12/02/2010 13:32:30','DD/MM/RR HH24:MI:SSXFF'),to_timestamp('12/03/2009 11:26:14','DD/MM/RR HH24:MI:SSXFF'));
    Insert into "table_export" ("Nom",UPDATED_ON,CREATED_ON) values ('01_informatique.pdf',to_timestamp('10/02/2010 13:49:34','DD/MM/RR HH24:MI:SSXFF'),to_timestamp('12/03/2009 16:29:00','DD/MM/RR HH24:MI:SSXFF'));
    Insert into "table_export" ("Nom",UPDATED_ON,CREATED_ON) values ('readme.txt',to_timestamp('08/03/2010 15:16:56','DD/MM/RR HH24:MI:SSXFF'),to_timestamp('16/02/2010 11:40:16','DD/MM/RR HH24:MI:SSXFF'));
    Insert into "table_export" ("Nom",UPDATED_ON,CREATED_ON) values ('dataguardproblem.txt.txt',to_timestamp('03/03/2010 11:19:44','DD/MM/RR HH24:MI:SSXFF'),to_timestamp('16/02/2010 11:41:03','DD/MM/RR HH24:MI:SSXFF'));
    Insert into "table_export" ("Nom",UPDATED_ON,CREATED_ON) values ('f110.sql',to_timestamp('03/03/2010 10:59:08','DD/MM/RR HH24:MI:SSXFF'),to_timestamp('10/02/2010 13:44:45','DD/MM/RR HH24:MI:SSXFF'));
    Insert into "table_export" ("Nom",UPDATED_ON,CREATED_ON) values ('1.jpg',to_timestamp('08/03/2010 14:22:00','DD/MM/RR HH24:MI:SSXFF'),to_timestamp('08/03/2010 14:17:42','DD/MM/RR HH24:MI:SSXFF'));
    Insert into "table_export" ("Nom",UPDATED_ON,CREATED_ON) values ('dads.conf',to_timestamp('03/03/2010 11:19:56','DD/MM/RR HH24:MI:SSXFF'),to_timestamp('09/02/2010 11:19:30','DD/MM/RR HH24:MI:SSXFF'));
    Insert into "table_export" ("Nom",UPDATED_ON,CREATED_ON) values ('1.doc',to_timestamp('10/02/2010 13:49:46','DD/MM/RR HH24:MI:SSXFF'),to_timestamp('09/02/2010 11:20:28','DD/MM/RR HH24:MI:SSXFF'));
    Insert into "table_export" ("Nom",UPDATED_ON,CREATED_ON) values ('1.doc',to_timestamp('15/02/2010 16:08:06','DD/MM/RR HH24:MI:SSXFF'),to_timestamp('09/02/2010 11:33:02','DD/MM/RR HH24:MI:SSXFF'));
    Insert into "table_export" ("Nom",UPDATED_ON,CREATED_ON) values ('dataguardproblem.txt.txt',to_timestamp('03/03/2010 10:57:52','DD/MM/RR HH24:MI:SSXFF'),to_timestamp('09/02/2010 11:36:15','DD/MM/RR HH24:MI:SSXFF'));
    Insert into "table_export" ("Nom",UPDATED_ON,CREATED_ON) values ('access.rtf',to_timestamp('10/02/2010 13:38:25','DD/MM/RR HH24:MI:SSXFF'),to_timestamp('09/02/2010 12:10:57','DD/MM/RR HH24:MI:SSXFF'));
    Insert into "table_export" ("Nom",UPDATED_ON,CREATED_ON) values ('temp.sql',to_timestamp('12/02/2010 14:43:58','DD/MM/RR HH24:MI:SSXFF'),to_timestamp('11/02/2010 09:59:56','DD/MM/RR HH24:MI:SSXFF'));
    Insert into "table_export" ("Nom",UPDATED_ON,CREATED_ON) values ('evv_E022_doublons.txt',to_timestamp('15/02/2010 15:55:02','DD/MM/RR HH24:MI:SSXFF'),to_timestamp('12/02/2010 15:59:45','DD/MM/RR HH24:MI:SSXFF'));
    Insert into "table_export" ("Nom",UPDATED_ON,CREATED_ON) values ('evv_E022_doublons.txt',to_timestamp('15/02/2010 16:05:58','DD/MM/RR HH24:MI:SSXFF'),to_timestamp('12/02/2010 16:00:25','DD/MM/RR HH24:MI:SSXFF'));
    Thanks for you help!

    Christian

    It does not work for me

    select t.*, greatest(updated_on, created_on) latest_date
      from "table_export" t
    order by latest_date desc
    
  • Vista to 7 ultimate; Hangs at 62% on the last step, even with the Microsoft Fix tool.

    Hello
    I'm currently upgrading my Windows Vista Home Premium SP2 to Windows 7 Ultimate edition. The entire dose has been smooth, except on the last stage, the progress hangs at as records of XXXXXX/XXXXXXX (62% to be exact). I came here and I tried The Microsoft Fix it (No. 50319) that has been proposed, without success. Currently I just make it run the time will hopefully fix. It was about 2 hours with no luck. I have not tried the difficulty It Yourself option, but I get woozy when messing around with records. Is there anyone else who is having the same issue, or better yet, a possible solution?

    In case it can help you, here is my system log;

    Model/carton: Gateway GT5477E
    CPU: Amd Athlon X 2 4400 + 3.2 Ghz 32 bit
    HARD drive: 400 (312 free) GB 7200 RPM
    VIDCARD: GALAXY 9500GT PCI-E 512 MB (single card) (removed for the upgrade)
    RAM: 4 GB DDR2 (4 X 1 Kingston mini-dimm)

    All my external USB, printers etc. Are of the United-pluged Nations and off. I have very little emission, which none would prevent more than likely that this progress, and a lot of free on my HARD drive.

    I was very surprised that the Fix tool It was not able to solve the problem. I'll let it run to see if time allows he rock forward, but it is on the same file from a certain time and its not not Lookin ' swell so much for me. Wish me good luck or grant me the knowledge. -Michael G.

    Hello

    You can wait for the difficulty he has done and if the progresses installation more than 62% then the issue is resolved.

    If the automatic fix does not resolve the issue then, try the manual steps to fix the problem.

    To fix this problem yourself, follow these steps:

    (a) restart the computer. Then, your computer will roll back to Windows Vista.

    (b) click Start, right-click computer, and then click Properties.

    (c) in the Advanced tab, click Environment Variables.

    (d) under System variables, click new.

    (e) in the name of the Variable of type MIG_UPGRADE_IGNORE_PLUGINS field.

    (f) in the value of the Variable of type IphlpsvcMigPlugin.dll field.

    (g) click OK three times to close the dialog boxes.

    (h) restart the upgrade installation.

  • inventory including the last report date of extinction

    Hello

    I'm new to power cli (about a week to try) and am trying to run a powercli script that will give me a list of off the virtual computer with specific information, including the date, it has been turned off. My script looks like this:

    @"
    ===============================================================================
    Title: vminventory.ps1
    Description: Export VM Information for vCenter in one. CSV file for import into what anyone
    Use:.\vminventory.ps1
    Date: 15/10/2012
    ===============================================================================
    "@
    # Get virtual center to connect to:
    $VCServerName = Read-Host "What is the name of Virtual Center?"
    $ExportFilePath = Read-Host "where you want to export the data?
    $VC = to connect-VIServer $VCServerName
    $Report = @)
    #$VMs = get-file $VMFolder | Get - VM
    $VMs = get - vm | WHERE-object {$_.powerstate - eq "poweredoff"}
    $Datastores = get-Datastore. Select Name, Id
    $VMHosts = get-VMHost | Select Name, Parent
    # Get turned off from the time of the event:
    {ForEach ($VM to $VMs)
    Get-VIEvent-body $VM - MaxSamples ([int]: MaxValue) | where {$_-is [VMware.Vim.VmPoweredOffEvent]} |
    Group-object - property {$_.} Vm.Name} | %{
    $lastPO = $_. Group | Tri-objet-property Createduserid-descending | Select - 1 first | Select Createduserid - ExpandProperty
    New-object PSObject-property @ {}
    VM = $_. Group [0]. Vm.Name
    "The last Poweroff" = $lastPO
    }
    }
    $VMView = $VM | Get-View
    $VMInfo = {} | Select VMName Powerstate, OS, IPAddress, ToolsStatus, host, Cluster, data store, NumCPU, MemMb, DiskGb, SSGOwner, BUSowner, PowerOFF, Note
    $VMInfo.VMName = $vm.name
    $VMInfo.Powerstate = $vm. PowerState
    $VMInfo.OS = $vm. Guest.OSFullName
    $VMInfo.IPAddress = $vm. Guest.IPAddress [0]
    $VMInfo.ToolsStatus = $VMView.Guest.ToolsStatus
    $VMInfo.Host = $vm.host.name
    $VMInfo.Cluster = $vm.host.Parent.Name
    $VMInfo.Datastore = ($Datastores | where {$_.}) ID-match (($vmview.)) Data store | Select - first 1) | Select the value). Value} | Select name). Name
    $VMInfo.NumCPU = $vm. NumCPU
    $VMInfo.MemMb = [math]: round (($vm.)) (MemoryMB), 2)
    $VMInfo.DiskGb = [math]: Round ((($vm.)) Hard drives | Measure-Object-CapacityKB property-sum). Summary * 1 k / 1 GB), 2)
    $VMInfo.PowerOFF = $lastPO
    $VMInfo.SSGOwner = ($vm |) Get-Annotation - CustomAttribute "SSG system owner"). Value
    $VMInfo.BUSowner = ($vm |) Get-Annotation - CustomAttribute "Business system owner"). Value
    $VMInfo.Note = $vm. Notes
    $Report += $VMInfo
    }
    $Report = $Report | Sort-Object VMName
    IF ($Report - don't ' ') {}
    $report | Export-Csv $ExportFilePath - NoTypeInformation
    }
    $VC = disconnect VIServer $VCServerName - confirm: $False

    I can't get to browse and read the power of the events in the log of the events on the virtual machine?  Someone at - it ideas?

    No, my mistake. Which should have been $lastPO.VM.VM.

    I've corrected the above code

    Update: just noticed another typo, it's fixed

  • Import notes that in SOD - how to set the last-modified Date?

    We are still doing our Siebel users. We launched on-air, and therefore some users who were still using legacy systems while some worked far in Siebel. What I'm trying to do now is to take over from representatives in the old system and go to Siebel. I have the file created with the subject, external account id, note (description) and the date that the note was created in the old system. When I try to import the date cannot be set and is broken at the time of that creation of the acutal in Siebel note.

    It is a problem that I have 3 years of account history that should be loaded and if I import all of this now, it will push the notes in the system to bottom of the list who will be upset representatives began uisng Siebel in the first wave.

    My goal is simply to be ordered from oldest to newest on top, but I can't seem to find a way to do that using the tool of importation as a last modification Date is not an option for me to import.

    Is it possible to do? If not, anyone know of a work around to achieve the same goal?

    Any help is very appreciated.

    -john

    It wouldn't appear in the Notes section of the retail account. Currently, it is not possible to import the date as part of an import of Notes.

  • Develop the encryption Transparent data with Oracle 10 g XE

    Currently I develop an application that will require encrypted in some tables columns, I will recommended to the customer buying an Oracle database for the application and that you have installed Oracle 10 g XE to begin development, I found that I can't create tables with columns TDE tho I can't create a portfolio. I searched the forums and found that a portfolio manager is not available with Oracle XE.

    My plan was to develop the application and then provide scripts for creating the DBA of the customer so that they can create data tables in their Oracle database... Can I develop the application without transparent data encryption and then say s/n, which must be implemented in the version of the application? The application needs to know the password of portfolio/TDE to encrypt/decrypt the columns!

    Any ideas how I could go on the development of the customer Oracle XE database without access to CDW?

    The T in TDE is transparent, so that your application should need not even be aware that all columns or storage are encrypted. Transparent data encryption are generally implemented in systems that were never designed to encrypt data, so in theory it should be 'perfectly safe' to develop not encrypted and have the client encrypt the columns during installation.

    Of course, when marketing people start talking about things that are 'perfectly safe', it is always a sign of coming danger. Although I have never heard of a case where encrypt a column caused a problem for an application, I would be very doubtful to the development in an environment different from that of production. This includes the exact version of the database (I guess that the customer has installed the last patchsets, so they run 10.2.0.4, for example) as well as editing. If you decide to rely on the fact that everything should go smoothly when you promote to a different version of a different edition of the database with a different schema definition, even if it would normally, you virtually guarantee that you will end up with a problem that will be difficult to solve.

    In your case, I would use XE to the development. It would be much safer to develop against the personal edition. It's not free, but it's the database licensed Enterprise edition to run on developer machines. It is not free, but it is much less than an enterprise edition license.

    Justin

Maybe you are looking for

  • Unable to get Internet using modem internal dial on Equium A200-15i

    Using my new laptop EQuium A200-15i while a Wi-Fi by Netgear has been created, I could not get the internal modem to dial up to my ISP on PAYG (to serve as a backup in case of need).Device Manager indicates the modem is not working properly and the d

  • LaserJet P2015 PCL6: Problem with LJ P2015 PCL6 x 86 drivers for x 64 print server

    Hello, I am trying to add x 86 additional drivers for the print 2008R2 server, but seems the downloaded packages 'LJP2015-pcl6-pnp-win32-it' or 'ljp2015pcl6vista2k2008xp2003' does not contain the driver corrette (hppaew04.inf, hppcp504.inf) Server re

  • Adobe works the nit

    I renewed my subscription, and I have a receipt for the amounts paid. When I try to convert a Word file to pDf, I'm wondering about buying a subscription... Help!

  • Request throw his (swoosh) disappeared.

    I have the latest update on the front, and for a while played his swoosh when he breaks apps. Now he's gone. Any suggestions?

  • Contact form does not work

    I just uploaded my Muse site at gate.com to host and everything works well except the contact page.  From what I see on the forum, it seems to be a common problem.  Does anyone have experience working with gate.com?  I contacted them and they keep te