User Profile

Collapse

Profile Sidebar

Collapse
bekets
bekets
Last Activity: Jan 11 '13, 08:40 AM
Joined: Oct 21 '12
Location:
  •  
  • Time
  • Show
  • Source
Clear All
new posts

  • bekets
    started a topic Transaction Log File growth

    Transaction Log File growth

    Hi Everyone,

    I'm running a delete statement to remove millions of records in a table on a live environment in full recovery mode.
    Because of the amount of transactions the delete is sure to create, I decided to run the operation in batches of 250000 records each. In order to control the size of the transaction log, I've also scheduled a job to backup the t-logs every 2 minutes.
    The problem I've noticed is that after deleting...
    See more | Go to post
    Last edited by NeoPa; Jan 10 '13, 10:34 PM. Reason: Added mandatory [CODE] tags.

  • bekets
    replied to How do you remove Namespaces in XMLs
    You can use the following function to remove all namespaces

    static XElement stripNS(XElemen t root)
    {
    return new XElement(
    root.Name.Local Name,
    root.HasElement s ?
    root.Elements() .Select(el => stripNS(el)) :
    (object)root.Va lue
    );
    }
    See more | Go to post

    Leave a comment:


  • bekets
    replied to How do you remove Namespaces in XMLs
    Hi Zmbd,

    I've formatted the code as requested.

    many thanks.
    See more | Go to post

    Leave a comment:


  • bekets
    started a topic How do you remove Namespaces in XMLs

    How do you remove Namespaces in XMLs

    Hi All,

    I need to remove all namespaces from xml file shown after c sharp code (also been attached).
    The problem is that I am getting the following error being returned by one of the functions

    {System.Xml.Xml Exception: The prefix '' cannot be redefined from '' to 'http://sample.response .power.core.com ' within the same start element tag.
    at System.Xml.XmlW ellFormedWriter .PushNamespaceE xplicit(String...
    See more | Go to post
    Last edited by zmbd; Oct 21 '12, 03:33 PM. Reason: Please format submitted code using the <CODE/> button.
No activity results to display
Show More
Working...