the SQL Database from one server to another: SharePoint 2007 1. Open up the Central Administration and select the Operations tab.
2. Select the Perform a backup from the Backup and Restore section
3. Select the checkbox next to Farm.
4. After the checkbox is selected, click on the Continue to Backup Options tab.
5. On the Start Backup – Step 2 of 2 page, select Full under the Type of Backup option
6. Specify the Backup location in the text box. You must use a correct share name such as \\MyServerName\c$\backup\SharePoint. Also, the folders need to be created before you begin the backup
7. During the backup, the Backup and Status page will refresh and show the latest stats on the backup operation.
8. When the backup is completed, the status will show the job complete as well as other details
After the backup is completed, you need to remove the servers from the farm. 1. Logon to the server where SharePoint 7 is installed and launch the SharePoint Products and Technologies Configuration Wizard. When the Wizard has launched, click the Next button
2. You will get a warning about services that have to be started or reset. Click Yes to continue
3. Select the Disconnect from this server farm option and click on the Next button
4. A warning message will popup, explaining what the implication is when performing this action. Select the Yes button to continue.
5. When the Wizard has completed the task, click Finish to exit the Wizard
The next phase is to create a new database on the new database server 1. Launch the SharePoint Products and Technologies Configuration Wizard and click Next
2. You will get a warning about services that have to be started or reset. Click Yes to continue
3. Select the option No, I want to create a new server farm on the Connect to a server farm
4. Enter the name of the database server. You can accept the default name of the database name or you can rename it. I named mine MOSS_Config. You also need to specify the Username and Password of an account that will always connect to the database. When you have entered all the required information, click the Next button to continue
5. Specify the port number you want to use to access the Central Administration page inside SharePoint. If you do not want to specify a port number, you can use the port that the Wizard generated. Next, select the type of an authentication provider you want to use. I use NTLM as this SharePoint server is located on the company intranet and is not exposed to the public
6. The next screen will give an overview of the database configuration. Click the Next button to continue
7. When the database configuration is complete, click the Finish button to exit the Wizard
The next phase is to restore the data from the backup that was performed earlier 1. Click on the Operations tab on the Central Administration page. Find the Restore from backup link under the Backup and Restore section, and then click on the link.
2. Enter the path where the backup was created. Then click the OK button
3. A summary page will appear with any backup jobs that have been completed. Select the backup you made from the earlier step, then click on the Continue Restore Process button.
4. Select the component to restore. When restoring the entire farm, select the checkbox next to the Farm option. Then select the Continue Restore Process button
5. On the Step 4 of 4 page, click Same configuration under the Restore Options. A warning message will popup. Click OK to continue.
6. Complete the Login name and Password text boxes. The rest of the text boxes should be pre-filled with the data from the backup and should not have to be changed. Click the OK button to continue
7. You can monitor the status of the restore by keeping the screen up. The page will refresh itself every 15-30 seconds.
8. When the restore is completed, a summary is displayed. During my restore of my development install, I did have three areas that failed during the restore. However, as this is a development machine, I have done a lot of modifications, creation and deletion of web applications and site collections. The main project that I have been working on did restore just fine and that was my main concern as it was the cleanest and most current project I am working on.
9. You need to make sure the Office SharePoint Server Search and the Windows SharePoint Services Search are started. Mine were not started after the restore and I went in and started the services
10. When I attempted to start the services, I had to enter the Username and Password for the Service Account and the Content Access Account. 11. That’s the end of moving SharePoint to another database server
Step 2: Open Visual Studio 2005 and select Web Application Project as shown below,
Step 3: Name the project “FirstWebProject”.
Step 4: Delete Default.aspx page Or Rename the Default.aspx and add new Web Page Or rename the web page name it to “FirstCustomePage.aspx”.
Step 5: You can design this page as you want. Once you are done with designing run the application once to make sure that there is no error.
Step 6: Now go to the file path where you have created the Web Application. file path is “c:\chirag\VortalProject”. You have to copy the DLL file from web application’s BIN folder to share point site’s BIN folder.
Step 7: To Find BIN folder for your share point site, go to IIS and select your share point site. Right click on the site name and click on Open.
Step 8: This will open physical location where you site resides. Copy web application’s DLL file (In my case “FirstWebProject.dll”) in BIN directory of SharePoint site.
Step 9: Now create a new folder at same level where your SharePoint site’s BIN directory resides. Name is “CustomePage”. Add the “FirstCustomePage.aspx” page to “CustomPage” folder.
Step 10: Open Web.Config file of Share Point site and copy safe control tag shown below to Web.Config file.
TypeName=”*” /> If you have chosen different namespace and assembly names than you have to use your name instead of this. You have completed 90% of the task.
Step 11: The last thing is, you have to add tag in share point site’s Web.Config file. You need to set trust level to “WSS_Medium” policyFile=”C:\Program Files\Common Files\Microsoft Shared\Web Server Extensions\12\config\wss_mediumtrust.config” /> Here you have completed all the required configurations!!!!
Step 12: Now open your share point site in browser and check for newly added page. In our case the link will be http://wscepios99:PortNo/CustomePage/FirstCustomePage.aspx If you have done all the changes as mentioned above you can see your page running fine in browser.
Server admin templates are created as site definitions, providing tighter integration and enhanced functionality within the Windows SharePoint Services platform. They will require a server administrator to install. If you do not have Central Server Admin rights, you can still install the site admin templates (see second list below) in the sites/workspaces that you own or administrate · Absence Request and Vacation Schedule Management · Help Desk · Budgeting and Tracking Multiple Projects · Inventory Tracking · Bug Database · IT Team Workspace · Call Center · Job Requisition and Interview Management · Change Request Management · Knowledge Base · Compliance Process Support Site · Lending Library · Contacts Management · Physical Asset Tracking and Management · Document Library and Review · Project Tracking Workspace · Event Planning · Room and Equipment Reservations · Expense Reimbursement and Approval Site · Sales Lead Pipeline
Site Admin Templates:
Site admin templates are easy for site administrators to install in a template gallery without requiring server administration access. · Board of Directors · Employee Training Scheduling and Materials · Business Performance Rating · Equity Research · Case Management for Government Agencies · Integrated Marketing Campaign Tracking · Classroom Management · Manufacturing Process Management · Clinical Trial Initiation and Management · New Store Opening · Competitive Analysis Site · Product and Marketing Requirements Planning · Discussion Database · Request for Proposal · Disputed Invoice Management · Sports League · Employee Activities Site · Team Work Site · Employee Self-Service Benefits · Timecard Management
Installing a template: 1. Before installing a server admin template, you must first install the Application Template Core solution, ApplicationTemplateCore.wsp. (Click here to download). If you have already installed this solution, proceed to Step 2. 1. Pull the core file, ApplicationTemplateCore.wsp, from the extracted distribution. The core solution file will be added to the solution store, a table in the Windows SharePoint Services configuration store that holds solution files.
2. Via command line, run stsadm -o addsolution -filename \ApplicationTemplateCore.wsp
3. Next, run stsadm -o deploysolution -name ApplicationTemplateCore.wsp -allowgacdeployment(Additional attributes may be required based on your Windows SharePoint Services configuration. For example:Single Server: [ -local | -time
Server Admin Templates: Server admin templates are created as site definitions, providing tighter integration and enhanced functionality within the Windows SharePoint Services platform. They will require a server administrator to install. If you do not have Central Server Admin rights, you can still install the site admin templates (see second list below) in the sites/workspaces that you own or administrate · Absence Request and Vacation Schedule Management · Help Desk · Budgeting and Tracking Multiple Projects · Inventory Tracking · Bug Database · IT Team Workspace · Call Center · Job Requisition and Interview Management · Change Request Management · Knowledge Base · Compliance Process Support Site · Lending Library · Contacts Management · Physical Asset Tracking and Management · Document Library and Review · Project Tracking Workspace · Event Planning · Room and Equipment Reservations · Expense Reimbursement and Approval Site · Sales Lead Pipeline
Site Admin Templates: Site admin templates are easy for site administrators to install in a template gallery without requiring server administration access. · Board of Directors · Employee Training Scheduling and Materials · Business Performance Rating · Equity Research · Case Management for Government Agencies · Integrated Marketing Campaign Tracking · Classroom Management · Manufacturing Process Management · Clinical Trial Initiation and Management · New Store Opening · Competitive Analysis Site · Product and Marketing Requirements Planning · Discussion Database · Request for Proposal · Disputed Invoice Management · Sports League · Employee Activities Site · Team Work Site · Employee Self-Service Benefits · Timecard Management
Installing a template: 1. Before installing a server admin template, you must first install the Application Template Core solution, ApplicationTemplateCore.wsp. (Click here to download). If you have already installed this solution, proceed to Step 2. 1. Pull the core file, ApplicationTemplateCore.wsp, from the extracted distribution. The core solution file will be added to the solution store, a table in the Windows SharePoint Services configuration store that holds solution files.
2. Via command line, run stsadm -o addsolution -filename \ApplicationTemplateCore.wsp
3. Next, run stsadm -o deploysolution -name ApplicationTemplateCore.wsp -allowgacdeployment(Additional attributes may be required based on your Windows SharePoint Services configuration. For example:Single Server: [ -local -time ]Farm: [ -immediate -time ]To see the list of attributes, run stsadm -help deploysolution)
4. Finally, run stsadm -o copyappbincontent
2. Pull the solution file, .wsp, from the extracted distribution. The solution file will also be added to the solution store.
3. Via command line, run stsadm -o addsolution -filename \.wsp
4. Next, run stsadm -o deploysolution -name .wsp -allowgacdeployment (Additional attributes may be required based on your Windows SharePoint Services configuration. For example:Single Server: [ -local -time ]Farm: [ -immediate -time ]To see the list of attributes, run stsadm -help deploysolution)
5. To check the deployment status, browse to the WSS Central Administration site. Click the Operations tab, and then click Solution management under global configuration. 6. After all the solutions are marked Globally Deployed, run iisreset from the command line. Creating a site: 1. Log into the SharePoint site as the site administrator. 2. From the Site Actions drop-down menu in the top right, select Site Settings. 3. Under the Site Administration section, select Sites and Workspaces. 4. Select Create to create a new site using a site template. 5. Complete the new SharePoint site information. In the Template Selection section, select the Application Templates tab. Any server admin templates that have been deployed will be listed here. 6. Select the template to use for this site and click Create. A site has now been created using the application template.
Install Server Admin Templates for WSS 3.0/MOSS 2007 Download 20 server templates from here. Create a temp folder in C:\drive i.e. c:\temp\ Run ServerAdminTemplates.exe file to extract server templates files in C:\temp\ folder. Copy the following command lines in a notepad file to create a batch file. call "C:\Program Files\Common Files\Microsoft Shared\web server extensions\12\BIN\stsadm.exe" -o addsolution -filename "C:\temp\AbsenceVacationSchedule.wsp"
try { // Get the Site Collection using SPSites SPSite quickLaunchSite = new SPSite("Top Level Site Name"); using (quickLaunchSite) { // Sharepoint have high security Code. // So we can use to AllowUnsafeupdates keyword to overwrite the security. quickLaunchSite.AllowUnsafeUpdates = true; //Find the Particular site and open the site using SPWeb SPWeb quickLaunchWeb = quickLaunchSite.OpenWeb(); using (quickLaunchWeb) { quickLaunchWeb.AllowUnsafeUpdates = true; // Read the Quick Launch Bar Nodes using SPNavigationNodeCollection SPNavigationNodeCollection quickLaunchNodes = quickLaunchWeb.Navigation.QuickLaunch; // Read the Internal Quick Launch bar Manu Items using SPNavigationNode SPNavigationNode internalMenuItem = new SPNavigationNode("Top Level Sites", "", false); // Add First Menu to the Quick Launch Bar quickLaunchNodes.AddAsFirst(internalMenuItem); // Add Tech Support Sub Manu items to the Quick Launch Bar SPNavigationNode externalSubMenuItem1 = new SPNavigationNode("IT", "http://ServerName/sites/TechSupport/default.aspx", true); quickLaunchNodes[0].Children.AddAsFirst(externalSubMenuItem1); // Add Sales Opreation Sub Manu items to the Quick Launch Bar SPNavigationNode externalSubMenuItem2 = new SPNavigationNode("HR", "HR SITE NAME", true); quickLaunchNodes[0].Children.AddAsFirst(externalSubMenuItem2); // Add Tech Engineering Sub Manu items to the Quick Launch Bar SPNavigationNode externalSubMenuItem3 = new SPNavigationNode("MARKETING", "MARKETING SITE NAME", true); quickLaunchNodes[0].Children.AddAsFirst(externalSubMenuItem3); // Add IT Sub Manu items to the Quick Launch Bar SPNavigationNode externalSubMenuItem4 = new SPNavigationNode("DEVELOPMENT", "DEVELOPMENT SITE NAME", true); quickLaunchNodes[0].Children.AddAsFirst(externalSubMenuItem4); // Add Marketing Sub Manu items to the Quick Launch Bar SPNavigationNode externalSubMenuItem5 = new SPNavigationNode("TESTING", "TESTING SITE NAME", true); quickLaunchNodes[0].Children.AddAsFirst(externalSubMenuItem5); // Add Sales Sub Manu items to the Quick Launch Bar SPNavigationNode externalSubMenuItem6 = new SPNavigationNode("SUPPORTS", "SUPPORTS SITE NAME", true); quickLaunchNodes[0].Children.AddAsFirst(externalSubMenuItem6); // Add Senior Management Sub Manu items to the Quick Launch Bar SPNavigationNode externalSubMenuItem7 = new SPNavigationNode("MANAGEMENT", "MANAGEMENT SITE NAME", true); quickLaunchNodes[0].Children.AddAsFirst(externalSubMenuItem7); // Add Tech Support Sub Manu items to the Quick Launch Bar SPNavigationNode externalSubMenuItem8 = new SPNavigationNode("USERS", "USERS SITE NAME", true); quickLaunchNodes[0].Children.AddAsFirst(externalSubMenuItem8); //Finally Update menu and sub menus to Quick Launch Bar quickLaunchWeb.Update(); } } } catch (SPException x) { Response.Write(x.Message.ToString()); }
1. Create aspx page and add ASP button to this page. (aspx) 2. Copy the below mention code and paste to Button click events (aspx.cs) 3. Copy the aspx and aspx.cs file and paste to the _layout folder. (IIS --> 80 --> _layout--> Open) 4. Run the custom page through IIS try { #region Basic Declaration string strTitle = string.Empty; string sLinkUrl = string.Empty; string strGroup = string.Empty; Microsoft.Office.Server.UserProfiles.UserProfile oUserProfile = null; UserProfileManager upm = null; SPSite site = null; ServerContext server = null; #endregion
#region Open SSP Site and Security Settings site = new SPSite("SSP Website URL"); SPWeb myWeb = site.OpenWeb(); // Allow to Custom Updation myWeb.AllowUnsafeUpdates = true; server = ServerContext.GetContext(site); upm = new UserProfileManager(server, false); #endregion // Assign the User Name string sAccount = "Domain Name" + "\\" + "Account Name".ToString(); // Assign the Title strTitle = "Title Name".ToString(); strWorkspace = "Title".ToString(); // Assign the Site URL sLinkUrl = "Web Site URL"; strGroup = "General"; if (!upm.UserExists(sAccount)) { // User Profile Not Exist means we need to create the user profile upm.CreateUserProfile(sAccount); // Get the userprofile oUserProfile = upm.GetUserProfile(sAccount); QuickLinkManager qlm = oUserProfile.QuickLinks; // Add my links to Sharepoint Personal Sites QuickLink q1 = qlm.Create(strTitle, sLinkUrl, QuickLinkGroupType.General, strGroup, Privacy.Private); oUserProfile.Commit(); Response.Write("Account Created & My Links Added Successfully"); } else { // Get the userprofile oUserProfile = upm.GetUserProfile(sAccount); QuickLinkManager qlm = oUserProfile.QuickLinks; // Add my links to Sharepoint Personal Sites QuickLink q1 = qlm.Create(strTitle, sLinkUrl, QuickLinkGroupType.General, strGroup, Privacy.Private); oUserProfile.Commit(); Response.Write("My Links Added Successfully"); } } catch (Exception ex) { throw ex; }