About
You arrived at the weblog of Geert Baeke. I am a technology consultant for a company called Xylos (Belgium). I mostly work with Microsoft technologies such as Windows, Active Directory, Exchange, Sharepoint, MSCS, and more. I am also actively busy with VMware's products, focussing on VMware ESX.

Sections
Search






XBOX 360

RSS Newsfeeds
baeke.info Main RSS Feed Main Page RSS
Sharepoint RSS Feed Sharepoint RSS
View Article  SharePoint and PowerShell

On pshell.info, I posted an article about SharePoint and PowerShell that shows how to use PowerShell with stsadm.exe. If you have worked with SharePoint a lot, you probably know stsadm. It is used for command line administration of SharePoint and to obtain information about users, sites, installed web parts, etc...

The problem with stsadm is that it returns XML that can be difficult to interpret and work with. PowerShell can help there with its support for XML as a datatype. Take a look at the article to find out more.

And by the way, credit where credit is due, I got inspired by this post on the Adventures in SPWonderland blog. Great blog so check it out. 

View Article  Change the SQL server in a MOSS 2007 farm

When you deploy MOSS 2007, you need to have a SQL server in place for the configuration database, content databases and various other databases. But what if you need to change that SQL server later? In theory, there are several options:

  • Use connection aliases and change the alias to use another server.
  • Use the stsadm utility with the renameserver option.

A connection alias is setup using the SQL Server Configuration Manager utility. I usually install the SQL management tools on the MOSS server which makes the tool available. Normally, you use aliases for security reasons as documented here.

 

 

In the diagram above, there is a simple farm with a MOSS server and a SQL server. The SQL server is configured to listen on TCP port 40000 with SQL Server Configuration Manager. The MOSS server is configured to connect to the SQL server using TCP port 40000. To let the MOSS server connect using TCP port 40000, you need to create an alias on the MOSS server. When you create an alias with SQL Server Configuration Manager, it will store the alias definition in HKLM\SOFTWARE\Microsoft\MSSQLServer\Client\ConnectTo. For the example above, you would find the following value:

  • Name: sql
  • Type: REG_SZ
  • Value: DBMSSOCN,sql.test.com,40000

From practical experience, I do not recommend using an alias to change the SQL server in a MOSS farm. Instead, use the stsadm command as follows:

stsadm -o renameserver -oldservername <oldname> -newservername <newname>

After running this command, restart all services or reboot the server.

Of course, you need to migrate all data from the old SQL server to the new one. You can restore backups to the new server and recreate logins to achieve that goal.

In summary, when you need to change the SQL server in a MOSS 2007 farm, use the stsadm command instead of SQL connection aliases. Use connection aliases to meet security requirements like connecting to SQL with a different port number.

 

Login
User name:
Password:
Remember me 
This Month
February 2007
Sun Mon Tue Wed Thu Fri Sat
1 2 3
4 5 6 7 8 9 10
11 12 13 14 15 16 17
18 19 20 21 22 23 24
25 26 27 28
Networking
View Geert Baeke's profile on LinkedIn

Services

Powered by BlogHarbor
Powered by BlogHarbor
StatCounter