Recreate form library

Source: Internet
Author: User

If a problem occurs in the original form library, you need to re-create the form library to replace the original form library.

 

1. First copy all the forms and soft copies to the local hard disk.

 

2. Use powergrep to replace the header of the infopath form.

Name href. If these two attributes are used

 

3. Copy these replace files and upload them to the new form library.

 

4. Use statements to modify several fields, including folders, files, form creators, creation time, modifier, and modification time.

Update
Set
A. tp_author = B. tp_author,
A. tp_editor = B. tp_editor,
A. tp_modified = B. tp_modified,
A. tp_created = B. tp_created,
A. nvarchar1 = B. nvarchar1,
A. nvarchar2 = B. nvarchar2

From alluserdata A, temp B
Where
A. tp_dirname like n 'xxxx' ----> If the data volume is large, it can be updated step by step.

And a. tp_listid = 'e166fa95-48fc-45bf-9eec-5e75ec6aadf0'
And a. tp_dirname = B. tp_dirname ------> here, the temp tp_dirname is replaced in advance with the same name as the new form library.
And a. tp_leafname = B. tp_leafname
And a. tp_deletetransactionid = 0x

5. Add the secondary development originally performed in the old form library.

 

6. Delete the old form library from the secondary recycle bin.

The database size remains unchanged after deletion, and the database size needs to be reduced

Clear logs: backup log wss_content with no_log (Sybase statement: Dump transaction wss_content with no_log)

Shrink: DBCC shrinkdatabase (wss_database)

 

 

7. Create a full-text index again.

 

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.