Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

(If the previous version is not on the website, please contact Q&A bulletin board at http://support.altibase.com/en)

Image ModifiedImage Modified

(At the time of writing this document, the altiadonet6.5.1.2_64/32.zip file has been uploaded to the latest.)

...

Open the File->New->Project menu and create a new project as shown below.

Image Modified

2. Register Altibase ADO.NET Data Provider by adding reference

Add "Altibase.Data.AltibaseClient.dll" by right-clicking on "References" in the left project explorer tree and adding a reference as shown below.

1) Right-click on a reference and click "Add Reference"

Image ModifiedImage Modified

2) In the dialog window, go to the Altibase.Data.AltibaseClient.dll path and complete the setting.

When the reference addition is completed, the "Altibase.Data.AltibaseClient" Altibase ADO.NET provider is added to the reference tree of the solution explorer as follows.

Image Modified

3.  Make odbccli_sl.dll be included in the dynamic library path.

ALTIBASE's ADO.NET library always needs the odbccli_sl.dll file. Therefore, it must be located in a path that can refer to odbccli_sl.dll. There are two ways to refer to odbccli_sl.dll as follows.

3.1 To place the executable file in the folder

If odbccli_sl.dll is placed in the same folder as the executable file, it is referred to in the current path of the executable file.

3.2 To add the path where the odbccli_sl.dll library is located in the environment variable PATH

This is a method of adding the path where odbccli_sl.dll is located in the environment variable PATH. If odbccli_sl.dll is in C:\altibase_client32\lib, add it to PATH as below. Visual Studio can recognize the changed contents of the PATH environment variable only after rerunning Visual Studio.

Image Modified

Note

Suitable Library must be used for the compilation bit-type of Visual Studio.

Visual Studio allows the user to select 64bit or 32bit for the application's compilation bit with an option.

Image Modified

Note

Altibase ADO.NET suitable library must be used for the compilation bit-type of Visual Studio. If Visual Studio is set to compile to 32bit, download "altiadonetX.XXX_32bit.zip" from support.altibase.com and use it. If it is set to 64bit compilation mode, download "altiadonetX.XXX_64bit.zip" and use it. If a DLL of a different type is used from the Bit setting of Visual studio, a run time error occurs.

Preparation Completed

After installing the two files as above, environment preparation for using the ADO.NET provider is completed.