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.
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.
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.
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.
- 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.
- In the Data Source Properties dialog box, on the Source tab, click Configure Database Connection.
- 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.
- 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.
- Under Authentication, click Save this username and password in the data connection.
- In the User name box, type your user name.
- In the Password box, type your password.
- 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.
- 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.
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
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.
- 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.
Reference: http://office.microsoft.com/en-ca/sharepoint-designer-help/add-a-database-as-a-data-source-HA010100908.aspx
Wow that was strange. I just wrote an really long comment but after I clicked
ReplyDeletesubmit my comment didn't show up. Grrrr...
well I'm not writing all that over again. Anyways, just wanted to say superb
blog!
my website best web hosting
I’m not that much of a internet reader to be honest but your blogs
ReplyDeletereally nice, keep it up! I'll go ahead and bookmark your website to come back in the future.
All the best
My page windows web hosting
What's up, I read your blog on a regular basis. Your story-telling style is witty, keep it up!
ReplyDeleteAlso visit my web blog; http://poweruphosting.com/
Great article, totally what I wanted to find.
ReplyDeleteHere is my weblog ... Best Minecraft Servers (bethebeautifullife.com)
Hi there! This post couldn't be written any better! Reading through this post reminds me
ReplyDeleteof my good old room mate! He always kept chatting about this.
I will forward this page to him. Pretty sure he will have a good read.
Thank you for sharing!
Feel free to surf to my site; minecraft pc servers
Thaank you forr sharing your info. I ttruly appreciate your efforts and I will be waiting for your next write ups thanks onxe again.
ReplyDeleteMy weblog; anoka county child support