Moving Content Databases across SharePoint SQL Server instances
By peter.stilgoe
1. First, reach the content databases management page from Central Admin site.
Select the database you want to move – rest of the demo shows moving WSS_Content_2 across two SQL Server instances.
2. Check the remove content database option. This just removes the content database from SharePoint activity, contents are safe in the source SQL server. Click OK.
3. Using SQL management studio, detach the database from the source SQL Server instance. In this case, source server is a named instance (simonsk-sql\second) in the same SQL server machine. In your deployment this can be the default instance on another SQL server machine.
4. Move the mdf and ldf files from the source server location to the targe server location.
5. Connect SQL Server management studio to the target server instance. In this case, the target server instance is the default SQL instance in the same machine.
6. Select the copied database files and attach to the target server
7. Go to Central admin page for managing content database and click add new content database. Type the name of the SQL Server (with instance if applicable), type the name of the database (in this case WSS_Content_2) and click OK.
With these 7 steps, the content database is transitioned from the source SQL server to the target SQL server. Note that the ChangeLog (that tracks all changes to the SharePoint content for a given window of time) is cleared as part of migrating a database between two SQL Server instances. This implies Search will need to reindex this content since the history associated with last Search watermark is cleared as part of this operation.
More From pstilgoe
How to hide voters responses from Sharepoint Surveys
By peter.stilgoe
Add the survey list to the web part pages as the ListView web part
Site Actions –> Edit Page –> Add a Web Part
Under Lists and Libraries, choose the survey list and add to the web part page
Now you get the ListView web part for the survey.
On the web part settings Edit –> Modify Shared Web Part
Under the Selected View —> Change the View to “Summary View”
Then provide the contributor-level permissions to the users, who want to participate in the survey
Now it won’t show the option for Graphical Responses for everyone it will just show the total number of responses.
If you want to get back old-view, just flip the view back to “Overview”
However the user could still click the title of the Survey & get access to the survey results that way, so to prevent this you need to edit your survey webpart & make the following changes to the settings –
View – Summary View (this should already be done from the steps above)
Toolbar Type – Summary Toolbar
Chrome Type – None
Now your users can vote & see the total number of votes overall but cannot see the number of responses for each answer.
More From pstilgoe
Your search cannot be completed because this site is not assigned to an indexer
By peter.stilgoe
If you get this error you probably havn’t assigned an indexer when creating the content Database
Go into :
SharePoint 3.0 Central Administration -> Application Management -> SharePoint Web Application Management -> Content databases -> Content Database used for the site > Set the Search Server
More From pstilgoe
How to remove personalize this page, My settings etc from WSS & MOSS 2007
By peter.stilgoe
If you want to hide certain menu items from the “Welcome” menu in a SharePoint site.
You can do the following:
1. Go to the following folder at the MOSS / WSS server:
C:\Program Files\Common Files\Microsoft Shared\Web Server Extensions\12\TEMPLATE\CONTROLTEMPLATES
2. Open file Welcome.ascx in the editor
3. Search for
Visible=”False”
For example:
Description=”<%$Resources:wss,personalactions_personalinformationdescription%>”
MenuGroupId=”100″
Sequence=”100″
ImageUrl=”/_layouts/images/menuprofile.gif”
UseShortId=”true”
Visible=”False”
/>
This will hide “MySettings” menu.
Be aware as you are modifying a sitewide template the changes you make will be reflected throughout the Sharepoint site.
More From pstilgoe
How to add Google Gadgets to Sharepoint sites
By peter.stilgoe
Go to the google gadgets site & find which one you want to use.
Then click the ‘add to your webpage’ button.
Make any customisations and click the “Get the code” button, then copy the code to your clipboard.
Now go to your SharePoint site and add new content editor web part to the page you want the gadget on.
Click the web part menu of the content editor web part and go to Modify shared web part.
In the tool pane click the source editor button and then paste the contents of your clipboard in the window that appears.
Click Save on the pop and then OK on the tool pane, all done, your Google Gadget should now be working in your Sharepoint site.
More From pstilgoe
Trade in web names worth millions
By peter.stilgoe
Speculators are the latest breed of dotcom entrepreneur, buying up website domain names – and making their fortune by dealing in them.
Neil Stanley goes to bed each night knowing he will wake up a little richer. All over the world, the clicks of computer mice are depositing a few more pounds into his account. His secret is that he was smart enough to ask: what’s in a name?
Stanley is a trader in domain names, the addresses of websites which commonly follow ‘www’ and end with ‘.com’ or ‘.co.uk’. Once a banker at Goldman Sachs, he now has a different portfolio of lucrative investments including bridalfashion.co.uk, onlinecareers.co.uk, schoolguide.co.uk, sendingflowers.co.uk and impotency.co.uk.
He is one of a growing band of cyber-speculators able to make a living from buying and selling domain names at a substantial profit. No effort or expertise in building websites is required. Instead, a PC with broadband connectivity and an eye for a popular generic domain is enough to draw traffic and unlock a fortune. Recently Stanley was involved in a deal which registered a domain name for almost nothing and sold it for $40,000 a few weeks later.
‘It’s amazing how many people go to the address bar and type in a generic name instead of going to Google,’ said the 44-year-old from Bath. ‘If you’ve got mortgages.co.uk, you’ve got a licence to print money. It’s an industry in its infancy and there’s a bit of a gold rush on at the moment. It’s amazing that the UK hasn’t really woken up to it yet.
‘The analogy is real estate. The internet got invented and all the land is being bought up. In 10 years’ time any word you can think of will be taken: all the real estate will be gone. If one day someone wants to build a skyscraper on it, you’ve made a fortune.’
There are about 140 million domain names worldwide. The 6.6 million with the ‘co.uk’ suffix, a total swelling by 140,000 per month, are registered with an organisation called Nominet. But most trading is done in a secondary market via specialist websites, such as whois.sc, which can show whether a name has already been taken, suggest close alternatives or offer a route to the existing owner in case they are willing to sell.
Stanley acquired kids.co.uk and is planning to make it a non-profit site for children, but leaves the majority of his domain names sitting idle, or ‘parked’. This means that they are hosted by a specialist website as a simple, customised template containing relevant adverts. Every time someone visits the page and clicks on one of the adverts, the name owner and the website share revenue.
‘Whenever I register or buy a domain name, the first thing I do is park it,’ said Stanley, who is writing a book on the subject. ‘Anyone who then types in that name will see the web page and, if they click on an ad, it generates money. I registered noworryloans.co.uk last autumn and it probably earns £10 a week on its own. My whole portfolio is bringing in hundreds of pounds every week without me touching it, and some people are creaming in thousands. My conviction is that this going to become mainstream because it’s so easy.’
Sedo, or ‘Search Engine for Domain Offers’, claims to have the world’s biggest database of names for sale, with more than 10.5 million listings. Its total sales in 2007 amounted to £37m. In Britain it has overseen the sale of sport.co.uk for £135,000 and mobile.co.uk for £120,000. Sedo also ‘parks’ more than 3 million domains and paid out £25m to customers last year.
Nora Nanayakkara, business development director of the company, said: ‘We’ve spoken to people who are now doing this as a full-time career. People are putting their kids through school on the money they make.’
Last month, cruises.co.uk set a British record when it fetched £560,000. But, America is one step ahead. Kevin Ham, dubbed ‘the most powerful dotcom mogul you’ve never heard of’, is estimated to have stockpiled 300,000 domains that generate $70m a year. He even struck a deal with the government of Cameroon so that when users mistakenly type ‘.cm’ instead of ‘.com’, he gets a slice of the cake.
The 10 most valuable domain names auctioned by Sedo
1 Vodka.com, $3m
2 Chinese.com, $1.1m
3 Website.com, $750,000
4 Telecom.com, $700,000
5 Annuity.com, $600,000
6 Gays.com, $500,000
7 Gibraltar.com, $360,000
8 Sport.co.uk, $265,000
9 Mobile.co.uk, $247,000
10 Fly.co.uk, $180,000
More From pstilgoe
Sharepoint content editor double spacing everything
By peter.stilgoe
The Sharepoint content editor gives you a double space everytime you press enter, if you just want a single space press Shift+Enter
More From pstilgoe
How to add left navigation bar when creating new Sharepoint webpages
By peter.stilgoe
Open the page you want the left hand navigation to appear on in a text editor or Sharepoint Designer & remove the following lines:
asp:Content ContentPlaceHolderId=”PlaceHolderLeftNavBar” runat=”server”>
asp:Content ContentPlaceHolderId=”PlaceHolderNavSpacer” runat=”server”>
Save the page & now you have the left hand navigation bar !
If you want to change this on all future webpart pages you will need to make the changes to the Web Part template files which are located here on your server:
\\YourServer\Program Files\Common Files\Microsoft Shared\web server extensions\12\TEMPLATE\1033\STS\DOCTEMP\SMARTPGS
The go through each template & delete the following lines:
asp:Content ContentPlaceHolderId=”PlaceHolderPageImage” runat=”server”>
asp:Content ContentPlaceHolderId=”PlaceHolderLeftNavBar” runat=”server”>
asp:Content ContentPlaceHolderId=”PlaceHolderNavSpacer” runat=”server”>
Now all future webpage parts created will have the quick launch bar on the left hand side.
More From pstilgoe
How to submit an InfoPath form to a Windows SharePoint Services document library
By peter.stilgoe
How to submit an InfoPath form to a Windows SharePoint Services document library
Article ID : 826993
Last Review : November 17, 2004
Revision : 2.0
Design your form data source and layout
Submit the form data to a SharePoint Services document library
Use script to submit the form data to a SharePoint Services document library in InfoPath 2003
Use the UI to submit the form data to a SharePoint Services document library in InfoPath 2003 Service Pack 1
Test your form
INTRODUCTION
In Microsoft Office InfoPath 2003, you cannot submit form data to a Microsoft Windows SharePoint Services document library directly. This article describes how to design a form template that uses script to submit form data to a Windows SharePoint Services document library.
In InfoPath 2003 Service Pack 1, you can submit the form data to a Windows SharePoint Services document library directly by using the UI. This article contains the steps that you have to use to do this.
MORE INFORMATION
Design your form data source and layout
1. Start InfoPath 2003. Design a new blank form.
2. In the Data Source task pane, add a data source to your form. To do this, follow these steps:a. Right-click myFields, and then click Add.
The Add Field or Group dialog box appears.
b. Type FirstName as the name of the field, and then click OK.
c. Repeat step a. Type MiddleInitial as the name of the field, and then click OK.
d. Repeat step a. Type LastName as the name of the field, and then click OK.
3. Add myFields to your form.
4. Click Section with Controls.
Submit the form data to a SharePoint Services document library
You can use script or the UI to submit the form data to the SharePoint Services document library.
Use script to submit the form data to a SharePoint Services document library in InfoPath 2003
1. On the Tools menu, click Submitting Forms.
The Submitting Forms dialog box appears.
2. In the Submitting Forms dialog box, click Enable Submit.
3. In the Submit box, click Submit Using Custom Script.
4. Click Open Microsoft Script Editor, and then click OK.
Microsoft Script Editor starts.
5. Modify the OnSubmitRequest event as follows.
Note You must change the value of the strURL variable to a valid URL in the code. The URL in the following code sample references a server that is named ServerName, a SharePoint site that is named SiteName, and a document library that is named DocumentLibraryName.function XDocument::OnSubmitRequest(eventObj)
{
// If the submit operation is successful, set
// eventObj.ReturnStatus = true.
var fSuccessful = false;
// Set the URL of the file that you want to submit here.
var strUrl = “http://ServerName/SiteName/DocumentLibraryName/testform.xml”;
try
{
// Create an xmlhttp object.
var oXmlHttp = new ActiveXObject(“MSXML2.XMLHTTP”);
// See whether the document with the same name already exists in the Windows SharePoint Services (WSS) document library.
oXmlHttp.Open(“HEAD”, strUrl, false);
oXmlHttp.Send();
// No document with the URL has been found. Continue to submit.
// If you must replace the original file, you must call
// oXmlHttp.Open(“DELETE”, strUrl, false) to delete the document
// in the WSS document library.
if (oXmlHttp.Status == 404)
{
// Put the document in the WSS document library.
oXmlHttp.Open(“PUT”, strUrl, false);
oXmlHttp.Send(XDocument.DOM.xml);
// A 200 status code or a 201 status code indicates that the form has been submitted successfully.
if (oXmlHttp.Status == 200 || oXmlHttp.Status == 201)
{
fSuccessful = true;
}
}
}
catch (ex){}
if (fSuccessful)
{
XDocument.UI.Alert(“Document submitted successfully.”);
eventObj.ReturnStatus = true;
}
else
{
eventObj.ReturnStatus = false;
}
}
6. Save the script. Close Script Editor.
7. Save your form template as SubmitToWSS.xsn.
Use the UI to submit the form data to a SharePoint Services document library in InfoPath 2003 Service Pack 1
1. On the Tools menu, click Submitting Forms.
The Submitting Forms dialog box appears.
2. In the Submitting Forms dialog box, click Enable Submit commands and buttons.
3. In the Submit to section, click SharePoint form library.
4. In the Submitting Forms dialog box, click Add.
The Data Connection Wizard starts.
5. Input your SharePoint Services form library link in the SharePoint form library box.
Your library link may look similar to the following:
http://ServerName/SiteName/DocumentLibraryName
6. Type the document name in the File name box.
You can use a document name such as TestForm.
Click Next.
7. In the Data Connection Wizard, click Finish.
8. In the Submitting Forms dialog box, Click OK.
9. Save your form template as “SubmitToWSS.xsn.”
Test your form
1. On the File menu, click Fill Out a Form.
2. In the Fill Out a Form task pane, click SubmitToWSS.
3. Complete the form.
4. On the File menu, click Submit.
If the form is submitted successfully, you receive a message that indicates this.
5. Quit InfoPath. If you are prompted to save your changes to the form, click No.
6. Start Microsoft Internet Explorer. Locate your document form library.
For example, your document form library may be http://ServerName/SiteName/DocumentLibraryName.
A new item that is named testform is in the document library.
7. Click testform.
The form that you submitted opens in InfoPath 2003.
How to uninstall Sharepoint templates
By peter.stilgoe
If you want to uninstall the templates you’ll have to use stsadm like this:
stsadm -o deletetemplate -title
To check if the templates are installed on the server use the following command:
stsadm -o enumtemplates
More From pstilgoe
SharePoint: How to display blog feed using XML Web Part?
By peter.stilgoe
See here for this excellent workaround to display RSS feeds in WSS 3.0 (MOSS 2007 comes with a webpart to do this as standard but WSS does not!)
More From pstilgoe
Sharepoint Cannot retrieve the URL specified in the XML Link property
By peter.stilgoe
“Cannot retrieve the URL specified in the XML Link property. For more assistance, contact your site administrator.”
If you press ‘Test Link’ a new window opens and correctly shows the feed.
The problem is the if the account the app pool is running under doesnt have permission to reach the feed, you can either cure this by adding this account to a Domain Everyone group or allowing anonymous access in the Central Administration > Application Management > Application Security > Authentication Providers section & then allowing anonymous access to the specific site / library part you are trying to display. You will also need to allow anonymous access to the blog you are trying to display the RSS feed from.
More From pstilgoe
How to rename your web application in Sharepoint Services & MOSS
By peter.stilgoe
Syntax:
stsadm -o renameweb -url -newname
Example:
Stsadm -o renameweb -url http://localhost/oldname -newname newname
The above command will rename the web application from oldname to the newname.
More From pstilgoe
‘Edit Document’ requires a Windows SharePoint Services-compatible application and Microsoft Internet Explorer 5.0 or greater.
By peter.stilgoe
Error: PC gets this error when trying to edit a working file –
When you try to edit a Microsoft Office document that is stored in a document library of a Microsoft Windows SharePoint Services Web site, you may receive the following error message:
‘Edit Document’ requires a Windows SharePoint Services-compatible application and Microsoft Internet Explorer 5.0 or greater.
For example, you experience these symptoms if you click a Microsoft Excel document in the document library, and then click Edit in Microsoft Office Excel.
It seems its being caused by components of different versions of Office installed on the same PC & the different versions of owssupp.dll
FIX:
Search the C: drive for all versions of owssupp.dll
The only one you want to keep is \Program Files\Microsoft Office\Office10\owssupp.dll
If it finds any other rename them .old
Then go to command prompt c:\ Program Files\Microsoft Office\Office10\
Type –
regsvr32 –u owssupp.dll
regsvr32 owssupp.dll
The edit function will now work as will all versions of Office components installed ie. XP, 2003 etc etc.
More From pstilgoe
How To Backup WSS 3.0
By peter.stilgoe
Backup of WSS consists of three stages:
Backup WSS site data:
Create a batch file & schedule it to run-
‘STSADM.EXE -o backup -directory \\Server\SharepointBackup -backupmethod full’
Backup IIS Metabase:
See Here for IIS Metabase Backup options
Backup files folders:
Normal File Backup Procedure
More From pstilgoe
‘Edit Document’ requires a Windows SharePoint Services-compatible application
By peter.stilgoe
Please see the information below to troubleshoot this error. This information was found in Microsoft’s KB. KB Article ID: 833714
SYMPTOMS
When you try to edit a Microsoft Office document that is stored in a document library of a Microsoft Windows SharePoint Services Web site, you may receive the following error message:
‘Edit Document’ requires a Windows SharePoint Services-compatible application and Microsoft Internet Explorer 5.0 or greater.
For example, you experience these symptoms if you click a Microsoft Word document in the document library, and then click Edit in Microsoft Office Word.
CAUSE
This issue may occur if one or more of the following conditions are true:
• Microsoft Office XP or later is not installed on your computer.
• Office XP or Microsoft Office 2003 is installed on your computer; however the SharePoint support component that is included in Office Tools is not installed on your computer. That is, either Microsoft SharePoint Support or Windows SharePoint Services Support (as appropriate to your version of Office) is not installed on the computer.
• The Owssupp.dll file is not registered correctly in Microsoft Windows.
RESOLUTION
To resolve this issue, use one of the following methods, as appropriate to your situation.
Method 1:
Install Office XP or later
Install Office XP or later on your computer. When you install Office, make sure that you also install the SharePoint support component that is included in Office Tools. In Office XP, this component is named Microsoft SharePoint Support. In Office 2003, this component is named Windows SharePoint Services Support.
For more information about how to install the SharePoint support component that is included in Office Tools, see the “Method 2: Install SharePoint support” section later in this article.
Method 2:
Install SharePoint support
To install SharePoint support, do one of the following, as appropriate to the version of Office that is installed on your computer.
Note Because there are several versions of Microsoft Windows, the following steps may be different on your computer. If they are, see your product documentation to complete these steps.
If Office XP is installed on your computer, follow these steps: 1. Click Start, and then click Control Panel.
2. Click Add or Remove Programs.
3. In the list of currently installed programs, click Microsoft Office XP, and then click Change.
4. Click Add or Remove Features – Change which features are installed or remove specific features, and then click Next.
5. In the Features to install box, expand Office Tools, click the down arrow next to Microsoft SharePoint Support, and then click Run from My Computer.
6. Click Update.
If Office 2003 is installed on your computer, follow these steps: 1. Click Start, and then click Control Panel.
2. Click Add or Remove Programs.
3. In the list of currently installed programs, click Microsoft Office 2003, and then click Change.
4. Click Add or Remove Features, and then click Next.
5. Click to select the Choose advanced customization of application check box, and then click Next.
6. In the Choose update options for applications and tools box, expand Office Tools, click the down arrow next to Windows SharePoint Services Support, and then click Run from My Computer.
7. Click Update.
Method 3:
Register the Owssupp.dll file
To register the Owssupp.dll file, follow these steps: 1. Click Start, and then click Run.
2. In the Open box, type cmd, and then click OK.
3. At the command prompt, switch to the folder that contains the Owssupp.dll file.
By default, the Owssupp.dll file is located in one the following folders, as appropriate to your version of Office: • If Office XP is installed on your computer:
Drive:\Program Files\Microsoft Office\Office10
• If Office 2003 is installed on your computer:
Drive:\Program Files\Microsoft Office\Office11
4. Type the following line, and then press ENTER:
regsvr32 -u owssupp.dll
5. Click OK when you receive the message that states that the operation was successful.
6. Type the following line, and then press ENTER:
regsvr32 owssupp.dll
7. Click OK when you receive the message that states that the operation was successful.
8. Type exit to quit Command Prompt.
More From pstilgoe
Determining how much you should be paying per click for your affiliate campaigns
By peter.stilgoe
A good rule of thumb to determine your initial bid is as follows:
Assume average conversion rate: 1% = 0.01 (5%-10% for pay per lead)
Let’s say your commission payout is : $20
Then a good place for you to start bidding 1% x $20 = 0.01 x $20
This is because the conversion rate times the commission (affiliate payout) = EPC (earnings per click)
So if your bid = EPC you’re breaking even then you can optimise your campaign to hit profit…
Ideally you need to KNOW your EPC or your conversion rate for ppc traffic which you can get from your affiliate manager.
More From pstilgoe
Sharepoint custom permissions & security
By peter.stilgoe
SharePoint Groups
SharePoint groups are created at the site collection level and are available to be used in any site in the site collection. You cannot have SharePoint groups inside a SharePoint group, but you can have an active directory group in a SharePoint group.
Permission Inheritance
Each object inherit permissions from parent by default.
Site collection –> Site –> Doc Library –> Folder/Document
Permission inheritance is an all or nothing approach. If you want to add custom permissions to child objects then it becomes detached from the parent object. If you decide to switch back to inheritance permission all of your unique permission will be discarded.
Create Custom Permission Level
Site Actions –> Site Settings
Users and permissions –> Advanced permissions
Select Manage Permissions of Parent from the Actions menu
Select Permissions Levels from the Settings menu
Click Edit Permissions Levels –> Add a Permission Level
Type a name and description for new permission level and select the permissions to assign.
Managing Authorisation
Create and use SharePoint groups as often as possible. Adding individual user accounts increases work to maintain security.
More From pstilgoe
AdCenter Labs – Essential tools for Internet Marketeers
By peter.stilgoe
Checkout Adcenter Labs here: MSN Adlab
Loads of cool tools here but one that looks very interesting is ‘Detecting Online Commercial Intention’
Microsoft adCenter can detect your customers’ intention to purchase products or acquire information. For example, if a customer searches for “canon digital camera”, it is likely that he or she wants to purchase a canon digital camera; therefore, the online commercial intention is strong, with a confidence level bigger than 0.5. Webpage searches display two levels of commercial intention: informational and transactional.
Check it out, from my keyword data / sales looks pretty accurate….



March 31st, 2008
