# Visual Studio 2012 Datasource Configuration

## How to resolve the "Database schema could not be retrieved" exception message.

* ![Database schema could not be retrieved dialog](https://www.telerik.com/products/aspnet-ajax/documentation/assets/e492bba5d7c2b23839a2c2f7a69adeeb/grid_gettingstarted_exception.png)

To resolve this error, reconfigure the connection string. By default, Visual Studio 2012 uses LocalDB, which was introduced with SQL Server 2012. For more information, see the [LocalDB overview](http://blogs.msdn.com/b/sqlexpress/archive/2011/07/12/introducing-localdb-a-better-sql-express.aspx).

If LocalDB is not installed or you do not want to use it, follow these steps to use the SQL Server Express server:

* Once you get to the "Choose Your Data Connection" dialog, click the **"New Connection..."** button.

  ![grid gettingstarted exception new Connection](https://www.telerik.com/products/aspnet-ajax/documentation/assets/c954b1dbb931375c79a9f090c307107f/grid_getting_started_new_connection.png)

* After that the **"Add Connection"** dialog is displayed. Here you need to choose the server that will be used to host the database file.

  ![grid gettingstarted exception new Connection](https://www.telerik.com/products/aspnet-ajax/documentation/assets/087093feb1eeec8b46477cee403230be/grid_gettingstarted_exception_newconnection.png)

* In the **"Server name:"** dropdown control you choose the server instance.

* Next, click the **"Attach a database file:"** RadioButton. Then browse to the database file location.

* Once, you are done with these steps, verify the connection with the **"Test connection"** button.

  ![New connection dialog settings](https://www.telerik.com/products/aspnet-ajax/documentation/assets/3210cb1a3601854aa0a1eda8c796c947/grid_gettingstarted_exception_connectionpreferences.png)

* Finally, click the **OK** button and proceed as usual.

## See Also

* [Getting started with RadGrid](https://www.telerik.com/products/aspnet-ajax/documentation/controls/grid/design-time/getting-started-with-radgrid-for-asp.net-ajax)
* [Visual Studio support](https://www.telerik.com/products/aspnet-ajax/documentation/controls/grid/design-time/visual-studio-support)
