04 September, 2012

How to add a database as a data source with SharePoint Designer 2010.

Before you begin to add a database as a data source, we will discuss about what is a data source.

Data Source:
A data store is a data repository of a set of integrated objects. These objects are modeled using classes defined in database schemas. Data store includes not only data repositories like databases, it is a more general concept that includes also flat files that can store data.

Connect to a database by saving the user name and password
When you connect to a database by saving the user name and password, SharePoint Designer 2010 generates a SQL-based connection string that stores the user name and password in the data source connection (a process known as SQL authentication). If your site is located on a server running Microsoft SharePoint Foundation 2010, this is the preferred option for generating a connection string.
You can also create a database connection by using a custom connection string. 
  1. Click Data Sources in the Navigation Pane.
  2. On the Data Sources tab in the ribbon, in the New group, click Database Connection.
  3. In the Data Source Properties dialog box, on the Source tab, click Configure Database Connection.
  4. In the Configure Database Connection dialog box, under Server Information, in the Server Name box, type the name of the server where your database resides.
  5. In the Provider Name box, do one of the following:
    • If you are connecting to an external Microsoft SQL Server database, click Microsoft .NET Framework Data Provider for SQL Server.
    • If you are connecting to an external database that is OLE DB compatible, including versions of SQL other than Microsoft SQL such as MySQL, click Microsoft .NET Framework Data Provider for OLE DB.
  6. Under Authentication, click Save this username and password in the data connection.
  7. In the User name box, type your user name.
  8. In the Password box, type your password.
  9. Click Next.
Because SQL authentication saves the user name and password as text in the data connection, any user with permission to open the site in SharePoint Designer 2010 can view these credentials. A security warning informs you that the user name and password are saved as text in the data connection and that other site members can access this data source. If you want other site members to access the database by using the same user name and password, click OK. If you do not want other site members to access the database by using the same user name and password, click Cancel.
  1. In the Database list, click the database that you want to use as a data source, and then do one of the following:
    • In Select a table or view, click the table or saved view that you want from the list, and then click Finish.
By using this option, you create a default query that selects all records in the table or view. However, after you click Finish, you can modify the default query by clicking Fields, Filter, and Sort in the Data Source Properties dialog box. 
  • Click Specify custom Select, Update, Insert, and Delete commands using SQL or stored procedures, and then click Finish.
 Note   This option is available only if your administrator has turned on the Enable Update Query Support option in SharePoint Central Administration.
By using this option, you can create custom SQL commands. When you click Finish, the Edit Custom SQL Commands dialog box opens. In this dialog box, you can create commands and add parameters. After you create a custom SQL command, you can edit the query by clicking Edit Custom Query in the Data Source Properties dialog box. 
  1. In the Data Source Properties dialog box, click the General tab, type a name for the data source, and then click OK.
The new database connection now appears in the Data Sources list.
 If you are trying to connect to an external server running SQL Server, make sure that SQL Server authentication is enabled on that server.

How to add a database as a data source: SharePoint 2007

Before you begin to add a database as a data source, we will discuss about what is a data source.

Data Source:
A data store is a data repository of a set of integrated objects. These objects are modeled using classes defined in database schemas. Data store includes not only data repositories like databases, it is a more general concept that includes also flat files that can store data.

Connect to a database by saving the user name and password
When you use Connect to a database by saving the user name and password, Office SharePoint Designer 2007 generates a SQL-based connection string that stores the user name and password in the data source connection (a process known as SQL authentication). If your site is located on a server running Windows SharePoint Services 3.0, this is the preferred option for generating a connection string. You can also create a database connection by using a custom connection string. If the Data Source Library task pane is not visible, on the Task Panes menu, click Data Source Library.
  1. In the Data Source Library task pane, under Database Connections, click Connect to a database.
If the Database Connections heading is collapsed, click the plus sign (+) to expand it.
  1. In the Data Source Properties dialog box, on the Source tab, click Configure Database Connection.
  2. In the Configure Database Connection dialog box, under Server Information, in the Server Name box, type the name of the server where your database resides.
  3. In the Provider Name box, do one of the following:
    • If you are connecting to an external Microsoft SQL Server 2000 database or an external Microsoft SQL Server 2005 database, click Microsoft .NET Framework Data Provider for SQL Server.
    • If you are connecting to an external database that is OLE DB compatible, click Microsoft .NET Framework Data Provider for OLE DB.
  4. Under Authentication, click Save this username and password in the data connection.
  5. In the User name box, type your user name.
  6. In the Password box, type your password.
  7. Click Next.
Because SQL authentication saves the user name and password as text in the data connection, any user with permission to open the site in Office SharePoint Designer 2007 can view these credentials. A security warning informs you that the user name and password are saved as text in the data connection and that other site members can access this data source. If you want other site members to access the database by using the same user name and password, click OK. If you do not want other site members to access the database by using the same user name and password, click Cancel.
  1. In the Database list, click the database that you want to use as a data source, and then do one of the following:
    • Click Select a table or view, click the table or saved view that you want from the list, and then click Finish.
      By using this option, you create a default query that selects all records in the table or view. However, after you click Finish, you can modify the default query by clicking Fields, Filter, and Sort in the Data Source Properties dialog box. 
    • Click Specify custom Select, Update, Insert, and Delete commands using SQL or stored procedures, and then click Finish.
This option is available only if your administrator has turned on the Enable Update Query Support option.
 
By using this option, you can create custom SQL commands. When you click Finish, the Edit Custom SQL Commands dialog box opens. In this dialog box, you can create commands and add parameters. After you create a custom SQL command, you can edit the query by clicking Edit Custom Query in the Data Source Properties dialog box. 

  1. In the Data Source Properties dialog box, click the General tab, type a name for the data source, and then click OK.
The new database connection now appears in the Data Source Library task pane.

If you are trying to connect to an external server running SQL Server, make sure that SQL Server authentication is enabled on that server.

Reference: http://office.microsoft.com/en-ca/sharepoint-designer-help/add-a-database-as-a-data-source-HA010100908.aspx 

Current Calls may continue, but with reduced functionality

Recently I have seen many cases where a client are facing issues in which MOC reconnecting again and again & goes into loop of Sign in/Sign out with error “Current Calls may continue, but with reduced functionality”. Sometimes users are getting log off continuously and sign-in on MOC or Lync after several reboots.


Causes: The issue occurs because the Office Communicator 2007 R2 users getting moved between different pools servers.

Resolution: 
Basically users who were having this issue may them moved recently between different pool server and their config file was pointing towards OLD pool server.
Most of the times it is resolved by a reboot or multiple reboots, but sometimes (when user is working remotely) it doesn’t get resolve then try to locate the file “EndpointConfiguration.cache” under the location %userprofile\Local Settings\Microsoft\Communicator\Sip_username@domain.com and delete that, client should reboot their workstation and then try.

Details: The Office Communicator 2007 R2 client updates the user's EndpointConfiguration.cache file when the user signs out of the Office Communications Server 2007 R2 pool. If the sign-out process is interrupted, the EndpointConfiguration.cache file cannot be updated with the secondary Office Communications Server 2007 R2 pool’s FQDN and TCP port information. This causes the Office Communicator 2007 R2 client to do the following:
Try to automatically sign in to the Office Communications Server 2007 R2 pool by using the legacy FQDN and TCP port information that is listed in the EndpointConfiguration.cache file
Time out and not connect because the original Office Communications Server 2007 R2 pool front-end servers are offline
Perform a DNS lookup for the SRV records that are configured for the automatic sign-in process

So, please compare the entry in EndpointConfiguration.cache and user’s allocated pool, if difference is found then better delete that else he may face the issue while working remotely.

03 September, 2012

Full-text index population for table or indexed view: SQL Server 2008

As discussed in the previous article: Full text search in SQL.  We discussed on the some of the issue you can try to resove using the Full-text Search from various MS reference.
In continuation to the same, below are the some of the references you can use to resolve the issue realted to Full text search in SQL 2008. You may get same error meaassge using full-text search.
Error : “Full-text index population for table or indexed view”.
This error may not be sufficent to give you the complete reference to the exact issue you are facing in your problem. So below I am sharing some of the resources to reolve the issue partaining to the above error.
Error : "No appropriate filter was found during full-text index population for table or indexed view"
Error :  “Error 0x80040e97 occurs when you use integrated full-text search in SQL Server”.
Error: You receive error messages when you perform a population for a large full-text index in SQL Server 2008
I belive referring to the any of the above KB article will surely resolve your problem. However, if still has problme then rebuilding full-text on table may help or repopulation may also work.   

A good references to troubleshoot Full- Text Indexing: http://msdn.microsoft.com/en-us/library/ms142595.aspx
If you have better solution to be suggested, you are most welcome.

Top 10 most Popular Sessions: VM World 2012.

Enhance your skills & be top of the technology.

The top 10 sessions from VMworld have been posted.
http://www.vmworld.com/community/conference/us/learn/top10

VM learning Portal: http://www.vmworld.com/community/conference/us/learn  

VM World: http://www.vmworld.com/index.jspa