The ConnMaker tool is available for download to help users
test connectivity through the .NET Data Providers to SQL Server, and to other
server data sources. Source code for the tool is provided as a resource for
programming connectivity and data retrieval from the server database. You may
change and recompile the code for your own use. ConnMaker.exe runs on any
computer that is running a Microsoft operating system, and that has the .NET
Framework installed.
The
following file is available for download from the Microsoft Download
Center:
Collapse this imageExpand this image
ConnMaker.exe now
(http://download.microsoft.com/download/ado.net/utility/1.0/win98xp/en-us/connmaker.exe)
Release Date:
Oct-30-2002
For additional information about how to download
Microsoft Support files, click the following article number to view the article
in the Microsoft Knowledge Base:
119591Â
(http://kbalertz.com/Feedback.aspx?kbNumber=119591/EN-US/
)
How to Obtain Microsoft Support Files from Online Services
Microsoft scanned this file for viruses. Microsoft used the most
current virus-detection software that was available on the date that the file
was posted. The file is stored on security-enhanced servers that help to
prevent any unauthorized changes to the file.
The ConnMaker.exe file contains the following files:
Collapse this tableExpand this table
| File name | Size |
|---|
| App.ico | 2 KB |
| AssemblyInfo.cs | 3 KB |
| CM.csproj | 5 KB |
| CM.csproj.user | 2 KB |
| CM.sln | 1 KB |
| \bin\Debug\CM.exe | 32 KB |
| Form1.resx | 10 KB |
| Form1.cs | 21 KB |
How To Use the ConnMaker Tool
- Download ConnMaker.exe, and then unzip the files to your
hard disk.
- Double-click the CM.exe file to start ConnMaker.
- If you want to edit the source code, open CM.sln with
Microsoft Visual Studio .Net.
By default, ConnMaker tool lists the following three providers
to connect to data sources:
- SQL Server .NET Data Provider
- OLE DB .NET Data Provider
- ADO InterOp using SQLOLEDB
NOTE: To add other Providers such as ODBC .NET Data Provider to this
list, modify the source code.
Connect to a SQL Server Database by Using the Wizard:
- Make sure that the Manually type connection string check box is clear.
- The default settings for the wizard assume that you have a
local SQL Server with the sample Northwind Database installed. If you do not
have the Northwind Database installed, type the correct SQL Server name in the Data Source text box.
- Type the SQL Server logon information in the User ID and Password text boxes.
Use a <username> account with appropriate permissions to the
database. Also, use a strong password.
- You may also click to select the Integrated Security check box if this is supported by the provider and the server. By
default, all three providers that are listed in ConnMaker support Integrated
Authentication.
- After you modify the settings to provide the information
for your server, click the Get Connection String from above settings button, to fill the Connection String box. At this time you notice the following connection string (if
default settings were used):
Data Source=(local);Initial Catalog=Northwind;User ID=<username>;Password=<strong password>;Network Library=DBNMPNTW;
- Click the Connect and Get Data button. If that SQL Server is running, you receive data returned
in the DataGrid. If an error occurs, you receive an error dialog box that
explains the error message in detail, and a log file is saved as follows:
C:\OurErrorlog2.txt. If you require assistance when you in troubleshoot this error, you can open a Service Request and Microsoft Product Support will help you under a standard support incident. The Microsoft Support Professional may ask for this log file and for additional information for analysis and troubleshooting.
Manually Type the Connection String:
If you want to use certain keywords in a connection string, or if
you want to try a string that you already use, manually type that string.
IMPORTANT: You still must select the correct provider to be used for
connection.
Tip: You can generate an automatic connection string by using the
Wizard, and then click to select
Manually type connection
string check box to modify the string so that you do not have to
create a new string each time.
- Click to select the Manually type connection
string check box.
- In the Connection String text box at the bottom of the form, type the connection
string.
- Click the Connect and Get Data button to see if your data is returned to the grid.
Sample Connection Strings
- To use an IP Address instead of a Server name (Select SQL
Server .NET Data Provider):
Data Source=127.0.0.1,1433;Initial Catalog=Northwind;User ID=<username>;Password=<strong password>;Network Library=DBMSSOCN;
- Connect to an Access Database (Select OLE DB .NET Data
Provider):
Provider=Microsoft.Jet.OLEDB.4.0; Data Source=C:\Program Files\Microsoft Office\Office10\Samples\Northwind.mdb;User ID=Admin;Password=
For additional information, click the article
number below to view the article in the Microsoft Knowledge Base:
313590Â
(http://kbalertz.com/Feedback.aspx?kbNumber=313590/EN-US/
)
INFO: Roadmap for ADO.NET
325698Â
(http://kbalertz.com/Feedback.aspx?kbNumber=325698/EN-US/
)
HOW TO: Implement a DataSet CREATE TABLE Helper Class in Visual Basic .NET