/[msmoney_db_parser]/trunk/libmsmoneyfile/MDBConnectionStringBuilder.cs
ViewVC logotype

Annotation of /trunk/libmsmoneyfile/MDBConnectionStringBuilder.cs

Parent Directory Parent Directory | Revision Log Revision Log


Revision 15 - (hide annotations) (download)
Mon Sep 19 05:09:46 2016 UTC (3 years, 5 months ago) by william
File size: 1131 byte(s)
add some files that were not comitted
1 william 15 using System;using System.Text;
2    
3     namespace libmsmoneyfile
4     {
5     public sealed class MDBConnectionStringBuilder : ConnectionStringBuilder, IConnectionStringBuilder
6     {
7     private string m_database;
8     public MDBConnectionStringBuilder (string database) :base()
9     {
10     m_database = database;
11     }
12    
13    
14     protected override string CreateConnectionString ()
15     {
16     StringBuilder sb = new StringBuilder ();
17     //sb.AppendFormat ("DRIVER={0};", "Microsoft Access Driver (*.mdb)");
18     //sb.AppendFormat ("DESCRIPTION={0};", "temporary database file");
19     //sb.AppendFormat ("DRIVER={0};", "/usr/lib/x86_64-linux-gnu/odbc/libmdbodbc.so");
20     //sb.AppendFormat ("DATABASE={0};", m_database);
21     //sb.AppendFormat ("DSN={0};", "test");
22     // sb.AppendFormat ("Driver={0};", "Microsoft Access Driver (*.mdb)");
23     // sb.AppendFormat ("DBQ=///{0};", m_database);
24     // sb.AppendFormat ("UID={0};", "");
25     // sb.AppendFormat ("PWD={0};", "");
26     sb.AppendFormat ("DSN={0};", "mdb_test");
27    
28     //sb.AppendFormat ("Driver={0};", "{Microsoft Access Driver (*.mdb, *.accdb)}");
29     //sb.AppendFormat ("Dbq={0};", m_database);
30     return sb.ToString ();
31     }
32     }
33     }
34    

  ViewVC Help
Powered by ViewVC 1.1.22