Wednesday, June 30, 2010

TFS – Deleting a Team Project Collection

 

Use "TFSConfig.exe Collection" to delete a team project collection

  1. On your TFS Server open a command window (as TFS Administrator) to [TFS Install Drive]:\Program Files\Microsoft Team Foundation Server 2010\Tools
  2. Enter "TFSConfig.exe Collection /delete /collectionName:$COLLECTION NAME$"
  3. Respond to the "Are you sure" prompt

Tuesday, June 22, 2010

Team Foundation Server Administration Tool

Whats New in Team Foundation Server (TFS) 2010

Visual Studio Team Foundation Server 2010 Readme

Guess what I’m working on now…

Enable Remote Connection on SQL Server 2008 Express

by Linglom

 

Introduction

Last time, I wrote an article show how to enable remote connection on SQL Server 2005 Express. Now SQL Server 2008 Express is released for a while, it doesn’t allow remote connection on default installation as on SQL Server 2005 Express. So you have to enable it manually.

If you’re trying to connect to SQL Server 2008 Express remotely without enable remote connection first, you may see these error messages:

  • “Cannot connect to SQL-Server-Instance-Name
    An error has occurred while establishing a connection to the server. When connecting to SQL Server 2005, this failure may be caused by the fact that under the default settings SQL Server does not allow remote connections. (provider: SQL Network Interfaces, error: 28 – Server doesn’t support requested protocol) (Microsoft SQL Server)”

    Server doesn't support requested protocol
  • “Cannot connect to SQL-Server-Instance-Name
    An error has occurred while establishing a connection to the server. When connecting to SQL Server 2005, this failure may be caused by the fact that under the default settings SQL Server does not allow remote connections. (provider: SQL Network Interfaces, error: 26 – Error Locating Server/Instance Specified) (Microsoft SQL Server)”

    Error Locating Server/Instance Specified
  • “Cannot connect to SQL-Server-Instance-Name
    Login failed for user ‘username‘. (Microsoft SQL Server, Error: 18456)”

    Login failed for user 'sa'

To enable remote connection on SQL Server 2008 Express, see the step below:

  1. Start SQL Server Browser service if it’s not started yet. SQL Server Browser listens for incoming requests for Microsoft SQL Server resources and provides information about SQL Server instances installed on the computer.
  2. Enable TCP/IP protocol for SQL Server 2008 Express to accept remote connection.
  3. (Optional) Change Server Authentication to SQL Server and Windows Authentication. By default, SQL Server 2008 Express allows only Windows Authentication mode so you can connect to the SQL Server with current user log-on credential. If you want to specify user for connect to the SQL Server, you have to change Server Authentication to SQL Server and Windows Authentication.

Note: In SQL Server 2008 Express, there isn’t SQL Server Surface Area Configuration so you have to configure from SQL Server Configuration Manager instead.

Step-by-step
  1. Open SQL Server Configuration Manager. Click Start -> Programs -> Microsoft SQL Server 2008 -> Configuration Tools -> SQL Server Configuration Manager.
    SQL Server Configuration Manager
  2. On SQL Server Configuration Manager, select SQL Server Services on the left window. If the state on SQL Server Browser is not running, you have to configure and start the service. Otherwise, you can skip to step 6.
    SQL Server Browser Service
  3. Double-click on SQL Server Browser, the Properties window will show up. Set the account for start SQL Server Browser Service. In this example, I set to Local Service account.
    Set Startup Account
  4. On SQL Server Browser Properties, move to Service tab and change Start Mode to Automatic. Therefore, the service will be start automatically when the computer starts. Click OK to apply changes.
    Set Start Mode to Automatic
  5. Back to SQL Server Configuration Manager, right-click on SQL Server Bowser on the right window and select Start to start the service.
    Start SQL Server Browser Service
  6. On the left window, expand SQL Server Network Configuration -> Protocols for SQLEXPRESS. You see that TCP/IP protocol status is disabled.
    Protocols for SQL EXPRESS
  7. Right-click on TCP/IP and select Enable to enable the protocol.
    Enable TCP/IP protocol
  8. There is a pop-up shown up that you have to restart the SQL Service to apply changes.
    Need to Restart SQL Server Service
  9. On the left window, select SQL Server Services. Select SQL Server (SQLEXPRESS) on the right window -> click Restart. The SQL Server service will be restarted.
    Restart SQL Server Service
  10. Open Microsoft SQL Server Management Studio and connect to the SQL Server 2008 Express.
    Open Microsoft SQL Server Management Studio
  11. Right-click on the SQL Server Instance and select Properties.
    Open Server Properties
  12. On Server Properties, select Security on the left window. Then, select SQL Server and Windows Authentication mode.
    Change Authentication to SQL Server and Windows Authentication
  13. Again, there is a pop-up shown up that you have to restart the SQL Service to apply changes.
    Need to Restart SQL Server Service
  14. Right-click on the SQL Server Instance and select Restart.
    Restart SQL Server Service
  15. That’s it. Now you should be able to connect to the SQL Server 2008 Express remotely.

Tuesday, June 1, 2010

Synchronization profiles among MOSS and WSS3

Original Article

This is the BING translation:

A problem can be found working with MOSS 2007 is the synchronization between MOSS 2007 (in particular from the shared service) and the WSS content database user profiles. The reason for this problem, and the main cause of confusion is that MOSS 2007 stores user profiles information in multiple locations. In this article, we use to describe the general behavior of the user profiles on MOSS and some profiles of user between database synchronization problems.

The stage description

Let's start with WSS3. While in MOSS 2007, there are no shared services as exist in MOSS, as occurs in MOSS 2007, with WSS3 we can create one or more Web applications, so that each of the Web applications will have one or several databases of data content, on which the site collections are stored. Without deeper into these concepts (site collections, Web applications and content databases), important now is to have clear that each of the content database stores the user profile information.

This is the first point to consider, and it is very important.

We are now talking about MOSS 2007. We must not forget, MOSS 2007 extends to WSS3, on the basis of an infrastructure WSS3, MOSS 2007, incorporates and additional features.

As a result, the first thing we must be clear, is MOSS 2007 will use content WSS3 database and as a result, in the MOSS content data bases will be user profile information.

But of course, with MOSS 2007 we can configure the shared services, to import user profile information from Directory Active. Well, this is normal, but you can also import profiles from LDAP or BDC (Business Data Catalog). In this case, to import users in the shared services profile information from an external data source (Active Directory, LDAP, or BDC) the imported profile information is stored in the shared services data bases. Usually, often set up a weekly full profile import, incremental, and daily.

This second point is very important that we have found that we have two locations in which user profile information is stored in MOSS:

  • In the database data content.
  • On the bases of data in the shared services, when you import profiles.

To view graphically, if we enter into a MOSS 2007 site collection, we will be able to:

  • Use the My Settings option to view the profile information stored in the base data content.
  • Use the option to search for persons, and to display one of those included in the search result, the profile information stored in the shared services is displayed.

Now that we are clear that there are two different physical locations in which information is stored in MOSS user profiles, the question arises: <How do you synchronize user profile information between Shared Services and Content Databases ?

To perform such synchronization profiles of MOSS, are two Jobs Moss (well, there really are two Jobs by Web application) with the following name:

  • Profile Synchronization. By default runs hourly, synchronizing user profiles on the bases of content data from the corresponding import profile information from the information available in the shared services.
  • Quick Profile Synchronization. By default runs every minute. It is similar to the previous job, but is limited to synchronize the new user profile information.

In fact, running the command stsadm - o sync - 0 listolddatabases (eye with the scripts to copy, which sometimes are copied evil and fail commands), we can see what content databases have synchronized with the shared services, and in addition, we can also see the date of the last synchronization. The drawback of this command is instead of displaying the name of the database, sample the GUID used in MOSS to identify them (a churro of letters and numbers), so perhaps not us make very clear at a glance.

Description of problem synchronization profiles Moss

Now that we have clear scenario, it is much easier to describe the problem.

So that the synchronization of user profiles in MOSS 2007 problem (at least in the context of this article) refers to the case we configured and working properly import profiles into the shared services (for example, from Active Directory), but nevertheless not be is synchronizing the user profiles in shared services information for the database data content. As a result, information stored in the database data content, user profiles you will be running more obsolete increasingly as time goes on.

In this case, we can force synchronization of MOSS user profile information, in the following way:

  • Run the following commands to force synchronization job profiles Moss (Profile Synchronization), running the following command:
    Stsadm - or sync - 0 deleteolddatabases
    Stsadm - or sync - IgnoreIsActive 1
    Stsadm - or sync - synctiming m:1
  • We hope some time, so MOSS Perfiels synchronization job can run. It is sufficient to wait five minutes (at least in the cases I have known).
  • We return to configure default profiles Moss (Profile Synchronization), synchronization job running the following command:
    Stsadm - or sync - synctiming h:1

This should successfully synchronize information profiles of user of the bases of data content. In fact, if we now run command stsadm - o sync - listolddatabases 0, we will have to be able to view the content data bases to successfully synchronized with the shared services.

I have only been a case that did not work. This has been when a Content database in OffLine State was set up (I mean in MOSS that we will see from the Central Administration, eye, not in SQL Server).

In some cases, when working with multiple bases of data content in a same Web application, often put all the bases of data OffLine, so when it is necessary to create a new collection sites, placed OnLine the base data content on which you want to store the information in the site collection to create (and the rest of database data contained in OffLine State) to ensure that you used the base data content desired during the creation of such a site collection.

This setting affects collateral, since the synchronization of user profiles in MOSS doesn't work with database data content in OffLine State can find us errors such as the following:

Profile synchronization for content DB Aborting 7620abb3 - 9c1a - 9125 in order - 0f19 - 957c30d8284c due to online content database

In this case, will be sufficient to make the database data content in the Online state and rerun the steps previously discussed. And with that, here peace and glory.

Related links

Finally, I wanted to take to include links to related information for those who want to investigate and deeper into this topic:

[Date item: 10 23, 2009]
[Been article: closed]
[Author: GuilleSQL]