Updating code fron AS 2 to AS 3

I'm trying to update an interesting text/sound Effect I found in Lee Brimelows "gotoAndLearn".
I would like to use it in a current project that is all AS3.
I have tried updating the code but I keep getting errors:
Error #2044: Unhandled IOErrorEvent:. text=Error #2032: Stream Error.
    at Write_AS3_fla::MainTimeline/frame1()
this is the original code as I decided it would be too confusing to put in my hybrid version:
var str:String = " As an airliner that skidded off a runway during a snowstorm Thursday night at Midway Airport remained today in the middle of a Southwest Side street, its fuselage resting atop the crumpled wreckage of a family's car, federal investigators took charge of the accident inquiry.\n\nA 6-year-old boy riding in the car was killed. At least 10 other people—eight on the ground and two on the plane—were injured.\n\nThe Cook County medical examiner's office has identified the fatality as Joshua Woods, of the 14200 block of Elkhart Place in Leroy, Ind. He was pronounced dead at 7:45 p.m. at Advocate Christ Medical Center, Oak Lawn, according to a medical examiner's spokeswoman.\n\nGary Kelly, chief executive of Southwest Airlines, told a news conference in Dallas today that this was the first fatal accident involving a Southwest flight in the carrier's 35-year history.";
var sInt = setInterval(writeIt,1);
var count:Number = 0;
var s:Sound = new Sound();
s.attachSound("type");
function writeIt() {
    if(count == 0) {
        s.start(0,1000);
    theText.text = str.substring(0,count);
    count += 5;
    if(count > str.length) {
        clearInterval(sInt);
        s.stop();
I realize I need to use the load() method for the sound and the setInterval is no longer supported.
Any suggestions or comment are appreciated.
Thanks

I am not a sound expert (not even close), but from what I understand, there's the Sound class and the SoundChannel class, that latter of which is born of the former....
Try...
var str:String = " As an airliner that skidded off a runway during a snowstorm Thursday night at Midway Airport remained today in the middle of a Southwest Side street, its fuselage resting atop the crumpled wreckage of a family's car, federal investigators took charge of the accident inquiry.\n\nA 6-year-old boy riding in the car was killed. At least 10 other people—eight on the ground and two on the plane—were injured.\n\nThe Cook County medical examiner's office has identified the fatality as Joshua Woods, of the 14200 block of Elkhart Place in Leroy, Ind. He was pronounced dead at 7:45 p.m. at Advocate Christ Medical Center, Oak Lawn, according to a medical examiner's spokeswoman.\n\nGary Kelly, chief executive of Southwest Airlines, told a news conference in Dallas today that this was the first fatal accident involving a Southwest flight in the carrier's 35-year history.";
var timer:Timer = new Timer(1);
timer.addEventListener(TimerEvent.TIMER, onTimer);
timer.start();
var count:Number = 0;
//creating an instance for sound
var s:type = new type();
var schannel:SoundChannel;
function onTimer(event:TimerEvent):void {
    if(count == 0) {
        schannel = s.play(0,1000);
    theText.text = str.substring(0,count);
    count += 2;
    if(count > str.length) {
        timer.removeEventListener(TimerEvent.TIMER, onTimer);
        schannel.stop();

Similar Messages

  • Update code not working

    ok.. i have a vacancies page, each vacancy has a link next to
    it called "edit" when you click on the link it does this:
    <a href="vacancyedit.cfm?ID=#ID#">
    on vacancyedit.cfm there is a form. the fields on the form
    are populated with this query:
    <cfquery name="edit_vacancy"
    datasource="allieddatabase">
    SELECT *
    FROM new_vacancy_table1
    WHERE ID = #ID#
    ORDER BY ID DESC
    </cfquery>
    the form looks like this:
    <form
    action="<cfoutput>#CurrentPage#</cfoutput>"
    method="POST" name="edit_vacancy_form">
    <label for="textfield">Auto ID</label>
    <input
    value="<cfoutput>#edit_vacancy.ID#</cfoutput>"
    type="text" name="id" id="id">
    <label for="label">Area</label>
    <input
    value="<cfoutput>#edit_vacancy.area#</cfoutput>"
    type="text" name="textfield2" id="label">
    <label for="label2">Pattern</label>
    <input
    value="<cfoutput>#edit_vacancy.pattern#</cfoutput>"
    type="text" name="textfield3" id="label2">
    <label for="label3">Hours</label>
    <input
    value="<cfoutput>#edit_vacancy.hrs#</cfoutput>"
    type="text" name="textfield4" id="label3">
    <label for="label4">Rate</label>
    <input
    value="<cfoutput>#edit_vacancy.rate#</cfoutput>"
    type="text" name="textfield5" id="label4">
    <label for="textarea">Description</label>
    <textarea name="textarea"
    class="text_entry"><cfoutput>#edit_vacancy.description#</cfoutput></textarea>
    <br>
    <input type="submit" name="Submit" value="Submit"
    id="submit_button">
    <input type="hidden" name="MM_UpdateRecord"
    value="edit_vacancy_form">
    </form>
    so i make the alterations to the queried data as required
    then click submit. this is the update code:
    <cfset CurrentPage=GetFileFromPath(GetTemplatePath())>
    <cfif IsDefined("FORM.MM_UpdateRecord") AND
    FORM.MM_UpdateRecord EQ "edit_vacancy_form">
    <cfquery datasource="allieddatabase">
    UPDATE new_vacancy_table1
    SET area=
    <cfif IsDefined("FORM.textfield2") AND #FORM.textfield2#
    NEQ "">
    <cfqueryparam value="#FORM.textfield2#"
    cfsqltype="cf_sql_clob" maxlength="50">
    <cfelse>
    </cfif>
    , pattern=
    <cfif IsDefined("FORM.textfield3") AND #FORM.textfield3#
    NEQ "">
    <cfqueryparam value="#FORM.textfield3#"
    cfsqltype="cf_sql_clob" maxlength="50">
    <cfelse>
    </cfif>
    , hrs=
    <cfif IsDefined("FORM.textfield4") AND #FORM.textfield4#
    NEQ "">
    <cfqueryparam value="#FORM.textfield4#"
    cfsqltype="cf_sql_clob" maxlength="50">
    <cfelse>
    </cfif>
    , rate=
    <cfif IsDefined("FORM.textfield5") AND #FORM.textfield5#
    NEQ "">
    <cfqueryparam value="#FORM.textfield5#"
    cfsqltype="cf_sql_clob" maxlength="50">
    <cfelse>
    </cfif>
    , "description"=
    <cfif IsDefined("FORM.textarea") AND #FORM.textarea# NEQ
    "">
    <cfqueryparam value="#FORM.textarea#"
    cfsqltype="cf_sql_clob">
    <cfelse>
    </cfif>
    WHERE ID=<cfqueryparam value="#FORM.id#"
    cfsqltype="cf_sql_numeric">
    </cfquery>
    <cflocation url="vacancyadmin.cfm">
    </cfif>
    this should then update my changes and take me back to
    vacancyadmin.cfm. however all i get is the following error message:
    Error Executing Database Query.
    Parameter ?_5 has no default value.
    The error occurred in
    F:\data\webdesigns\wwwroot\CFIDE\Allied\vacancyedit.cfm: line 35
    33 : ''
    34 : </cfif>
    35 : WHERE ID=<cfqueryparam value="#FORM.id#"
    cfsqltype="cf_sql_clob" maxlength="10">
    36 : </cfquery>
    37 : <cflocation url="vacancyadmin.cfm">
    SQL UPDATE new_vacancy_table1 SET area= (param 1) , pattern=
    (param 2) , hrs= (param 3) , rate= '' , "description"= (param 4)
    WHERE ID= (param 5)
    DATASOURCE allieddatabase
    VENDORERRORCODE 3088
    SQLSTATE  
    Resources:
    * Check the ColdFusion documentation to verify that you are
    using the correct syntax.
    * Search the Knowledge Base to find a solution to your
    problem.
    Browser Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US;
    rv:1.8.1.3) Gecko/20070309 Firefox/2.0.0.3
    Remote Address 10.0.0.201
    Referrer
    http://allied-srv-03/CFS/vacancyedit.cfm?ID=14
    Date/Time 07-Apr-07 12:56 PM
    Stack Trace
    at
    cfvacancyedit2ecfm242791332.runPage(F:\data\webdesigns\wwwroot\CFIDE\Allied\vacancyedit.c fm:35)
    at
    cfvacancyedit2ecfm242791332.runPage(F:\data\webdesigns\wwwroot\CFIDE\Allied\vacancyedit.c fm:35)
    com.inzoom.adojni.ComException: Parameter ?_5 has no default
    value. in Microsoft JET Database Engine code=3088 Type=1
    at com.inzoom.ado.Command.jniExecute(Native Method)
    at com.inzoom.ado.Command.execute(Command.java:40)
    at com.inzoom.jdbcado.Statement.exec(Statement.java:34)
    at
    com.inzoom.jdbcado.PreparedStatement.execute(PreparedStatement.java:201)
    at
    coldfusion.server.j2ee.sql.JRunPreparedStatement.execute(JRunPreparedStatement.java:87)
    at coldfusion.sql.Executive.executeQuery(Executive.java:756)
    at coldfusion.sql.Executive.executeQuery(Executive.java:675)
    at coldfusion.sql.Executive.executeQuery(Executive.java:636)
    at coldfusion.sql.SqlImpl.execute(SqlImpl.java:236)
    at
    coldfusion.tagext.sql.QueryTag.doEndTag(QueryTag.java:500)
    at
    cfvacancyedit2ecfm242791332.runPage(F:\data\webdesigns\wwwroot\CFIDE\Allied\vacancyedit.c fm:35)
    at coldfusion.runtime.CfJspPage.invoke(CfJspPage.java:152)
    at
    coldfusion.tagext.lang.IncludeTag.doStartTag(IncludeTag.java:349)
    at
    coldfusion.filter.CfincludeFilter.invoke(CfincludeFilter.java:65)
    at
    coldfusion.filter.ApplicationFilter.invoke(ApplicationFilter.java:225)
    at
    coldfusion.filter.RequestMonitorFilter.invoke(RequestMonitorFilter.java:51)
    at coldfusion.filter.PathFilter.invoke(PathFilter.java:86)
    at
    coldfusion.filter.LicenseFilter.invoke(LicenseFilter.java:27)
    at
    coldfusion.filter.ExceptionFilter.invoke(ExceptionFilter.java:69)
    at
    coldfusion.filter.BrowserDebugFilter.invoke(BrowserDebugFilter.java:52)
    at
    coldfusion.filter.ClientScopePersistenceFilter.invoke(ClientScopePersistenceFilter.java:2 8)
    at
    coldfusion.filter.BrowserFilter.invoke(BrowserFilter.java:38)
    at
    coldfusion.filter.GlobalsFilter.invoke(GlobalsFilter.java:38)
    at
    coldfusion.filter.DatasourceFilter.invoke(DatasourceFilter.java:22)
    at
    coldfusion.filter.RequestThrottleFilter.invoke(RequestThrottleFilter.java:115)
    at coldfusion.CfmServlet.service(CfmServlet.java:107)
    at
    coldfusion.bootstrap.BootstrapServlet.service(BootstrapServlet.java:78)
    at
    jrun.servlet.ServletInvoker.invoke(ServletInvoker.java:91)
    at
    jrun.servlet.JRunInvokerChain.invokeNext(JRunInvokerChain.java:42)
    at
    jrun.servlet.JRunRequestDispatcher.invoke(JRunRequestDispatcher.java:257)
    at
    jrun.servlet.ServletEngineService.dispatch(ServletEngineService.java:541)
    at
    jrun.servlet.jrpp.JRunProxyService.invokeRunnable(JRunProxyService.java:204)
    at
    jrunx.scheduler.ThreadPool$DownstreamMetrics.invokeRunnable(ThreadPool.java:318)
    at
    jrunx.scheduler.ThreadPool$ThreadThrottle.invokeRunnable(ThreadPool.java:426)
    at
    jrunx.scheduler.ThreadPool$UpstreamMetrics.invokeRunnable(ThreadPool.java:264)
    at jrunx.scheduler.WorkerThread.run(WorkerThread.java:66)
    sorry its such a long post but i thought it best to post all
    the info. can anyone see what the problem is with my code?
    thanks in advance
    zac

    Zac,
    You really shouldn't make the Primary Key for the table
    editable.
    Try removing this from the form:
    <label for="textfield">Auto ID</label>
    <input
    value="<cfoutput>#edit_vacancy.ID#</cfoutput>"
    type="text" name="id" id="id">
    And make it a hidden input like this:
    <input
    value="<cfoutput>#edit_vacancy.ID#</cfoutput>"
    type="hidden" name="id" id="id">
    Ken Ford
    Adobe Community Expert
    Fordwebs, LLC
    http://www.fordwebs.com
    "zac1234" <[email protected]> wrote in
    message news:[email protected]...
    > ok.. i have a vacancies page, each vacancy has a link
    next to it called "edit"
    > when you click on the link it does this:
    >
    > <a href="vacancyedit.cfm?ID=#ID#">
    >
    > on vacancyedit.cfm there is a form. the fields on the
    form are populated with
    > this query:
    >
    > <cfquery name="edit_vacancy"
    datasource="allieddatabase">
    > SELECT *
    > FROM new_vacancy_table1
    > WHERE ID = #ID#
    > ORDER BY ID DESC
    > </cfquery>
    >
    > the form looks like this:
    >
    > <form
    action="<cfoutput>#CurrentPage#</cfoutput>"
    method="POST"
    > name="edit_vacancy_form">
    >
    > <label for="textfield">Auto ID</label>
    > <input
    value="<cfoutput>#edit_vacancy.ID#</cfoutput>"
    type="text" name="id"
    > id="id">
    >
    > <label for="label">Area</label>
    > <input
    value="<cfoutput>#edit_vacancy.area#</cfoutput>"
    type="text"
    > name="textfield2" id="label">
    > <label for="label2">Pattern</label>
    > <input
    value="<cfoutput>#edit_vacancy.pattern#</cfoutput>"
    type="text"
    > name="textfield3" id="label2">
    > <label for="label3">Hours</label>
    > <input
    value="<cfoutput>#edit_vacancy.hrs#</cfoutput>"
    type="text"
    > name="textfield4" id="label3">
    > <label for="label4">Rate</label>
    > <input
    value="<cfoutput>#edit_vacancy.rate#</cfoutput>"
    type="text"
    > name="textfield5" id="label4">
    > <label for="textarea">Description</label>
    > <textarea name="textarea"
    >
    class="text_entry"><cfoutput>#edit_vacancy.description#</cfoutput></textarea>
    > <br>
    > <input type="submit" name="Submit" value="Submit"
    id="submit_button">
    > <input type="hidden" name="MM_UpdateRecord"
    value="edit_vacancy_form">
    > </form>
    >
    > so i make the alterations to the queried data as
    required then click submit.
    > this is the update code:
    >
    > <cfset
    CurrentPage=GetFileFromPath(GetTemplatePath())>
    > <cfif IsDefined("FORM.MM_UpdateRecord") AND
    FORM.MM_UpdateRecord EQ
    > "edit_vacancy_form">
    > <cfquery datasource="allieddatabase">
    > UPDATE new_vacancy_table1
    > SET area=
    > <cfif IsDefined("FORM.textfield2") AND
    #FORM.textfield2# NEQ "">
    > <cfqueryparam value="#FORM.textfield2#"
    cfsqltype="cf_sql_clob"
    > maxlength="50">
    > <cfelse>
    > ''
    > </cfif>
    > , pattern=
    > <cfif IsDefined("FORM.textfield3") AND
    #FORM.textfield3# NEQ "">
    > <cfqueryparam value="#FORM.textfield3#"
    cfsqltype="cf_sql_clob"
    > maxlength="50">
    > <cfelse>
    > ''
    > </cfif>
    > , hrs=
    > <cfif IsDefined("FORM.textfield4") AND
    #FORM.textfield4# NEQ "">
    > <cfqueryparam value="#FORM.textfield4#"
    cfsqltype="cf_sql_clob"
    > maxlength="50">
    > <cfelse>
    > ''
    > </cfif>
    > , rate=
    > <cfif IsDefined("FORM.textfield5") AND
    #FORM.textfield5# NEQ "">
    > <cfqueryparam value="#FORM.textfield5#"
    cfsqltype="cf_sql_clob"
    > maxlength="50">
    > <cfelse>
    > ''
    > </cfif>
    > , "description"=
    > <cfif IsDefined("FORM.textarea") AND #FORM.textarea#
    NEQ "">
    > <cfqueryparam value="#FORM.textarea#"
    cfsqltype="cf_sql_clob">
    > <cfelse>
    > ''
    > </cfif>
    > WHERE ID=<cfqueryparam value="#FORM.id#"
    cfsqltype="cf_sql_numeric">
    > </cfquery>
    > <cflocation url="vacancyadmin.cfm">
    > </cfif>
    >
    > this should then update my changes and take me back to
    vacancyadmin.cfm.
    > however all i get is the following error message:
    >
    > Error Executing Database Query.
    > Parameter ?_5 has no default value.
    >
    > The error occurred in
    F:\data\webdesigns\wwwroot\CFIDE\Allied\vacancyedit.cfm:
    > line 35
    >
    > 33 : ''
    > 34 : </cfif>
    > 35 : WHERE ID=<cfqueryparam value="#FORM.id#"
    cfsqltype="cf_sql_clob"
    > maxlength="10">
    > 36 : </cfquery>
    > 37 : <cflocation url="vacancyadmin.cfm">
    >
    > SQL UPDATE new_vacancy_table1 SET area= (param 1) ,
    pattern= (param 2) ,
    > hrs= (param 3) , rate= '' , "description"= (param 4)
    WHERE ID= (param 5)
    > DATASOURCE allieddatabase
    > VENDORERRORCODE 3088
    > SQLSTATE  
    > Resources:
    >
    > * Check the ColdFusion documentation to verify that you
    are using the
    > correct syntax.
    > * Search the Knowledge Base to find a solution to your
    problem.
    >
    > Browser Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US;
    rv:1.8.1.3)
    > Gecko/20070309 Firefox/2.0.0.3
    > Remote Address 10.0.0.201
    > Referrer
    http://allied-srv-03/CFS/vacancyedit.cfm?ID=14
    > Date/Time 07-Apr-07 12:56 PM
    > Stack Trace
    > at
    >
    cfvacancyedit2ecfm242791332.runPage(F:\data\webdesigns\wwwroot\CFIDE\Allied\vaca
    > ncyedit.cfm:35) at
    >
    cfvacancyedit2ecfm242791332.runPage(F:\data\webdesigns\wwwroot\CFIDE\Allied\vaca
    > ncyedit.cfm:35)
    >
    > com.inzoom.adojni.ComException: Parameter ?_5 has no
    default value. in
    > Microsoft JET Database Engine code=3088 Type=1
    > at com.inzoom.ado.Command.jniExecute(Native Method)
    > at com.inzoom.ado.Command.execute(Command.java:40)
    > at com.inzoom.jdbcado.Statement.exec(Statement.java:34)
    > at
    com.inzoom.jdbcado.PreparedStatement.execute(PreparedStatement.java:201)
    > at
    >
    coldfusion.server.j2ee.sql.JRunPreparedStatement.execute(JRunPreparedStatement.j
    > ava:87)
    > at
    coldfusion.sql.Executive.executeQuery(Executive.java:756)
    > at
    coldfusion.sql.Executive.executeQuery(Executive.java:675)
    > at
    coldfusion.sql.Executive.executeQuery(Executive.java:636)
    > at coldfusion.sql.SqlImpl.execute(SqlImpl.java:236)
    > at
    coldfusion.tagext.sql.QueryTag.doEndTag(QueryTag.java:500)
    > at
    >
    cfvacancyedit2ecfm242791332.runPage(F:\data\webdesigns\wwwroot\CFIDE\Allied\vaca
    > ncyedit.cfm:35)
    > at
    coldfusion.runtime.CfJspPage.invoke(CfJspPage.java:152)
    > at
    coldfusion.tagext.lang.IncludeTag.doStartTag(IncludeTag.java:349)
    > at
    coldfusion.filter.CfincludeFilter.invoke(CfincludeFilter.java:65)
    > at
    coldfusion.filter.ApplicationFilter.invoke(ApplicationFilter.java:225)
    > at
    coldfusion.filter.RequestMonitorFilter.invoke(RequestMonitorFilter.java:51)
    > at
    coldfusion.filter.PathFilter.invoke(PathFilter.java:86)
    > at
    coldfusion.filter.LicenseFilter.invoke(LicenseFilter.java:27)
    > at
    coldfusion.filter.ExceptionFilter.invoke(ExceptionFilter.java:69)
    > at
    coldfusion.filter.BrowserDebugFilter.invoke(BrowserDebugFilter.java:52)
    > at
    >
    coldfusion.filter.ClientScopePersistenceFilter.invoke(ClientScopePersistenceFilt
    > er.java:28)
    > at
    coldfusion.filter.BrowserFilter.invoke(BrowserFilter.java:38)
    > at
    coldfusion.filter.GlobalsFilter.invoke(GlobalsFilter.java:38)
    > at
    coldfusion.filter.DatasourceFilter.invoke(DatasourceFilter.java:22)
    > at
    >
    coldfusion.filter.RequestThrottleFilter.invoke(RequestThrottleFilter.java:115)
    > at coldfusion.CfmServlet.service(CfmServlet.java:107)
    > at
    coldfusion.bootstrap.BootstrapServlet.service(BootstrapServlet.java:78)
    > at
    jrun.servlet.ServletInvoker.invoke(ServletInvoker.java:91)
    > at
    jrun.servlet.JRunInvokerChain.invokeNext(JRunInvokerChain.java:42)
    > at
    jrun.servlet.JRunRequestDispatcher.invoke(JRunRequestDispatcher.java:257)
    > at
    jrun.servlet.ServletEngineService.dispatch(ServletEngineService.java:541)
    > at
    >
    jrun.servlet.jrpp.JRunProxyService.invokeRunnable(JRunProxyService.java:204)
    > at
    >
    jrunx.scheduler.ThreadPool$DownstreamMetrics.invokeRunnable(ThreadPool.java:318)
    > at
    >
    jrunx.scheduler.ThreadPool$ThreadThrottle.invokeRunnable(ThreadPool.java:426)
    > at
    >
    jrunx.scheduler.ThreadPool$UpstreamMetrics.invokeRunnable(ThreadPool.java:264)
    > at
    jrunx.scheduler.WorkerThread.run(WorkerThread.java:66)
    >
    >
    >
    > sorry its such a long post but i thought it best to post
    all the info. can
    > anyone see what the problem is with my code?
    >
    > thanks in advance
    >
    > zac
    >
    >

  • Are templates able to update code above html tag?

    Is it possible to use templates to update code preceding the
    doctype declaration and/or the html tag? I am trying to insert php
    code (relating to sessions) and have tried (I believe) all possible
    variants of codeOutsideHTMLIsLocked="false" or "true", combined
    with trying to insert an editable region at the top, etc. I am not
    able to find a solution that works. I may trick DW to insert the
    code site wide, but then it will not update the code nor delete it.
    colin

    Cole.Mountain please try the steps listed in Error "Failed to Install" Creative Cloud Desktop application - http://helpx.adobe.com/creative-cloud/kb/failed-install-creative-cloud-desktop.html to install the updated version of the Creative Cloud Desktop application.

  • HT1349 Redeem Mountain Lion App Store update code

    I sent my Mountain Lion App Store update code to the wrong e-mail address and can't recover it, but registered the serial number to my newly purchased MacBook Pro. Can I have my code resent to an e-mail I actually use to redeem it and download the new OS?

    http://support.apple.com/kb/DL1581 and supplemental http://support.apple.com/kb/DL1600

  • I have recently bought my Mac mini ( July 12) and have already requested my free update code for mountain lion, got a reference nr, but I still haven't received a code via email to update? Its been 12 days. Any advice?

    I have recently bought my Mac mini ( July 12) and have already requested my free update code for mountain lion, got a reference nr, but I still haven't received a code via email to update with? Its been 12 days. Any advice?

    I am still in the return window but i really do not want to return my mac as i know it has the ability to do what i want, my problem is just finding the software that will work as i know there has been a lot of complications with OS X Mountain Lion with softwares that caim to be compatible but then later turn out not to be.
    I have been a windows user for years and this is really my first mac but apart from the hole software issue i find the mac 10x better than any windows computer i have ever used. For example i bought a HP laptop 4 weeks ago and has nothing but problems. At first the fans stopped working and making weird noises and then it began switching off when ever it felt like it and freezing like mad when i was trying to access the smallest program. I have found that now a days you dont get what you pay for with Windows especially since Windows 8 was released. Also Laptops such as HP now are just crammed with cheap parts, they dont take pride in their systems like they once used to unlike Apple. I know i will get more than a year or 2 out my mac (hopefully a lot more) but with windows systems it just seems to break all the time costing more money on extending warrantys. Also i like mac because i dont need to send it away if i ever get a problem, i can just take it into the apple shop half a mile down the road and they will fix it in store. Where as with windows i am waiting 2 weeks+ to just hear back from them.

  • Me.dataAdapter.Update(table) Update code?

    I've got a dynamic win form which basically just has:
    Private dataGridView1 As New DataGridView()
    Private bindingSource1 As New BindingSource()
    Private dataAdapter As New SqlDataAdapter()
     ' Create a new data adapter based on the specified query. 
     Me.dataAdapter = New SqlDataAdapter(selectCommand, mConnectionString)
    With the select command being "Select col1, col2, col3, DataModified from MyTable"
    Then I have a Update button that calls 
            Me.dataAdapter.Update(CType(Me.bindingSource1.DataSource, DataTable)) Which updates the table in the database but unless I modify the LastModified field it just writes the LastModified from the database table when
    it loaded. I need to specify that on the update the LastModified field for each updated row in the table with DateTime.NOW().I can't figure out how to get into the actual Update code to add this for each Update row? 

    Hi Mimosa Arts,
    According to your description, you'd like to update the specialized column with the nowtime automatically when update the other column.
    I suggest you adding a
    Trigger to your database. trigging it when you using the update statement.
    CREATE TRIGGER tgr_modstamp
    ON **TABLENAME**
    AFTER UPDATE AS
    UPDATE **TABLENAME**
    SET **ColumnName** = GETDATE()
    WHERE **ID** IN (SELECT DISTINCT **ID** FROM Inserted)
    With this, when you use the update statement, the ColumnName column will be updated to NowTime automatically.
    If you have any other concern regarding this issue, please feel free to let me know.
    Best regards,
    Youjun Tang
    We are trying to better understand customer views on social support experience, so your participation in this interview project would be greatly appreciated if you have time. Thanks for helping make community forums a great place.
    Click
    HERE to participate the survey.

  • Cannot fix failed updates Code 80072F78

    I have W7 VM with failing Windows Updates that MUST be repaired.
    After spending some time trying to fix the problem I have no other choice but asking for help.
    The messages are in French but I guess it will not create any problem for getting it...
    Steps I took :
    1. There was an entry with IE proxy for Windows update.
    I reset winhttp.
    Assured:
    PS C:\Windows\System32\WindowsPowerShell\v1.0> netsh winhttp show proxy
    Paramètres de proxy WinHTTP actuels :
        Accès direct (sans serveur proxy).
    2. Windows update failed to download/install 11 updates with the error: Code 80072F78 (in GUI)
    I run the command below it showed bunch of updates (probably the same 11) that tried to use erroneous proxy.
    Here is one of them...
    PS C:\Windows\System32\WindowsPowerShell\v1.0> 
    JobId               : 5c3ed23d-6ec6-44df-b6aa-c83ca7b5e252
    DisplayName         : WU Client Download
    TransferType        : Download
    JobState            : Suspended
    OwnerAccount        : AUTORITE NT\Système
    Priority            : Foreground
    FilesTransferred    : 0
    FilesTotal          : 1
    BytesTransferred    : 0
    BytesTotal          : 221123
    CreationTime        : 2014-07-30 20:12:19
    ModificationTime    : 2014-07-30 20:18:30
    MinimumRetryDelay   :
    NoProgressTimeout   :
    TransientErrorCount : 7
    ProxyUsage          : Override
    ProxyList           : {http://1602proxy.xxxxxxxxxxx:8080/}
    ProxyBypassList     : {172.20.*, *.xxxxx.xxx.ca, 10.*, <local>}
    3. I created a scheduled task for batch execution (c:\windows\system32\bitsadmin.exe /reset /allusers ) and run under System\nt authority. After running the task and verifying  again:AllUsers | f, I got no files listed.
    So I did hope that the problem was fixed... But not. The same error code.
    4, Next I cleaned completely Download and DataStore folders (in Software Distribution).Stoped/Started services and restarted
    computer. So no proxy is set. No abandoned updates... But the heck still gives the error.
    I am out of ideas. What else could be done?
    Thanks.
    &quot;When you hit a wrong note it's the next note that makes it good or bad&quot;. Miles Davis

    some additional info, that I didn't mention...
    The client computer is not AD member so it should connect straight to Microsoft
    Here is update log that present different error than in GUI.
    2014-07-30 21:35:56:695  984 adc Report WER Report sent: 7.6.7600.256 0x80072ee2 00000000-0000-0000-0000-000000000000 Scan 101 Unmanaged
    2014-07-30 21:35:56:695  984 adc Report CWERReporter finishing event handling. (00000000)
    2014-07-31 04:01:49:575 1240 4e8 Misc ===========  Logging initialized (build: 7.6.7600.256, tz: -0400)  ===========
    2014-07-31 04:01:49:575 1240 4e8 Misc   = Process: c:\Program Files\Microsoft Security Client\MpCmdRun.exe
    2014-07-31 04:01:49:575 1240 4e8 Misc   = Module: C:\Windows\system32\wuapi.dll
    2014-07-31 04:01:49:575 1240 4e8 COMAPI -------------
    2014-07-31 04:01:49:575 1240 4e8 COMAPI -- START --  COMAPI: Search [ClientId = Microsoft Security Essentials (EDB4FA23-53B8-4AFA-8C5D-99752CCA7094)]
    2014-07-31 04:01:49:575 1240 4e8 COMAPI ---------
    2014-07-31 04:01:49:575 1240 4e8 COMAPI <<-- SUBMITTED -- COMAPI: Search [ClientId = Microsoft Security Essentials (EDB4FA23-53B8-4AFA-8C5D-99752CCA7094)]
    2014-07-31 04:01:49:575  984 9e0 Agent *************
    2014-07-31 04:01:49:575  984 9e0 Agent ** START **  Agent: Finding updates [CallerId = Microsoft Security Essentials (EDB4FA23-53B8-4AFA-8C5D-99752CCA7094)]
    2014-07-31 04:01:49:575  984 9e0 Agent *********
    2014-07-31 04:01:49:575  984 9e0 Agent   * Online = Yes; Ignore download priority = No
    2014-07-31 04:01:49:575  984 9e0 Agent   * Criteria = "(IsInstalled = 0 and IsHidden = 0 and CategoryIDs contains '6b9e8b26-8f50-44b9-94c6-7846084383ec' and CategoryIDs contains 'e0789628-ce08-4437-be74-2495b842f43b')"
    2014-07-31 04:01:49:575  984 9e0 Agent   * ServiceID = {7971F918-A847-4430-9279-4A52D1EFE18D} Third party service
    2014-07-31 04:01:49:575  984 9e0 Agent   * Search Scope = {Machine}
    2014-07-31 04:01:49:575  984 9e0 Misc Validating signature for C:\Windows\SoftwareDistribution\WuRedir\9482F4B4-E343-43B6-B170-9A65BC822C77\muv4wuredir.cab:
    2014-07-31 04:01:49:606  984 9e0 Misc  Microsoft signed: Yes
    2014-07-31 04:02:32:132  984 9e0 Misc WARNING: Send failed with hr = 80072ee2.
    2014-07-31 04:02:32:132  984 9e0 Misc WARNING: SendRequest failed with hr = 80072ee2. Proxy List used: <(null)> Bypass List used : <(null)> Auth Schemes used : <>
    2014-07-31 04:02:32:132  984 9e0 Misc WARNING: WinHttp: SendRequestUsingProxy failed for <http://download.windowsupdate.com/v9/1/windowsupdate/redir/muv4wuredir.cab>.
    error 0x80072ee2
    2014-07-31 04:02:32:132  984 9e0 Misc WARNING: WinHttp: SendRequestToServerForFileInformation MakeRequest failed. error 0x80072ee2
    2014-07-31 04:02:32:132  984 9e0 Misc WARNING: WinHttp: SendRequestToServerForFileInformation failed with 0x80072ee2
    2014-07-31 04:02:32:132  984 9e0 Misc WARNING: WinHttp: ShouldFileBeDownloaded failed with 0x80072ee2
    2014-07-31 04:03:14:533  984 9e0 Misc WARNING: Send failed with hr = 80072ee2.
    2014-07-31 04:03:14:533  984 9e0 Misc WARNING: SendRequest failed with hr = 80072ee2. Proxy List used: <(null)> Bypass List used : <(null)> Auth Schemes used : <>
    2014-07-31 04:03:14:533  984 9e0 Misc WARNING: WinHttp: SendRequestUsingProxy failed for <http://download.windowsupdate.com/v9/1/windowsupdate/redir/muv4wuredir.cab>.
    error 0x80072ee2
    2014-07-31 04:03:14:533  984 9e0 Misc WARNING: WinHttp: SendRequestToServerForFileInformation MakeRequest failed. error 0x80072ee2
    2014-07-31 04:03:14:533  984 9e0 Misc WARNING: WinHttp: SendRequestToServerForFileInformation failed with 0x80072ee2
    2014-07-31 04:03:14:533  984 9e0 Misc WARNING: WinHttp: ShouldFileBeDownloaded failed with 0x80072ee2
    2014-07-31 04:03:56:949  984 9e0 Misc WARNING: Send failed with hr = 80072ee2.
    2014-07-31 04:03:56:949  984 9e0 Misc WARNING: SendRequest failed with hr = 80072ee2. Proxy List used: <(null)> Bypass List used : <(null)> Auth Schemes used : <>
    2014-07-31 04:03:56:949  984 9e0 Misc WARNING: WinHttp: SendRequestUsingProxy failed for <http://download.windowsupdate.com/v9/1/windowsupdate/redir/muv4wuredir.cab>.
    error 0x80072ee2
    2014-07-31 04:03:56:949  984 9e0 Misc WARNING: WinHttp: SendRequestToServerForFileInformation MakeRequest failed. error 0x80072ee2
    2014-07-31 04:03:56:949  984 9e0 Misc WARNING: WinHttp: SendRequestToServerForFileInformation failed with 0x80072ee2
    2014-07-31 04:03:56:949  984 9e0 Misc WARNING: WinHttp: ShouldFileBeDownloaded failed with 0x80072ee2
    2014-07-31 04:04:39:350  984 9e0 Misc WARNING: Send failed with hr = 80072ee2.
    2014-07-31 04:04:39:350  984 9e0 Misc WARNING: SendRequest failed with hr = 80072ee2. Proxy List used: <(null)> Bypass List used : <(null)> Auth Schemes used : <>
    2014-07-31 04:04:39:350  984 9e0 Misc WARNING: WinHttp: SendRequestUsingProxy failed for <http://download.windowsupdate.com/v9/1/windowsupdate/redir/muv4wuredir.cab>.
    error 0x80072ee2
    2014-07-31 04:04:39:350  984 9e0 Misc WARNING: WinHttp: SendRequestToServerForFileInformation MakeRequest failed. error 0x80072ee2
    2014-07-31 04:04:39:350  984 9e0 Misc WARNING: WinHttp: SendRequestToServerForFileInformation failed with 0x80072ee2
    2014-07-31 04:04:39:350  984 9e0 Misc WARNING: WinHttp: ShouldFileBeDownloaded failed with 0x80072ee2
    2014-07-31 04:04:39:350  984 9e0 Misc WARNING: DownloadFileInternal failed for
    http://download.windowsupdate.com/v9/1/windowsupdate/redir/muv4wuredir.cab: error 0x80072ee2
    2014-07-31 04:04:39:350  984 9e0 Misc Validating signature for C:\Windows\SoftwareDistribution\WuRedir\9482F4B4-E343-43B6-B170-9A65BC822C77\muv4wuredir.cab:
    2014-07-31 04:04:39:350  984 9e0 Misc  Microsoft signed: Yes
    2014-07-31 04:05:21:751  984 9e0 Misc WARNING: Send failed with hr = 80072ee2.
    2014-07-31 04:05:21:751  984 9e0 Misc WARNING: SendRequest failed with hr = 80072ee2. Proxy List used: <(null)> Bypass List used : <(null)> Auth Schemes used : <>
    2014-07-31 04:05:21:751  984 9e0 Misc WARNING: WinHttp: SendRequestUsingProxy failed for <http://download.microsoft.com/v9/1/windowsupdate/redir/muv4wuredir.cab>.
    error 0x80072ee2
    2014-07-31 04:05:21:751  984 9e0 Misc WARNING: WinHttp: SendRequestToServerForFileInformation MakeRequest failed. error 0x80072ee2
    2014-07-31 04:05:21:751  984 9e0 Misc WARNING: WinHttp: SendRequestToServerForFileInformation failed with 0x80072ee2
    2014-07-31 04:05:21:751  984 9e0 Misc WARNING: WinHttp: ShouldFileBeDownloaded failed with 0x80072ee2
    2014-07-31 04:06:04:136  984 9e0 Misc WARNING: Send failed with hr = 80072ee2.
    2014-07-31 04:06:04:136  984 9e0 Misc WARNING: SendRequest failed with hr = 80072ee2. Proxy List used: <(null)> Bypass List used : <(null)> Auth Schemes used : <>
    2014-07-31 04:06:04:136  984 9e0 Misc WARNING: WinHttp: SendRequestUsingProxy failed for <http://download.microsoft.com/v9/1/windowsupdate/redir/muv4wuredir.cab>.
    error 0x80072ee2
    2014-07-31 04:06:04:136  984 9e0 Misc WARNING: WinHttp: SendRequestToServerForFileInformation MakeRequest failed. error 0x80072ee2
    2014-07-31 04:06:04:136  984 9e0 Misc WARNING: WinHttp: SendRequestToServerForFileInformation failed with 0x80072ee2
    2014-07-31 04:06:04:136  984 9e0 Misc WARNING: WinHttp: ShouldFileBeDownloaded failed with 0x80072ee2
    2014-07-31 04:06:46:522  984 9e0 Misc WARNING: Send failed with hr = 80072ee2.
    2014-07-31 04:06:46:522  984 9e0 Misc WARNING: SendRequest failed with hr = 80072ee2. Proxy List used: <(null)> Bypass List used : <(null)> Auth Schemes used : <>
    2014-07-31 04:06:46:522  984 9e0 Misc WARNING: WinHttp: SendRequestUsingProxy failed for <http://download.microsoft.com/v9/1/windowsupdate/redir/muv4wuredir.cab>.
    error 0x80072ee2
    2014-07-31 04:06:46:522  984 9e0 Misc WARNING: WinHttp: SendRequestToServerForFileInformation MakeRequest failed. error 0x80072ee2
    2014-07-31 04:06:46:522  984 9e0 Misc WARNING: WinHttp: SendRequestToServerForFileInformation failed with 0x80072ee2
    2014-07-31 04:06:46:522  984 9e0 Misc WARNING: WinHttp: ShouldFileBeDownloaded failed with 0x80072ee2
    2014-07-31 04:07:28:923  984 9e0 Misc WARNING: Send failed with hr = 80072ee2.
    2014-07-31 04:07:28:923  984 9e0 Misc WARNING: SendRequest failed with hr = 80072ee2. Proxy List used: <(null)> Bypass List used : <(null)> Auth Schemes used : <>
    2014-07-31 04:07:28:923  984 9e0 Misc WARNING: WinHttp: SendRequestUsingProxy failed for <http://download.microsoft.com/v9/1/windowsupdate/redir/muv4wuredir.cab>.
    error 0x80072ee2
    2014-07-31 04:07:28:923  984 9e0 Misc WARNING: WinHttp: SendRequestToServerForFileInformation MakeRequest failed. error 0x80072ee2
    2014-07-31 04:07:28:923  984 9e0 Misc WARNING: WinHttp: SendRequestToServerForFileInformation failed with 0x80072ee2
    2014-07-31 04:07:28:923  984 9e0 Misc WARNING: WinHttp: ShouldFileBeDownloaded failed with 0x80072ee2
    2014-07-31 04:07:28:923  984 9e0 Misc WARNING: DownloadFileInternal failed for
    http://download.microsoft.com/v9/1/windowsupdate/redir/muv4wuredir.cab: error 0x80072ee2
    2014-07-31 04:07:28:923  984 9e0 Misc Validating signature for C:\Windows\SoftwareDistribution\WuRedir\9482F4B4-E343-43B6-B170-9A65BC822C77\muv4wuredir.cab:
    2014-07-31 04:07:28:923  984 9e0 Misc  Microsoft signed: Yes
    2014-07-31 04:08:11:339  984 9e0 Misc WARNING: Send failed with hr = 80072ee2.
    2014-07-31 04:08:11:339  984 9e0 Misc WARNING: SendRequest failed with hr = 80072ee2. Proxy List used: <(null)> Bypass List used : <(null)> Auth Schemes used : <>
    2014-07-31 04:08:11:339  984 9e0 Misc WARNING: WinHttp: SendRequestUsingProxy failed for <http://www.update.microsoft.com/v9/1/windowsupdate/redir/muv4wuredir.cab>.
    error 0x80072ee2
    2014-07-31 04:08:11:339  984 9e0 Misc WARNING: WinHttp: SendRequestToServerForFileInformation MakeRequest failed. error 0x80072ee2
    2014-07-31 04:08:11:339  984 9e0 Misc WARNING: WinHttp: SendRequestToServerForFileInformation failed with 0x80072ee2
    2014-07-31 04:08:11:339  984 9e0 Misc WARNING: WinHttp: ShouldFileBeDownloaded failed with 0x80072ee2
    2014-07-31 04:08:53:740  984 9e0 Misc WARNING: Send failed with hr = 80072ee2.
    2014-07-31 04:08:53:740  984 9e0 Misc WARNING: SendRequest failed with hr = 80072ee2. Proxy List used: <(null)> Bypass List used : <(null)> Auth Schemes used : <>
    2014-07-31 04:08:53:740  984 9e0 Misc WARNING: WinHttp: SendRequestUsingProxy failed for <http://www.update.microsoft.com/v9/1/windowsupdate/redir/muv4wuredir.cab>.
    error 0x80072ee2
    2014-07-31 04:08:53:740  984 9e0 Misc WARNING: WinHttp: SendRequestToServerForFileInformation MakeRequest failed. error 0x80072ee2
    2014-07-31 04:08:53:740  984 9e0 Misc WARNING: WinHttp: SendRequestToServerForFileInformation failed with 0x80072ee2
    2014-07-31 04:08:53:740  984 9e0 Misc WARNING: WinHttp: ShouldFileBeDownloaded failed with 0x80072ee2
    2014-07-31 04:09:36:141  984 9e0 Misc WARNING: Send failed with hr = 80072ee2.
    2014-07-31 04:09:36:141  984 9e0 Misc WARNING: SendRequest failed with hr = 80072ee2. Proxy List used: <(null)> Bypass List used : <(null)> Auth Schemes used : <>
    2014-07-31 04:09:36:141  984 9e0 Misc WARNING: WinHttp: SendRequestUsingProxy failed for <http://www.update.microsoft.com/v9/1/windowsupdate/redir/muv4wuredir.cab>.
    error 0x80072ee2
    2014-07-31 04:09:36:141  984 9e0 Misc WARNING: WinHttp: SendRequestToServerForFileInformation MakeRequest failed. error 0x80072ee2
    2014-07-31 04:09:36:141  984 9e0 Misc WARNING: WinHttp: SendRequestToServerForFileInformation failed with 0x80072ee2
    2014-07-31 04:09:36:141  984 9e0 Misc WARNING: WinHttp: ShouldFileBeDownloaded failed with 0x80072ee2
    2014-07-31 04:10:18:526  984 9e0 Misc WARNING: Send failed with hr = 80072ee2.
    2014-07-31 04:10:18:526  984 9e0 Misc WARNING: SendRequest failed with hr = 80072ee2. Proxy List used: <(null)> Bypass List used : <(null)> Auth Schemes used : <>
    2014-07-31 04:10:18:526  984 9e0 Misc WARNING: WinHttp: SendRequestUsingProxy failed for <http://www.update.microsoft.com/v9/1/windowsupdate/redir/muv4wuredir.cab>.
    error 0x80072ee2
    2014-07-31 04:10:18:526  984 9e0 Misc WARNING: WinHttp: SendRequestToServerForFileInformation MakeRequest failed. error 0x80072ee2
    2014-07-31 04:10:18:526  984 9e0 Misc WARNING: WinHttp: SendRequestToServerForFileInformation failed with 0x80072ee2
    2014-07-31 04:10:18:526  984 9e0 Misc WARNING: WinHttp: ShouldFileBeDownloaded failed with 0x80072ee2
    2014-07-31 04:10:18:526  984 9e0 Misc WARNING: DownloadFileInternal failed for
    http://www.update.microsoft.com/v9/1/windowsupdate/redir/muv4wuredir.cab: error 0x80072ee2
    2014-07-31 04:10:18:526  984 9e0 Agent WARNING: Failed to obtain the authorization cab URLs, hr=0x80072ee2
    2014-07-31 04:10:18:526  984 9e0 Agent   * WARNING: Online service registration/service ID resolution failed, hr=0x80072EE2
    2014-07-31 04:10:18:573  984 9e0 Agent   * WARNING: Exit code = 0x80072EE2
    2014-07-31 04:10:18:573  984 9e0 Agent *********
    2014-07-31 04:10:18:573  984 9e0 Agent **  END  **  Agent: Finding updates [CallerId = Microsoft Security Essentials (EDB4FA23-53B8-4AFA-8C5D-99752CCA7094)]
    2014-07-31 04:10:18:573  984 9e0 Agent *************
    2014-07-31 04:10:18:573  984 9e0 Agent WARNING: WU client failed Searching for update with error 0x80072ee2
    2014-07-31 04:10:18:573 1240 d28 COMAPI >>--  RESUMED  -- COMAPI: Search [ClientId = Microsoft Security Essentials (EDB4FA23-53B8-4AFA-8C5D-99752CCA7094)]
    2014-07-31 04:10:18:573 1240 d28 COMAPI   - Updates found = 0
    2014-07-31 04:10:18:573 1240 d28 COMAPI   - WARNING: Exit code = 0x00000000, Result code = 0x80072EE2
    2014-07-31 04:10:18:573 1240 d28 COMAPI ---------
    2014-07-31 04:10:18:573 1240 d28 COMAPI --  END  --  COMAPI: Search [ClientId = Microsoft Security Essentials (EDB4FA23-53B8-4AFA-8C5D-99752CCA7094)]
    2014-07-31 04:10:18:573 1240 d28 COMAPI -------------
    2014-07-31 04:10:18:573 1240 680 COMAPI WARNING: Operation failed due to earlier error, hr=80072EE2
    2014-07-31 04:10:18:573 1240 680 COMAPI FATAL: Unable to complete asynchronous search. (hr=80072EE2)
    2014-07-31 04:10:23:580  984 9e0 Report REPORT EVENT: {B6E51E79-C6D0-4ED4-A3CC-7ADE0DE42C33} 2014-07-31 04:10:18:573-0400 1 148 101 {00000000-0000-0000-0000-000000000000} 0 80072ee2 Microsoft
    Security Essentials ( Failure Software Synchronization Windows Update Client failed to detect with error 0x80072ee2.
    2014-07-31 04:10:23:580  984 9e0 Report CWERReporter::HandleEvents - WER report upload completed with status 0x8
    2014-07-31 04:10:23:580  984 9e0 Report WER Report sent: 7.6.7600.256 0x80072ee2 00000000-0000-0000-0000-000000000000 Scan 101 Unmanaged
    2014-07-31 04:10:23:580  984 9e0 Report CWERReporter finishing event handling. (00000000)
    &quot;When you hit a wrong note it's the next note that makes it good or bad&quot;. Miles Davis

  • HT1338 What's the software update code

    whats the code to download IOS 7.1.2 software

    The Code Is:
    Tap Settings.
    Tap General.
    Tap Software Update.
    You can then update your software.

  • Insert + Update code in 11g taking WAY longer than 9 ?

    Hi guys
    Hoping to get a few suggestions as to what might be causing a problem I'm having.
    I've got a routine in a form that was previously running against a version 9 database, and is now running against an 11g database.
    The routine has a series of cursor loops which results in a number of inserts and updates on the database.
    I have in this routine a call to a procedure which inserts a record into a logging table, with the time it is called. With this I can gauge how long the routine is taking.
    On the version 9 database, the log of inserts is as follows :
    After x rows, time taken (mins, secs)
    1000 rows - 1.04
    4000 rows - 4.38
    9000 rows - 9.43
    13000 rows - 14.01
    18000 rows - 15.58
    So, as a very approximate value, 1000 rows a minute consistantly through to the end at 18000.
    The version 11 database is an import of the version 9 database. so has all the same constraints, indexes, triggers etc.
    The code disables foreign key constraints before executing, it doesnt drop the indexes.
    On the version 11 database, the log of inserts is as follows :
    1000 rows - 0.30
    4000 rows - 3.58
    9000 rows - 19.58
    13000 rows - 41.46
    18000 rows - 80.45
    So rather than staying at a rough 1000 rows per 1 minute time, as more rows are inserted, the time to complete is going up and up and up.
    This would point at indexing maybe? But since there is only 1 index on the tables being inserted into, which is the same on the 9 and 11 database, this ought not to be the case.
    Can anyone suggest why the version 11 database is taking so much longer, and why the time to process is increasing rather than staying constant throughout.
    I'm at a loss at what to look for now.
    Thanks a lot
    Scott

    Scott Hillier wrote:
    The code has to gather data from several tables, perform some fairly complex logic on it, building up record structures before inserting into a number of tables and updating several others. None of which can be done with a simple merge statement.
    It has to be done using cursors, both implicit and explicit to retrieve the data first."Has to" is a bit presumptive. SQL has got very powerful constructs and features that can (pretty much) do anything you require. It may be complex SQL but it will process all the rows of data in one go rather than doing continuous context switching.
    Here's a basic example of the time difference between running stuff as a single SQL and context switching...
    [code]
    SQL> ed
    Wrote file afiedt.buf
      1  declare
      2    v_sysdate DATE;
      3  begin
      4    v_sysdate := SYSDATE;
      5    INSERT INTO mytable SELECT rownum FROM DUAL CONNECT BY ROWNUM <= 1000000;
      6    DBMS_OUTPUT.PUT_LINE('Single Transaction: Time Taken: '||ROUND(((SYSDATE-v_sysdate)*(24*60*60)),0));
      7    EXECUTE IMMEDIATE 'TRUNCATE TABLE mytable';
      8    v_sysdate := SYSDATE;
      9    FOR i IN 1..1000000
    10    LOOP
    11      INSERT INTO mytable (x) VALUES (i);
    12    END LOOP;
    13    DBMS_OUTPUT.PUT_LINE('Multi Transaction: Time Taken: '||ROUND(((SYSDATE-v_sysdate)*(24*60*60)),0));
    14    EXECUTE IMMEDIATE 'TRUNCATE TABLE mytable';
    15* end;
    SQL> /
    Single Transaction: Time Taken: 1
    Multi Transaction: Time Taken: 37
    PL/SQL procedure successfully completed.
    SQL>
    [/code]One hell of a difference, and it can get worse depending on how many switches are done in a loop.
    Theres no commit until the end.That's good.
    So, feel free to suggest how I go about gathering data to build up the various records without using cursors.Without knowing your structures, data, requirements etc. how can we tell, apart from to say that maximising SQL and minimising PL/SQL will improve performance.
    Even if you do - it still wouldnt explain why tuned code which runs in 18 minutes on one box is running at 90 minutes on another.It could be a configuration factor of the database, but equally it could be a number of other factors.
    Unless you provide comparative explain plans for queries etc. then how can we tell.

  • Issues with updated code and cfobject

    I'm having a problem with a file that creates a <cfobject
    component>. When I make any changes to the code that is calling
    the component methods my page won't reflect the changes. If I make
    changes to the page outside of the method calls it shows up fine.
    Here's some simplified code:

    It appears tha onec yu start stetting up an account and enter tow young of an agg yu can't go back and change the age.  Contact iTunes:
    Apple - Support - iTunes - Contact Us
    You can also tyr just quited setting up the account and try later.
    To reset the Retrictions passcode yu have to restore the iPod to factory defaults/new iPod. See the restoring topic of:
    iTunes: Backing up, updating, and restoring your iPhone, iPad, or iPod touch software

  • OTA Update - code 401

    I was notified that today's Thunderbolt software update to version 605.5 was available for download. I accidentally pushed back instead of OK & now the update is not available & under status, it says that I rejected the update with code 401. I have turned the phone off & on, also removed the battery & turned back on & I still have the same status with code 401. Any assistance will be appreciated on how to reverse the rejection & be able to receive the update. I did initially get the larger update, this is just the smaller update from 605.3 to 605.5. Thank you.

    You may need to contact CS and have them push the update again to the device, I am guessing since you denied update it added you to the system not to recieve it... They may be able to take care of you on this situation..
    Another thing the may be a miner update but it fixed the security issue reported earlier and fixed the voice mail notification..  Worth having..

  • Pl/sql help on simple update code...

    hello all,
    I have 2 procedure..one calling another...first the small proc..
    just update emp table with sal..
    CREATE OR REPLACE procedure SCOTT.dsal(p_empno in number)
    as
    begin
    update emp
    set sal=sal*2
    where empno = p_empno;
    commit;
    end;
    that works fine...
    and now the test proc(which show invalid)..which call this prodedure(dsal)
    CREATE OR REPLACE PROCEDURE SCOTT.TEST AS
    DECLARE
    P_EMPNO NUMBER;
    BEGIN
    P_EMPNO := 7369;
    SCOTT.DSAL ( P_EMPNO );
    COMMIT;
    END;
    when i create test proc..i get compiled but with compilcation errors
    ERROR line 3, col 9, ending_line 3, ending_col 14, Found 'NUMBER', Expecting: ( . @ -or- % -or- .. := DEFAULT NOT NULL -or- ;
    ..i am new to pl/sql and testing diff things out...i want to
    use the dbms_job to execute proceudre called test..so that it
    updates the sal like every once a day or so...what am i doing wrong.
    also are there any tools that can suggest me what is wrong with
    the code and how can it be fixed...besides the error that comes out
    and debug.. ??

    OKAY..THAT GOT WORKING FINE...NOW WHEN I TRY TO SCHEDULE THE JOB THRU DBMS_JOB I GET BELOW ERRORS...HERE IS HOW I AM SUBIMMITING MY JOB
    DECLARE
    X NUMBER
    BEGIN
    SYS.DBMS_JOB.SUBMIT
    job => X
    ,what => 'EXECUTE SCOTT.TEST;'
    ,next_date => to_date('02/19/2009 11:38:52','mm/dd/yyyy hh24:mi:ss')
    ,interval => 'SYSDATE+30/1440 '
    ,no_parse => FALSE
    SYS.DBMS_OUTPUT.PUT_LINE('Job Number is: ' || to_char(x));
    COMMIT;
    END;
    Error at line 1
    ORA-06550: line 3, column 1:
    PLS-00103: Encountered the symbol "BEGIN" when expecting one of the following:
    := . ( @ % ; not null range default character
    The symbol ";" was substituted for "BEGIN" to continue.

  • Split view pausing when updating code

    HI, I love split view, can live without it, but in the latest version 5 and up, it seems when i change the code in code view side, the wysiwyg side pauses for a few seconds to update what i've changed, almost flashes asif reloading, maybe it is, but it seemed to do this more seemlessly, I could go back and forth and updates were instant. I am not in live view, that takes even longer when changes to the code view are done.
    Just curious is there are ways to speed this up, or anything anyone has run into that causes the split view window to pause when changes are made.
    It only happens, in split view, and i update something in code view, even just text <p> and when i click back to the wyysiwyg side, it pauses for a few seconds before reflecting the change.

    Yes, same scenario, when I click back to design view, it usually updates quickly, but now it takes 3-5 seconds before it refreshes. It's noticeable, and hard to work with when I am updating alot of content peices,
    I've tried other sites thinking maybe it has something to do with related files or something, but same thing, Its noticeable, but I can't seem to figure out when it started or why. Been using split view since it was available, always quite fast... I don;t have any data connections, or testing servers setup that could cause lag. I hope its a simple toggle of something I inadvertently toggled? 

  • CC will not update Code 2 what is the problem ?

    I am trying to update CC and getting error Code 2: - Contact support - what is the problem with the download ....??

    Without any proper system info nobody can tell you anything and it would help to have more info. Click on the "Details" link that comes up with the warning.
    Mylenium

  • Why is my update code running fine yet not actually updating the table?

    When I step through this, it runs fine - the call to Commit executes without dropping into the Rollback block. Yet, the grid (and the underlying table) are not updated.
    private void buttonUpdate_Click(object sender, EventArgs e)
    const int TICKETID_COLUMN = 0;
    String _ticketID = Convert.ToString(dataGridView1.CurrentRow.Cells[TICKETID_COLUMN].Value);
    UpdateRecord(
    _ticketID,
    textBoxTicketSource.Text,
    textBoxContactEmail.Text,
    textBoxAboutLLSID.Text,
    textBoxCategoryID.Text);
    private void UpdateRecord(string ATicketID, string ATicketSource, string AContactsEmail, string AAboutLLSID, string ACategoryID)
    try
    con = new OracleConnection(oradb);
    con.Open();
    String update = @"UPDATE LLS.INTERPRETERTICKETS
    SET TICKETSOURCE = :p_TICKETSOURCE,
    ABOUTLLSID = :p_ABOUTLLSID,
    CATEGORYID = :p_CATEGORYID,
    CONTACTEMAIL = :p_CONTACTEMAIL
    WHERE TICKETID = :p_TICKETID";
    cmd = new OracleCommand(update, con);
    cmd.CommandType = CommandType.Text;
    // TICKETSOURCE, ABOUTLLSID, CATEGORYID, CONTACTEMAIL, TICKETID
    OracleParameter p_TICKETSOURCE =
    new OracleParameter("p_TICKETSOURCE", OracleDbType.NVarchar2, ParameterDirection.Input);
    p_TICKETSOURCE.Size = 20;
    p_TICKETSOURCE.Value = ATicketSource;
    cmd.Parameters.Add(p_TICKETSOURCE);
    OracleParameter p_ABOUTLLSID =
    new OracleParameter("p_ABOUTLLSID", OracleDbType.Int32, ParameterDirection.Input);
    p_ABOUTLLSID.Value = AAboutLLSID;
    cmd.Parameters.Add(p_ABOUTLLSID);
    OracleParameter p_CATEGORYID =
    new OracleParameter("p_CATEGORYID", OracleDbType.Int32, ParameterDirection.Input);
    p_CATEGORYID.Value = ACategoryID;
    cmd.Parameters.Add(p_CATEGORYID);
    OracleParameter p_CONTACTEMAIL =
    new OracleParameter("p_CONTACTEMAIL", OracleDbType.NVarchar2, ParameterDirection.Input);
    p_CONTACTEMAIL.Size = 100;
    p_CONTACTEMAIL.Value = AContactsEmail;
    cmd.Parameters.Add(p_CONTACTEMAIL);
    OracleParameter p_TICKETID =
    new OracleParameter("p_TICKETID", OracleDbType.NVarchar2, ParameterDirection.Input);
    p_TICKETID.Size = 20;
    p_TICKETID.Value = ATicketID;
    cmd.Parameters.Add(p_TICKETID);
    try
    using (var transaction = con.BeginTransaction())
    cmd.Transaction = transaction;
    cmd.ExecuteNonQuery();
    transaction.Commit();
    catch (Exception ex)
    ot.Rollback();
    throw;
    MessageBox.Show("Apparent success");
    finally
    con.Close();
    con.Dispose();
    dataGridView1.Refresh();
    }

    It's hard to say with the limited information available. Nothing jumps out at me as being "wrong" in your code.
    What is the Records Affected return value from cmd.ExecuteQuery?
    I tested this and it worked fine for me:
    SQL
    ========
    SQL> create table interpretertickets (ticketsource nvarchar2(100),
      2  aboutllsid number,
      3  categoryid number,
      4  contactemail nvarchar2(100),
      5  ticketid nvarchar2(100));
    Table created.
    SQL>
    SQL> insert into interpretertickets values(null,null,null,null,1);
    1 row created.
    SQL> commit;
    Commit complete.
    /////////////// CODE //////////////////////
            private void button1_Click(object sender, EventArgs e)
                string constr = "data source=orcl;user id=scott;password=tiger";
                OracleConnection con = new OracleConnection(constr);
                con.Open();
                String update = @"UPDATE INTERPRETERTICKETS
    SET TICKETSOURCE = :p_TICKETSOURCE,
    ABOUTLLSID = :p_ABOUTLLSID,
    CATEGORYID = :p_CATEGORYID,
    CONTACTEMAIL = :p_CONTACTEMAIL
    WHERE TICKETID = :p_TICKETID";
                OracleCommand cmd = new OracleCommand(update, con);
                cmd.CommandType = CommandType.Text;
                // TICKETSOURCE, ABOUTLLSID, CATEGORYID, CONTACTEMAIL, TICKETID
                OracleParameter p_TICKETSOURCE =
                new OracleParameter("p_TICKETSOURCE", OracleDbType.NVarchar2, ParameterDirection.Input);
                p_TICKETSOURCE.Size = 20;
                p_TICKETSOURCE.Value = "newval1";
                cmd.Parameters.Add(p_TICKETSOURCE);
                OracleParameter p_ABOUTLLSID =
                new OracleParameter("p_ABOUTLLSID", OracleDbType.Int32, ParameterDirection.Input);
                p_ABOUTLLSID.Value = 123;
                cmd.Parameters.Add(p_ABOUTLLSID);
                OracleParameter p_CATEGORYID =
                new OracleParameter("p_CATEGORYID", OracleDbType.Int32, ParameterDirection.Input);
                p_CATEGORYID.Value = 456;
                cmd.Parameters.Add(p_CATEGORYID);
                OracleParameter p_CONTACTEMAIL =
                new OracleParameter("p_CONTACTEMAIL", OracleDbType.NVarchar2, ParameterDirection.Input);
                p_CONTACTEMAIL.Size = 100;
                p_CONTACTEMAIL.Value = "[email protected]";
                cmd.Parameters.Add(p_CONTACTEMAIL);
                OracleParameter p_TICKETID =
                new OracleParameter("p_TICKETID", OracleDbType.NVarchar2, ParameterDirection.Input);
                p_TICKETID.Size = 20;
                p_TICKETID.Value = 1;
                cmd.Parameters.Add(p_TICKETID);
                using (var transaction = con.BeginTransaction())
                    cmd.Transaction = transaction;
                    int recaff = cmd.ExecuteNonQuery();
                    MessageBox.Show("records affected: " + recaff);
                    transaction.Commit();
            }

Maybe you are looking for

  • Member of Target Group: Contact record updated

    We are creating a target group for a Campaign and several of the contacts had to be updated (changed Companies "Account" for instance) and the new data for that contact is not reflected on Members list, shows old data (old Company "Account"). Without

  • Converting to BLOB in AL32UTF8 destroys German Umlaut characters

    Test Case. Two database (A) NLS_CHARACTERSET= WE8MSWIN1252 (B) AL32UTF8 I have used the following function to convert CLOB data to BLOB create or replace function clob_to_blob (p_clob_in in clob) return blob is v_blob blob; v_offset integer; v_buffer

  • ISE Logging to a syslog (user login 802.1x)

    Dear community, I trying to figure out how I can ensure the messages I get in the section Operations > Authentications goes to a syslog. I tried several severity and messages from Admin > Logging > Logging Categories But I'm not able to get when some

  • LaserJet CP1525nw says "Memory Low" and will not print

    I cannot get my HP LaserJet BP1525nw to print.  It says "memory low".  So when I click the OK button then it prints one page that says PCL XL Error and Error:  InsufficientMemory. How do I clear the memory?  And if I do clear it; how can I keep my wi

  • Disable V CAST Media Manager Web Pop Up?

    Hi, Every time I connect my Droid Incredible to my pc, my PC's web browser launches the V CAST Media Manager download page (http://products.verizonwireless.com/index.aspx?id=fnd_mediamanager_video). This is an big annoyance and I would really like to