I was recently given the task of copying a Web Application from one machine to another. It seemed like a simple task so I began by pulling a backup using stsadm, then thought I could simply do a restore into a web app that I had just created on the other box. It seemed simple enough but I ran into a version issue as shown here. One thing to note here is that I was going from 32-bit (Win 2003) to 64-bit (Win 2008 R2), however I don't think that really matters in this instance.

Interesting. So I went to Central Admin. Operations->Servers in Farm on the destination box and said it was version 12.0.0.6421. Not the version I need!

I then discovered this site, well my partner in crime, Rod, found it: http://sharepointingitout.blogspot.com/2008/12/sharepoint-2007-version-numbers.html
I proceeded to download KB2553022 which was the one I needed as I'm running WSS 3.0. Once you get to the download just click on the View and request hotfix download as shown here.

I had to fill in my e-mail address etc and then I got the link for the download. It took about 5 minutes to install. I then had to re-run SharePoint.exe to Repair my set-up as the install appeared to take offence to my SharePoint installation as I couldn't open CA or the web app after the install. After I did the Repair I then rebooted and ran the SharePoint Products and Technical Configuration Wizard after it came back up.
That was it, I then opened up CA again and now I have version 12.0.0.6565 and the restore WORKED!
Thanks
Dave
If you are working with SQL Stored Procedures and Functions, it's simple to add the db_owner role to your own login. However, when you want to release your database to a production environment you really want to take away the db_owner role as it has the ability to add, edit and remove database objects in a production environment. The proper way of assigning permissions is to give the user\group in question db_reader and db_writer privilages ONLY and remove the db_owner role. You then need to GRANT the user\group EXECUTE permission on all the Stored Procedures.
To do this you may need to run the following script in order to generate the script so this may be done quickly rather than applying the permission one by one. Once run, simply copy the results to a new window and Execute all lines.
DECLARE @User varchar(50)
SELECT @User = '[domain\userid]'
SELECT 'GRANT EXEC ON ' + name + ' TO ' + @User
FROM dbo.sysobjects
WHERE type IN ('P', 'FN')
AND category = 0
ORDER BY name
OR if you want to GRANT to PUBLIC
DECLARE @User varchar(50)
SELECT @User = 'PUBLIC'
SELECT 'GRANT EXEC ON ' + name + ' TO ' + @User
FROM dbo.sysobjects
WHERE type IN ('P', 'FN')
AND category = 0
ORDER BY name
This link had more details regarding the objects you might need to query.
http://msdn.microsoft.com/en-us/library/ms190324.aspx
I came across this error message when searching my SharePoint Foundation Site. I had already configured the Search and it is working so this message caught me off guard. Luckily I was able to find a quick solution for it before my demo that afternoon.

To resolve this issue go to Central Admin. Under Application Management, click on Manage Web Applications, then click on Service Connections in the Manage section of the Ribbon.

You may notice that it opens with the [default] settings that are all selected.

Click on the list and select the configuration you need to update. In this case it's the [custom] configuration.
Then simply click on the Search Service Application check box and click OK.

That's all there is to it, so hopefully this post will help someone else out there.
Thanks
Dave
I had some issues with my Outlook 2003 Calendar at the office and had to create a new Calendar and remove the original one. I then discovered that the Reminders stopped working so this is what I did to correct that issue.
- Archive the Calendar using today's data as the 'older than' criteria, using File->Archive
- Shutown Outlook via File->Exit.
- Run the following Commad via Start->Run. outlook /CleanReminders.
- Shutown Outlook via File->Exit.
- Run the following Commad via Start->Run. outlook /ResetFolders.
- Done! The reminders sprung back to life.
Enjoy! I hope was helpful for someone out there!
While crawling SSL enabled web applications in SharePoint 2010, it may fail giving the following error.
Error message: An unrecognized HTTP status was received. Check that the address can be accessed using Internet Explorer. (WebExceptionStatus TrustFailure The underlying connection was closed: Could not establish trust relationship for the SSL/TLS secure channel.
This happens mostly when we implement self signed certs or certs from untrusted authorities in the web servers. In order to avoid the error message and to successfully crawl contents, make the following changes in farm level search settings in Central Administration.
- Go to Application Management > Search Service Application Settings > Farm Search Administration
- Change the setting “Ignore SSL warnings” from No to Yes.
Installing Microsoft SQL Server 2008 Management Studio Express
Microsoft SQL server 2008 Management Studio Express offers management tools for Microsoft SQL Server 2008 Express, Express with Advanced Services and Compact editions. If your database is hosted on an SQL 2005 Express server, install Microsoft SQL Server Management Studio Express. SQL server 2008 Management Studio Express runs on Windows 7, Windows Vista service pack 1 and Windows XP service packs 2 and 3, Windows server 2003 service pack 2, Windows server 2008 and Windows Server 2008 R2.
This article includes instructions for installing all of the necessary prerequisites. Each installation will be different depending upon the operating system, patch level and previous software installations on the computer. You must log in to the computer with administrative rights to install software.
Install Windows Installer
- Download the appropriate installation file for your version of Microsoft Windows from the Microsoft Download Center.
- http://www.microsoft.com/download/en/details.aspx?id=8483 is the 4.5 Installer for SQL 2008 Studio!
- Open the Windows installer file.
- Click “Next” when presented with the “Software Update Installation Wizard.”
- Select the option beside “I agree” to answer the licensing agreement query.
- Click the “Next” button.
- Press “Finish.”
Install the .NET Framework
- Download the current version of the .NET Framework for your operating system from the Microsoft Download Center.
- Open the .NET Framework installation file.
- Select the option button for “I have read and accept the terms of license agreement” to agree to the licensing terms.
- Press “Install.”
- Click “Exit” when the message that the setup has completed appears.
Install Windows PowerShell
- Download Windows PowerShell for Windows XP or for Windows 2003 Server from Microsoft's download center.
- Execute the Windows PowerShell setup file.
- Click “Next” in the Software Update Installation” window.
- Select “I Agree” to accept the licensing agreement. Click “Next.”
- Press “Finish” when the installation has completed successfully.
Install Microsoft SQL Server 2008 Management Studio
- Download Microsoft SQL Server 2008 Management Studio Express from the Microsoft Download Center.
- Double-click the Microsoft SQL Server 2008 Management Studio Express executable file.
- Choose “Installation” in the SQL Server Installation Center window.
- Click on the link to “New SQL Server stand-alone installation or add features to an existing installation.”
- Check for warnings and errors in the “Setup Support Rules” pane.
- Resolve any failures before clicking the “OK” button.
- Click “Install.”
- Check for warnings and errors in the “Setup Support Rules” pane.
- Resolve any failures before clicking the “Next” button.
- Select “Perform a new installation of SQL Server 2008.” Click “Next” and “Next.”
- Check the box beside “I accept the license terms.” Click “Next.”
- Check the box beside “Management Tools – Basic” beneath the shared features.
- Click “Next” and “Next.”
- Accept the defaults in the “Error and Usage Reporting” screen and click “Next.”
- Select the “Next” button and click “Install.”
- Click “Next” and “Close” when you see the message that the setup process is complete.
Microsoft SQL 2008 Server Management Studio Express simplifies management of SQL 2008 Server Express and Compact editions. Authorized users and administrators can run scripts, create tables, assign rights, schedule backups, replicate, shrink and restore databases from the Object Explorer window. While a long process, installation of the prerequisites and the software will save you time and effort when administering your SQL databases.
Copyright from Maria Montoya’s suite 101 site: Installing Microsoft SQL Server 2008 Management Studio Express | Suite101.com
If you want to switch on the Trace log for MSAccess linked tables to SQL Server then set the following registry key to 1. If you can't see the key then create a new REG_DWORD key and set the value to 1. The log file will be called sqlout.txt and it will be produced in the Default database folder as indicated in MSAccess Tools->Options->General->Default database folder.
[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Jet\4.0\Engines\ODBC] TraceSQLMode
Hope this helps! Also don't forget to switch it off when you don't need it.
When I was trying to deploy the SharePoint 2010 Web Part on a server using PowerShell, I got this error when I tried to run the Install -SPSolution command saying that:
Install-SPSolution: Admin SVC must be running in order to create deployment timer job
So all I needed to do was to go to the Services and look for the service called SharePoint 2010 Administration. It woill not be running so I switched it to Automatic and then started it. Then I was able to re-run my Installation script!
This is how to list all Tables and Fields in an Access Database Project (ADP).
Option Compare Database
Option Explicit
Public Sub ListTablesAndFieldsADP()
'---------------------------------------------------------------------
'Reference is needed for: Microsoft ADO Ext. 2.x for DDL and Security
'---------------------------------------------------------------------
Dim cat As New ADOX.Catalog
Dim tbl As ADOX.Table
Dim col As ADOX.Column
Dim fs As Object
Dim output As Object
Set fs = CreateObject("Scripting.FileSystemObject")
Set output = fs.CreateTextFile("c:\Tables_Views_And_Fields.txt", True)
Set cat.ActiveConnection = CurrentProject.Connection
For Each tbl In cat.Tables
If Left(tbl.Type, 6) <> "SYSTEM" Then
output.WriteLine tbl.Name & " (" & tbl.Type & ")"
For Each col In tbl.Columns
output.WriteLine " " & col.Name
Next
output.WriteLine
End If
Next
Set col = Nothing
Set tbl = Nothing
Set cat = Nothing
End Sub
This is how to list all LINKED Tables and Fields in an MS Access Database.
To list Local Tables, remove Len(tdfCurrent.Connect) > 0
Public Sub ListTablesAndFields()
Dim fld As DAO.Field
Dim tdfCurrent As DAO.TableDef
Dim dbCurrent As DAO.Database
Set dbCurrent = CurrentDb
Dim fs As Object
Dim output As Object
Set fs = CreateObject("Scripting.FileSystemObject")
Set output = fs.CreateTextFile("c:\Tables_Views_And_Fields.txt", True)
For Each tdfCurrent In dbCurrent.TableDefs
If Len(tdfCurrent.Connect) > 0 And Left(tdfCurrent.Name, 4) <> "~TMP" Then
output.WriteLine tdfCurrent.Name
For Each fld In tdfCurrent.Fields
output.WriteLine " " & fld.Name
Next
output.WriteLine
End If
Next
End Sub