In Mist, connections are defined once in a project, and shared with all the objects that need to reference them. This allows you to easily update connections in a single location.
To create a new connection:
-
Go to the Home tab on the ribbon, and click the Connection button. The Connection button is a split button. Clicking the top half will create a new OLE DB connection, and clicking the bottom half will list all the available connection types.
-
Click the OLE DB menu item to create an OLE DB Connection. When the connection is created, it will appear in the Logical View under Connections.
-
Double-click on the connection to open the designer for it.
-
OleDbConnections require that you provide a connection string. For this example, you'll connect to AdventureWorksLT using the following connection string:
Provider=SQLNCLI10;Server=localhost;Initial Catalog=AdventureWorksLT;Integrated Security=SSPI;
-
Change the Name value from OleDbConnection1 to AdventureWorksLT to give the connection a meaningful name.
- Save the project to persist your changes to the project files. See Saving a Project for more information.
The connection string in the example above allows you to connect to the AdventureWorksLT database running on your local computer, using your Windows credentials. You will need to alter the connection string if you are using another server or a different authentication method.
Once you've entered a connection string, you can click the Test button in the Connection Tools..Connections tab in order to validate it.


