Guides you through the steps required to create the HCO_Test SQL Server database, create a schema in the database where you
can place your migrated DB2 tables, and create a connection to the database.
Create the database and schema
- Start the Microsoft SQL Server Management Studio.
- Connect to the server where you want to create your database.
Note: The user ID and password you provide must log you on to SQL Server with
dbadmin or
sysadmin permissions that enable you to create a SQL Server database.
- Create a SQL Server database named
HCO_Test.
- Create a schema named
DSN81110 for the new database. To do this:
- In
Object Explorer, expand
HCO_Test.
- Right-click the
Security folder, and click
New > Schema.
- In the
Schema name field, type
DSN81110.
- Click
OK.
- Close SQL Server Management Studio.
Create the HCODemo connection
- Start the Windows ODBC Data Source Administrator (32-bit). For instructions see
To start the ODBC Data Source Administrator.
- On the
ODBC Data Source Administrator dialog box, click the
System DSN tab.
- Click
Add button to open the
Create New Data Source dialog box.
- On the list of drivers, select
ODBC Driver 17 for SQL Server.
- Click
Finish. This opens the
Create a New Data Source to SQL Server window.
- In the
Name field, type
HCODemo.
- In the
Server field, type the name of your SQL Server instance. If you have a default instance, this could be
(local),
localhost, or
. (dot). If you have a named instance, use the combined server name and instance name. For example:
mysqlserver\myinstance .
- Click
Next to go to the authentication step.
- Check
With SQL Server authentication....
- Enter your
Login ID and
Password into the text fields at the bottom.
- Click
Next.
- Check
Change the default database to.
- Select
HCO_Test from the drop-down list.
- Click
Next.
- Click
Finish to open the
ODBC Microsoft SQL Server Setup dialog box.
- Click
Test Data Source.
Note: If the test fails, review and make corrections as appropriate, and try again.
- When you have a successful connection, click
OK to save the connection. This takes you back to the
System DSN tab where your new SQL Server connection is listed.
- Click
OK to close the dialog box.