Search
 
SCRIPT & CODE EXAMPLE
 

CSHARP

c# open access database mdb

using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Data.Oledb

namespace MembershipInformationSystem.Helpers
{
    public class dbs
    {
        private String connectionString;
        private String OleDBProvider = "Microsoft.JET.OLEDB.4.0"; if ACE Microsoft.ACE.OLEDB.12.0
        private String OleDBDataSource = "C:yourdb.mdb";
        private String OleDBPassword = "infosys";
        private String PersistSecurityInfo = "False";

        public dbs()
        {

        }

        public dbs(String connectionString)
        {
            this.connectionString = connectionString;
        }

        public String konek()
        {
            connectionString = "Provider=" + OleDBProvider + ";Data Source=" + OleDBDataSource + ";JET OLEDB:Database Password=" + OleDBPassword + ";Persist Security Info=" + PersistSecurityInfo + "";
            return connectionString;
        }
    }
}
Comment

PREVIOUS NEXT
Code Example
Csharp :: cross thread exception in c# control 
Csharp :: c# list any retun indec 
Csharp :: how to query items with any id in a list of ids linq c# 
Csharp :: wpf textbox insert text at caret position 
Csharp :: null-conditional operators c# 
Csharp :: Options Pattern startup.cs configuration 
Csharp :: C# scrape html document 
Csharp :: conncet oracle database in c# visual studio 
Csharp :: C# top down view movement 
Csharp :: flat view player movement script 
Csharp :: #dictionery in c 
Csharp :: unity color alpha not working 
Csharp :: How to decode Microsoft Local token in service 
Csharp :: change skybox color unity 
Csharp :: c# dictionary check if value exists 
Csharp :: c# enum to list of strings 
Csharp :: count number of rows in a table in c# 
Csharp :: c# how to get a file path from user 
Csharp :: httpclient getstringasync 
Csharp :: c# listview add items horizontally 
Csharp :: C# random multiple of 5 in range 
Csharp :: play sound in sequence unity 
Csharp :: check if multiple variables are null c# 
Csharp :: how to call last string from text file C# 
Csharp :: create stripe subscription pay_immediately 
Csharp :: c# yield return ienumerable 
Csharp :: quaternion to euler 
Csharp :: unity animation length 
Csharp :: what is int.parse in c# 
Csharp :: exit form esc winforms 
ADD CONTENT
Topic
Content
Source link
Name
1+4 =