{"id":2397,"date":"2014-12-18T22:16:29","date_gmt":"2014-12-18T22:16:29","guid":{"rendered":"https:\/\/alt2.minisoft.com\/support\/?p=2397"},"modified":"2014-12-18T22:19:24","modified_gmt":"2014-12-18T22:19:24","slug":"creating-a-file-dsn-for-minisofts-odbc-driver-2","status":"publish","type":"post","link":"https:\/\/c002.minisoft.com\/support\/creating-a-file-dsn-for-minisofts-odbc-driver-2\/","title":{"rendered":"Creating a File DSN for Minisoft&#8217;s ODBC Driver"},"content":{"rendered":"<p>The parameters in the standalone DSN table are also used in JDBC.<\/p>\n<hr size=\"1\" \/>\n<h4 class=\"subheads\"><strong><a name=\"FileDSN\"><\/a>Creating a File DSN based on an existing DSN<\/strong><\/h4>\n<p>You must create a File DSN if you are using either MSExcel or MSQuery as your client application. On the other hand File DSNs are not needed for Server Release of MSOffice.<\/p>\n<p>If you have already created a User or System DSN you can create a File DSN in one of these ways.<\/p>\n<hr size=\"1\" \/>\n<p>The first method being in the directory, indicated by the &#8216;options&#8217; button in the Choose Data Source dialog; you can create a two line text file that contains:<\/p>\n<p><code>[ODBC]<br \/>\nDSN=yourdatasource<\/code><\/p>\n<p>The name of the file should be (yourdatasource.DSN). This file is created by following the next set of instructions. The value of yourdatasource on the line that begins with DSN, should be your existing User or System DSN.<\/p>\n<hr size=\"1\" \/>\n<p class=\"subheads\">Alternately, you can let MSQuery create the file DSN:<\/p>\n<ol>\n<li>In the Choose Data Source dialog box select &lt;New Data Source&gt; under the Databases tab. Then click OK.<br \/>\n<a href=\"https:\/\/alt2.minisoft.com\/support\/wp-content\/uploads\/2014\/12\/ODBC_y02.gif\"><img decoding=\"async\" loading=\"lazy\" class=\"alignnone size-full wp-image-2398\" src=\"https:\/\/alt2.minisoft.com\/support\/wp-content\/uploads\/2014\/12\/ODBC_y02.gif\" alt=\"ODBC_y02\" width=\"380\" height=\"291\" \/><\/a><\/li>\n<li>\u00a0The Create New Data Source dialog box will appear. Enter the name you want to give your data source. Select the HP e3000 Data Access Driver, then press Connect.<br \/>\n<a href=\"https:\/\/alt2.minisoft.com\/support\/wp-content\/uploads\/2014\/12\/ODBC_y02.gif\"><img decoding=\"async\" loading=\"lazy\" class=\"alignnone size-full wp-image-2398\" src=\"https:\/\/alt2.minisoft.com\/support\/wp-content\/uploads\/2014\/12\/ODBC_y02.gif\" alt=\"ODBC_y02\" width=\"380\" height=\"291\" \/><\/a><\/li>\n<li>\u00a0Minisoft&#8217;s HP e3000 Data Access ODBC Driver dialog box will appear. Under the Connection tab enter your valid login information, then click OK.<\/li>\n<li><img decoding=\"async\" loading=\"lazy\" class=\"alignnone size-full wp-image-2399\" src=\"https:\/\/alt2.minisoft.com\/support\/wp-content\/uploads\/2014\/12\/dsn3.gif\" alt=\"dsn3\" width=\"407\" height=\"241\" \/><\/li>\n<li>\u00a0An error message will then appear, click OK.<\/li>\n<li>\u00a0Press the Connect button a second time in the Create New Data Source dialog box.<\/li>\n<li><img decoding=\"async\" loading=\"lazy\" class=\"alignnone size-full wp-image-2400\" src=\"https:\/\/alt2.minisoft.com\/support\/wp-content\/uploads\/2014\/12\/ODBC_Y02a.gif\" alt=\"ODBC_Y02a\" width=\"381\" height=\"292\" \/><\/li>\n<li>\u00a0The Select Data Source dialog box will appear.\u00a0 Under the Machine Data Source tab select your data source name, then click OK.<\/li>\n<li><img decoding=\"async\" loading=\"lazy\" class=\"alignnone size-full wp-image-2401\" src=\"https:\/\/alt2.minisoft.com\/support\/wp-content\/uploads\/2014\/12\/dsn6.gif\" alt=\"dsn6\" width=\"407\" height=\"324\" \/><\/li>\n<li>\u00a0Click OK again when Minisoft&#8217;s HP e3000 Data Access ODBC Driver dialog box appears.<\/li>\n<li>\u00a0In the Create New Data Source dialog box you should now see the name of your User or System DSN listed next to the connect button. Click OK.<br \/>\n<img decoding=\"async\" loading=\"lazy\" class=\"alignnone size-full wp-image-2402\" src=\"https:\/\/alt2.minisoft.com\/support\/wp-content\/uploads\/2014\/12\/dsn7.gif\" alt=\"dsn7\" width=\"407\" height=\"288\" \/><\/li>\n<li>\u00a0Your File DSN will now appear in the list of available file DSNs.<\/li>\n<\/ol>\n<p><a href=\"https:\/\/alt2.minisoft.com\/support\/wp-content\/uploads\/2014\/12\/ODBC_Y08a.gif\"><img decoding=\"async\" loading=\"lazy\" class=\"alignnone size-full wp-image-2403\" src=\"https:\/\/alt2.minisoft.com\/support\/wp-content\/uploads\/2014\/12\/ODBC_Y08a.gif\" alt=\"ODBC_Y08a\" width=\"458\" height=\"230\" \/><\/a><\/p>\n<hr size=\"1\" \/>\n<h4 class=\"subheads\"><a name=\"odbc-dsn\"><\/a><strong>Create a Standalone File DSN.<\/strong><\/h4>\n<p>You can create a File DSN for your users so they will not need to learn the ODBC Administrator. The information entered in a File DSN is the same general information that would be entered when creating a User or System DSN in the ODBC\/32 Administrator. You can specify these same parameters in a FILE DSN (<a href=\"http:\/\/minisoft.com\/pages\/middleware\/shared\/parameters.html\">Connection Parameters<\/a>).<\/p>\n<hr size=\"1\" \/>\n<p class=\"subheads\"><strong>Following is an example of a File DSN that includes connection, database and table information.<\/strong><\/p>\n<p>[ODBC]<br \/>\n2DriverTable=<br \/>\nDRIVER=HP3000 Data Access Driver<br \/>\nDescription=Access the Demo Database<br \/>\nDatabase0=MSDB.DEMO.MINISOFT,WRITER,N,0<br \/>\n2HostTable=Customers<br \/>\nServer=000.000.000.000<br \/>\nServer Port=30006<br \/>\nJobname=MSJOB<br \/>\nUser=mgr<br \/>\nUser Password=? (Note: If a question mark is entered for the User Password, the user is prompted to enter their password)<br \/>\nGroup=DEMO<br \/>\nAccount=MINISOFT<br \/>\nAutoCommitDefault=ON<br \/>\nCatalog User=<br \/>\nCatalog Password=<br \/>\nSecurity Password=<br \/>\nWarningsAreErrors=YES<\/p>\n<hr size=\"1\" \/>\n<h4 class=\"subheads\"><strong><a name=\"Connect\"><\/a>SQLDriverConnect<\/strong><\/h4>\n<p>SQLRETURN SQLDriverConnect(<br \/>\nSQLHDBC ConnectionHandle,<br \/>\nSQLHWND WindowHandle,<br \/>\nSQLCHAR * InConnectionString,<br \/>\nSQLSMALLINT StringLength1,<br \/>\nSQLCHAR * OutConnectionString,<br \/>\nSQLSMALLINT BufferLength,<br \/>\nSQLSMALLINT * StringLength2Ptr,<br \/>\nSQLUSMALLINT DriverCompletion);<\/p>\n<p>Where InConnectionString is:<\/p>\n<p>DRIVER=HP3000 Data Access Driver;2DriverTable=;Database0=MSDB.DEMO.MINISOFT,WRITER,N,1;<br \/>\n2HostTable=Customers;Server=000.000.000.000;ServerPort=30006;Jobname=MSJOB;<br \/>\nUser=MGR;User Password=PASSWORD;Account=MINISOFT<\/p>\n","protected":false},"excerpt":{"rendered":"<p>The parameters in the standalone DSN table are also used in JDBC. Creating a File DSN based on an existing DSN You must create a File DSN if you are using either MSExcel or MSQuery as your client application. On the other hand File DSNs are not needed for Server Release of MSOffice. If you [&hellip;]<\/p>\n","protected":false},"author":75,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[54,63],"tags":[],"_links":{"self":[{"href":"https:\/\/c002.minisoft.com\/support\/wp-json\/wp\/v2\/posts\/2397"}],"collection":[{"href":"https:\/\/c002.minisoft.com\/support\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/c002.minisoft.com\/support\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/c002.minisoft.com\/support\/wp-json\/wp\/v2\/users\/75"}],"replies":[{"embeddable":true,"href":"https:\/\/c002.minisoft.com\/support\/wp-json\/wp\/v2\/comments?post=2397"}],"version-history":[{"count":6,"href":"https:\/\/c002.minisoft.com\/support\/wp-json\/wp\/v2\/posts\/2397\/revisions"}],"predecessor-version":[{"id":2409,"href":"https:\/\/c002.minisoft.com\/support\/wp-json\/wp\/v2\/posts\/2397\/revisions\/2409"}],"wp:attachment":[{"href":"https:\/\/c002.minisoft.com\/support\/wp-json\/wp\/v2\/media?parent=2397"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/c002.minisoft.com\/support\/wp-json\/wp\/v2\/categories?post=2397"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/c002.minisoft.com\/support\/wp-json\/wp\/v2\/tags?post=2397"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}