close

수안이의 컴퓨터 연구실

  • HOME
  • ABOUT
  • LOCAL LOG
  • TAGS
  • GUESTBOOK
  • ADMIN
  • NEW POST

'Access'에 해당되는 글 3건

  1. [2008/08/29] [ITFIND 메일진] 제361호
  2. [2008/01/30] 눈길가는 블로그 아티클 [1월 넷째주]
  3. [2007/07/10] ADO Connection Strings

[ITFIND 메일진] 제361호

[Information Technology/ITFIND Mailzine]
기술동향
  • [전송통신] 통신사업자의 기업 민첩성(Business Agility) 실현을 위해 SDP를 넘어 SDF로!
    한국정보통신기술협회 2008-08-25
  • [정보기술] 정보통신 표준화와 기후 변화
    한국정보통신기술협회 2008-08-25
  • 피싱과 안티피싱 기술의 동향
    IITA정보서비스단 2008-09-03
  • 인텔리전트 가로등을 이용한 u-City 인프라 구축 및 도시통합운영센터 수익모델 확보방안
    IITA정보서비스단 2008-09-03
  • 우주전파 수신을 위한 융합기술 개요
    IITA정보서비스단 2008-09-03
  • SQL Server 효과적인 데이터베이스 유지 관리를 위한 유용한 팁
    마이크로소프트 2008-08-21
  • Microsoft Office Access 데이터베이스와 SharePoint 통합
    마이크로소프트 2008-08-21
  • SQL Server SQL Server의 차단 최소화
    마이크로소프트 2008-08-21
  • SQL Server 2008 데이터 웨어하우스 쿼리 성능
    마이크로소프트 2008-08-21
  • SQL Server 2008 새로운 데이터 형식
    마이크로소프트 2008-08-21
  • Hey, Scripting Guy! 데이터베이스 스크립트의 귀환
    마이크로소프트 2008-08-22
  • 최적의 비즈니스 환경을 구축하라 오라클 SOA의지원
    한국오라클 2008-08-22
  • GRC를 위한 보안솔루션 Identity Management Solution
    한국오라클 2008-08-22
  • 규제 환경 속에서 유기적 컨텐츠 관리를 가능케 하다 Enterprise Contents Management
    한국오라클 2008-08-22
  • SQL Q&A 데이터베이스 크기 증가, IFilter 사용 및 원격 연결
    마이크로소프트 2008-08-22
  • SQL Q&A I/O 오류, 데이터베이스 미러링 및 기타
    마이크로소프트 2008-08-25
  • Communications and Collaboration 통합 메시징으로 마이그레이션 계획
    마이크로소프트 2008-08-22
  • 완벽한 기업 관리를 위해 필요한 모든 것
    한국IBM 2008-08-25
  • 기업성과의 극대화를 위한 Governance, Risk and Compliance Solution
    한국오라클 2008-08-25
  • SOA로 하나되는 비즈니스 솔루션
    한국오라클 2008-08-25
  • 효과적인 백업, 신속한 복구
    한국 오라클 2008-08-27
  • [신제품 발표] 에너지와 공간이 절반. 비밀은 90도의 발상 전환!
    한국IBM 2008-08-27
  • Project Big Green 1.0 이후 국내 데이터센터의 변화와 미래
    한국IBM 2008-08-27
  • 그린 데이터 센터 운영을 위한 관리 솔루션
    한국IBM 2008-08-27
  • 그린 데이터 센터를 위한 혁신적 기술
    한국IBM 2008-08-27
  • 비즈니스의 변화를 위한 그린 아젠다
    한국IBM 2008-08-27
  • MAXIMO - 글로벌 플랜트 관리를 위한 월드 스탠다드 설비 관리 시스템
    한국 IBM 2008-08-27
  • 통합로그 관리방안
    한국IBM 2008-08-27
  • 아카이빙의 최적화된 스토리지 소개
    한국IBM 2008-08-27
  • IBM 의 SAP Data Archiving Solution 소개 및 구축 사례
    한국IBM 2008-08-27
  • ECM & Compliance
    한국IBM 2008-08-27
  • 최적의 DB 아카이빙 솔루션 - IBM Optim
    한국IBM 2008-08-27
  • Fanancing을 통한 TCO절감 및 성공사례
    한국IBM 2008-08-27
  • 핵심 경쟁력 유지를 위한 IBM VIA 솔루션 및 사례 소개
    한국IBM 2008-08-27
  • 고객 사례(Oracle Customer)
    한국 오라클 2008-08-27
  • 비즈니스 연속성 확보 - DBA들의 과제(오라클)
    한국오라클 2008-08-27
  • 예측형 엔터프라이즈(Predictive Enterprise) 구현(Intel)
    한국오라클 2008-08-27
  • 고가용성과 비즈니스 성과 향상을 위한 Adaptive Infrastructure(HP)
    한국오라클 2008-08-27
  • 다운타임 비용절감을 위한 가용성 극대화(오라클)
    한국오라클 2008-08-27
시장동향
  • 이제는 고부가가치로 - 휴대폰 케이스
    정보통신연구진흥원 2008-08-22
  • 전세계 가정 브로드밴드 보급률 2012년 25% 전망
    IITA정보서비스단 2008-09-03
  • 중국 중소기업의 전자상거래 사이트 2008년 45% 증가
    IITA정보서비스단 2008-09-03
  • 포괄적이고도 적극적인 고객 중심 서비스 Oracle CRM On Demand를 통한 가치 창출
    한국오라클 2008-08-25
  • IFRS 전환을 위해 해결해야 할 과제
    한국오라클 2008-08-25
  • 생체인식 기술의 확산과 기술적인 변화
    한국소프트웨어진흥원 2008-08-25
  • 전자문서 시대를 앞당기는 공인전자문서보관소
    한국소프트웨어진흥원 2008-08-25
  • 기업용 검색엔진 기업, 서비스 분야로 사업 확대
    전자신문 2008-08-26
  • SW 무료배포 기업용으로 확산
    디지털타임즈 2008-08-21
  • WEB2.0 기반의 IPTV 미들웨어
    한국소프트웨어진흥원 2008-08-26
  • 신도리코, 전사업무통합 문서관리 시장을 선도하고자 지능형 복합기 출시
    한국오라클 2008-08-27
  • 기후 변화 및 친환경 경영 시대의 글로벌 시장의 변화 : 도전과 기회
    한국IBM 2008-08-27
  • IBM-Juniper WAN Accelator 솔루션 및 사례 소개
    한국IBM 2008-08-27
산업동향
  • 일본 기업의 비즈니스 혁신에 대한 IT의 기여도는 20% 내외
    IITA정보서비스단 2008-09-03
  • 분자선 에피택시 분야 특허 동향
    IITA정보서비스단 2008-09-03
  • 서비스 산업의 정보화 현황 및 향후 과제
    한국정보사회진흥원 2008-08-27
  • 국내 중소기업의 정보화 실태 조사
    대한상공회의소 2008-08-21
  • 유선통신 서비스 산업분석 및 전망
    하나금융경영연구소 2008-06-09
  • 국내.외 태양전지 시장 및 업체 현황
    하나금융경영연구소 2008-06-04
  • 고객 경험 관리의 문제점과 개선 포인트
    LG경제연구원 2008-08-26
  • 고객 경험도 하나의 브랜드다
    LG경제연구원 2008-08-26
  • 가천의대길병원, Oracle BAM 기반으로 국내 최초의 의료정보이벤트모니터링 시스템 구축
    한국오라클 2008-08-27
  • 부산항만공사, Oracle E-Business Suite로 동북아 물류 중심 기지로 비상
    한국오라클 2008-08-27
  • 생산설비 및 IT 자산과 미래의 최적화를 위해 필요한 모든 것
    한국IBM 2008-08-27
정책동향
  • 2008년도 월간 enter 08월호 소식지
    컴퓨터프로그램보호위원회 2008-08-20
  • "더빙10"과 사적보상금제도
    컴퓨터프로그램보호위원회 2008-08-21
  • 디지털정보법률자료실 2008년8월3주 신착자료
    컴퓨터프로그램보호위원회 2008-08-21
  • [동향분석] 8월 4주 정보보호동향
    한국정보보호진흥원 2008-08-22
  • 2008 국가정보화백서
    한국정보사회진흥원 2008-08-25
  • 일본의 에너지 혁명 : 선샤인 및 문라이트 정책
    현대경제연구원 2008-08-19
  • 장기적 소비부진의 원인분석
    SERI 2008-08-27
  • 국제사회의 파리선언 이행 현황과 시사점
    대외경제정책연구원 2008-08-28
  • Project Big Green 1.0 이후 국내 데이터센터의 변화와 미래
    한국IBM 2008-08-28
  • DCS와 CMMS의 연계방안
    한국IBM 2008-08-27
  • 설비 관리 시스템 데이터 구축 방안
    한국IBM 2008-08-27
  • 공공기록물관리 혁신 추진 현황과 기업기록물 관리의 방향
    한국IBM 2008-08-27
해외동향
  • 중국, 2008년 상반기 인터넷 저작권 사건 큰 폭 증가
    컴퓨터프로그램보호위원회 2008-08-21
  • 영국 스팸 메일, 2008년 초 이후 대폭 증가
    PublicTechnology 2008-08-26
  • 영국 맨체스터 공항, 출입국 관리용 얼굴 인식시스템 테스트
    ITPro 2008-08-26
  • 미국과 EU, IT 첨단제품 관세 부과 논쟁으로 법정 대립
    한국정보사회진흥원 2008-08-26
  • 미국 의회, 온라인 개인정보보호 추진 예정
    Businessweek 2008-08-26
  • 미국 FCC, 유휴주파수에 대한 처리 규정 마련 계획
    computerworld 2008-08-26
  • 영국, IT 신기술을 통한 R&D 집중 투자로 미래형 제조업 선도
    http://www.publictechnology.net 2008-08-26
  • 북경올림픽 이후 중국 소비시장의 변화와 대응방안
    산업연구원 2008-08-22
  • 러시아 에너지자원 생산 정체의 배경과 의미
    LG경제연구원 2008-08-25
이올린에 북마크하기(0) 이올린에 추천하기(0)
TAG. Access, BAM, CMMS, Collaboration, Communications, Compliance, DCS, ECM, 데이터센터, Fanancing, GRC, IFRS, ITPV, 피싱, 안티피싱, 우주전파, 인텔리전트 가로등, MAXIMO, Optim, SAP, SDF, SDP, SharePoint, SOA, SQL Server, TCO, u-City, Web 2.0
트랙백이 없고, 댓글이 없습니다.

이 글의 트랙백 주소 :: http://www.webdizen.net/blog/trackback/3274

::: 사람과 사람의 교감! 人터넷의 첫 시작! 댓글을 달아주세요! :::

[로그인][오픈아이디란?]

눈길가는 블로그 아티클 [1월 넷째주]

[Webdizen/Blog]
구글 미팅 후의 기념품
저도 가지고 싶어 지네요;;

구글이 뉴욕타임즈를 사고, 네이버가 조선일보를 산다면?
재미있네요... 사실적인 이야기가 될 수도 있겠네요 ㅋ

Secure Coding in C and C++
다음 책 구매할 시 사야겠네요...

파일의 백업, 싱크, 암호화를 간편하게 - Toucan
이런거 만들어 보려고 계획했었는데... 멋진게 나와있었군요;

웹 캘린더 (Web Calendar)
지금은 구글 캘린더를 쓰고 있는데... 다음 캘린더도 괜찮네요...

종이로 CD 케이스 만들수 있게 프린트 해주는 사이트 - paper cd case
이럴수가... 이거 완전 유용한걸요? ㅋㅋ

[정의] 웹 2.0(Web 2.0)의 의미를 생각해보자!
깔끔하게 정리하셨네요 ^^

천박한 이명박과 이건희는 빌 게이츠 본받아야...

인간이 극복해야할 6가지 결점

행복해지는 습관 12가지

손금, 한번 파헤쳐보자~!
손금에 관심이 많은데... 손금 관련 서적도 하나 구매해 봐야겠다.

예술적인 네트워크라인 작업
저도 학교안에서 일하면서 자주 접했던 네트워크 라인 작업인데...
이렇게 매력적으로도 구축이 가능하군요? 헐!

텍스트큐브 1.6 베타 프리뷰
이제 테터툴즈에서 텍스트큐브로 넘어가야 할텐데...
스킨 때문에 고민이네요. 하나 직접 만들어 보려고 하는데...

내가 아이팟을 사용할 수밖에 없는 이유 6가지

세계맥주 순위 1위~10위
왠만한건 다 먹어봤는데... 중국 맥주는 안먹어봤네요; ㅋ

Wubi - 우분투를 한방에 설치하자
동아리에서 리눅스 가르쳐 줄때 항상 불편했는데... 이렇게 간단한 방법이 있었군요!

세계 10대 검색엔진 랭킹 발표!!!
NHN이 6위네요? 이럴수가;;

블로그의 전문성과 네트워크의 발달
정보꼬뮨님 글을 정말 잘 쓰시는 것 같다.

MS Access SQL Injection Cheat Sheet

SQL Injection 해킹 관련 자료, zxarps.exe Cain & Abel 등

DBCC 명령어 - 데이터베이스, 테이블, 인덱스, 카탈로그, 파일그룹 관리


학위논문 검색 및 활용하기 1: 국내편
학위논문 검색 및 활용하기 2: 해외편
굉장히 유용한 정보가 될 거 같아요.

NHN도 IPTV 서비스 시작!!!
시작했군요! NHN ㅋㅋ

Naver Lab... 흥미로운 시도군요.
재미있는게 많이 있네요 ㅋㅋ

Brand is Relationship
깔끔하게 정리되어있는게 좋네요.
이올린에 북마크하기(0) 이올린에 추천하기(0)
TAG. Access, Brand, DBCC, 네트워크 라인, 네이버, 뉴욕타임즈, 맥주, 백업, 검색엔진, 구글, 블로그, 빌 게이츠, IPTV, 세계맥주, 텍스트큐브, 손금, 싱크, 아이팟, 암호화, 우분투, 웹 2.0, 웹 캘린더, 이명박, 이건희, 조선일보, 종이, Naver Lab, NHN, SQL, SQL Injection, Wubi
트랙백이 없고, 댓글이 없습니다.

이 글의 트랙백 주소 :: http://www.webdizen.net/blog/trackback/3174

::: 사람과 사람의 교감! 人터넷의 첫 시작! 댓글을 달아주세요! :::

[로그인][오픈아이디란?]

ADO Connection Strings

[Programming/Database Programming]
출처 : http://www.codeproject.com/database/connectionstrings.asp?print=true

Overview

Generally, one of the first steps when you are trying to work with databases is open it. You can find several types of those, and each have a different mode of connection. When you try to connect with your database sometimes, you don't know the correct connection string that you must use. It is for that I wrote this article. I wanted to compile the connection strings to the majority of known databases...

ODBC DSN Less Connection

ODBC Driver for dBASE

strConnection = _T("Driver={Microsoft dBASE Driver (*.dbf)};DriverID=277;"
"Dbq=c:\\DatabasePath;");

Note: You must specify the filename in the SQL statement... For example:

CString strQuery = _T("Select Name, Address From Clients.dbf");

ODBC Driver for Excel

strConnection = _T("Driver={Microsoft Excel Driver (*.xls)};DriverId=790;"
bq=C:\\DatabasePath\\DBSpreadSheet.xls;DefaultDir=c:\\databasepath;");

ODBC Driver for Text

strConnection = _T("Driver={Microsoft Text Driver (*.txt; *.csv)};"
"Dbq=C:\\DatabasePath\\;Extensions=asc,csv,tab,txt;");

If you are using tab delimited files, you must create the schema.ini file, and you must inform the Format=TabDelimited option in your connection string.

Note: You must specify the filename in the SQL statement... For example:

CString strQuery = _T("Select Name, Address From Clients.csv");

Visual FoxPro

If you are using a database container, the connection string is the following:

strConnection = _T("Driver={Microsoft Visual Foxpro Driver};UID=;"
ourceType=DBC;SourceDB=C:\\DatabasePath\\MyDatabase.dbc;Exclusive=No");

If you are working without a database container, you must change the SourceType parameter by DBF as in the following connection string:

strConnection = _T("Driver={Microsoft Visual Foxpro Driver};UID=;"
"SourceType=DBF;SourceDB=C:\\DatabasePath\\MyDatabase.dbc;Exclusive=No");

ODBC Driver for Access

strConnection = _T("Driver={Microsoft Access Driver (*.mdb)};"
"Dbq=c:\\DatabasePath\\dbaccess.mdb;Uid=;Pwd=;");

If you are using a Workgroup (System database): you need to inform the SystemDB Path, the User Name and its password. For that, you have two solutions: inform the user and password in the connection string or in the moment of the open operation. For example:

strConnection = _T("Driver={Microsoft Access Driver (*.mdb)};"
"Dbq=C:\\VC Projects\\ADO\\Samples\\AdoTest\\dbTestSecurity.mdb;"
"SystemDB=C:\\Program Files\\Microsoft Office\\Office\\SYSTEM.mdw;"
"Uid=Carlos Antollini;Pwd=carlos");

or may be:

strConnection = _T("Driver={Microsoft Access Driver (*.mdb)};"
"Dbq=C:\\VC Projects\\ADO\\Samples\\AdoTest\\dbTestSecurity.mdb;"
"SystemDB=C:\\Program Files\\Microsoft Office\\Office\\SYSTEM.mdw;");
if(pDB.Open(strConnection, "DatabaseUser", "DatabasePass"))
{
DoSomething();
pDB.Close();
}

If you want to open in Exclusive mode:

strConnection = _T("Driver={Microsoft Access Driver (*.mdb)};"
"Dbq=c:\\DatabasePath\dbaccess.mdb;Exclusive=1;");

ODBC Driver for SQL Server

For Standard security:

strConnection = _T("Driver={SQL Server};Server=MyServerName;"
"Trusted_Connection=no;"
"Database=MyDatabaseName;Uid=MyUserName;Pwd=MyPassword;");

For Trusted Connection security (Microsoft Windows NT integrated security):

strConnection = _T("Driver={SQL Server};Server=MyServerName;"
"Database=myDatabaseName;Uid=;Pwd=;");

Also, you can use the parameter Trusted_Connection that indicates that you are using the Microsoft Windows NT Authentication Mode to authorize user access to the SQL Server database. For example:

strConnection = _T("Driver={SQL Server};Server=MyServerName;"
"Database=MyDatabaseName;Trusted_Connection=yes;");

If the SQL Server is running in the same computer, you can replace the name of the server by the word (local) like in the following sample:

strConnection = _T("Driver={SQL Server};Server=(local);"
"Database=MyDatabaseName;Uid=MyUserName;Pwd=MyPassword;");

If you want to connect with a remote SQL Server, you must inform the address, the port, and the Network Library to use:

The Address parameter must be an IP address and must include the port. The Network parameter can be one of the following:

  • dbnmpntw Win32 Named Pipes
  • dbmssocn Win32 Winsock TCP/IP
  • dbmsspxn Win32 SPX/IPX
  • dbmsvinn Win32 Banyan Vines
  • dbmsrpcn Win32 Multi-Protocol (Windows RPC)

For more information, see Q238949.

strConnection = _T("Driver={SQL Server};Server=130.120.110.001;"
"Address=130.120.110.001,1052;Network=dbmssocn;Database=MyDatabaseName;"
"Uid=myUsername;Pwd=myPassword;");

ODBC Driver for Oracle

For the current Oracle ODBC driver from Microsoft:

strConnect = _T("Driver={Microsoft ODBC for Oracle};Server=OracleServer.world;"
"Uid=MyUsername;Pwd=MyPassword;");

For the older Oracle ODBC driver from Microsoft:

strConnect = _T("Driver={Microsoft ODBC Driver for Oracle};"
"ConnectString=OracleServer.world;Uid=myUsername;Pwd=myPassword;");

ODBC Driver for MySQL

If you want to connect to a local database, you can use a connection string like the following:

strConnect = _T("Driver={MySQL ODBC 3.51 Driver};Server=localhost;"
"Database=MyDatabase;User=MyUserName;Password=MyPassword;Option=4;");

If you want to connect with a remote database, you need to specify the name of the server or its IP in the Server parameter. If the Port is distinct to 3306 (default port), you must specify it.

strConnect = _T("Driver={mySQL ODBC 3.51 Driver};Server=MyRemoteHost;"
"Port=3306;Option=4;Database=MyDatabase;Uid=MyUsername;Pwd=MyPassword;");

The parameter Option can be one or more of the following values:

  • 1 - The client can't handle that MyODBC returns the real width of a column.
  • 2 - The client can't handle that MySQL returns the true value of affected rows. If this flag is set then MySQL returns 'found rows' instead. One must have MySQL 3.21.14 or newer to get this to work.
  • 4 - Make a debug log in c:\myodbc.log. This is the same as putting MYSQL_DEBUG=d:t:O,c::\myodbc.log in AUTOEXEC.BAT.
  • 8 - Don't set any packet limit for results and parameters.
  • 16 - Don't prompt for questions even if driver would like to prompt.
  • 32 - Enable or disable the dynamic cursor support. This is not allowed in MyODBC 2.50.
  • 64 - Ignore use of database name in 'database.table.column'.
  • 128 - Force use of ODBC manager cursors (experimental).
  • 256 - Disable the use of extended fetch (experimental).
  • 512 - Pad CHAR fields to full column length.
  • 1024 - SQLDescribeCol() will return fully qualified column names.
  • 2048 - Use the compressed server/client protocol.
  • 4096 - Tell server to ignore space after function name and before '(' (needed by PowerBuilder). This will make all function names keywords!
  • 8192 - Connect with named pipes to a MySQLd server running on NT.
  • 16384 - Change LONGLONG columns to INT columns (some applications can't handle LONGLONG).
  • 32768 - Return 'user' as Table_qualifier and Table_owner from SQLTables (experimental).
  • 65536 - Read parameters from the client and ODBC groups from my.cnf.
  • 131072 - Add some extra safety checks (should not be needed but...).

If you want to have multiple options, you should add the above flags! For example: 16 + 1024 = 1030 and use Option= 1030;.

For more information, go to MyODBC Reference Manual.

ODBC Driver for AS400

strConnect = _T("Driver={Client Access ODBC Driver (32-bit)};System=myAS400;"
"Uid=myUsername;Pwd=myPassword;");

ODBC Driver for SyBase

strConnect = _T("Driver={Sybase System 10};Srvr=MyServerName;Uid=MyUsername;"
"Pwd=myPassword;");

ODBC Driver for Sybase SQL AnyWhere

strConnect = _T("ODBC;Driver=Sybase SQL Anywhere 5.0;"
"DefaultDir=C:\\DatabasePath\;Dbf=C:\\SqlAnyWhere50\\MyDatabase.db;"
"Uid=MyUsername;Pwd=MyPassword;Dsn=\"\";");

DSN Connection

ODBC DSN

strConnect = _T("DSN=MyDSN;Uid=MyUsername;Pwd=MyPassword;");

OLE DB Provider

OLE DB Provider for SQL Server

For Standard security:

strConnect = _T("Provider=sqloledb;Data Source=MyServerName;"
"Initial Catalog=MyDatabaseName;"
"User Id=MyUsername;Password=MyPassword;");

For Trusted Connection security (Microsoft Windows NT integrated security):

strConnect = _T("Provider=sqloledb;Data Source=MyServerName;"
"Initial Catalog=MyDatabaseName;"
"Integrated Security=SSPI;");

If you want to connect to a "Named Instance" (SQL Server 2000), you must to specify Data Source=Servere Name\Instance Name like in the following example:

strConnect = _T("Provider=sqloledb;Data Source=MyServerName\MyInstanceName;"
"Initial Catalog=MyDatabaseName;User Id=MyUsername;Password=MyPassword;");

If you want to connect with a SQL Server running on the same computer, you must specify the keyword (local) in the Data Source like in the following example:

strConnect = _T("Provider=sqloledb;Data Source=(local);"
"Initial Catalog=myDatabaseName;"
"User ID=myUsername;Password=myPassword;");

To connect to SQL Server running on a remote computer (via an IP address):

strConnect = _T("Provider=sqloledb;Network Library=DBMSSOCN;"
"Data Source=130.120.110.001,1433;"
"Initial Catalog=MyDatabaseName;User ID=MyUsername;"
"Password=MyPassword;");

OLE DB Provider for MySQL (By Todd Smith)

strConnection = _T("Provider=MySQLProv;Data Source=test");

Where test is the name of MySQL database. Also, you can replace the name of the database by the following connection string: server=localhost;DB=test.

OLE DB Provider for AS400

strConnect = _T("Provider=IBMDA400;Data source=myAS400;User Id=myUsername;"
"Password=myPassword;");

For more information, see: Using the OLE DB Provider for AS/400 and VSAM.

OLE DB Provider for Active Directory

strConnect = _T("Provider=ADSDSOObject;User Id=myUsername;Password=myPassword;");

For more information, see: Microsoft OLE DB Provider for Microsoft Active Directory Service.

OLE DB Provider for DB2

If you are using a TCP/IP connection:

strConnect = _T("Provider=DB2OLEDB;Network Transport Library=TCPIP;"
"Network Address=130.120.110.001;"
"Initial Catalog=MyCatalog;Package Collection=MyPackageCollection;"
"Default Schema=MySchema;User ID=MyUsername;Password=MyPassword;");

If you are using APPC connection:

strConnect = _T("Provider=DB2OLEDB;APPC Local LU Alias=MyLocalLUAlias;"
"APPC Remote LU Alias=MyRemoteLUAlias;Initial Catalog=MyCatalog;"
"Package Collection=MyPackageCollection;Default Schema=MySchema;"
"User ID=MyUsername;Password=MyPassword;");

For more information, see: Using the OLE DB Provider for DB2.

OLE DB Provider for Microsoft Jet

  • Connecting to an Access file using the JET OLE DB Provider:

    Using Standard security:

    strConnect = _T("Provider=Microsoft.Jet.OLEDB.4.0;"
    "Data Source=C:\\DatabasePath\\MmDatabase.mdb;"
    "User Id=admin;Password=;");

    If you are using a Workgroup (System database):

    strConnect = _T("Provider=Microsoft.Jet.OLEDB.4.0;"
    "Data Source=C:\\DataBasePath\\mydb.mdb;"
    "Jet OLEDB:System Database=MySystem.mdw;");
    pRs.Open(strConnect, "MyUsername", "MyPassword");
  • Connecting to an Excel Spreadsheet using the JET OLE DB Provider:
    strConnect = _T("Provider=Microsoft.Jet.OLEDB.4.0;"
    "Data Source=C:\\DatabasePath\\DBSpreadSheet.xls;"
    "Extended Properties=\"\"Excel 8.0;HDR=Yes;\"\";");

    Note: If "HDR=Yes", the provider will not include the first row of the selection into the recordset. If "HDR=No", the provider will include the first row of the cell range (or named ranged) into the recordset.

    For more information, see: Q278973.

  • Connecting to a Text file using the JET OLE DB Provider:
    strConnect = 
    _T("Provider=Microsoft.Jet.OLEDB.4.0;Data Source=C:\\DatabasePath\\;"
    "Extended Properties=\"\"text;"
    "HDR=Yes;FMT=Delimited;\"\";");

    Note: You must specify the filename in the SQL statement... For example:

    CString strQuery = _T("Select Name, Address From Clients.txt");

    For more information, see: Q262537.

  • Connecting to an Outlook 2000 personal mail box using the JET OLE DB Provider: (By J. Cardinal)
    strConnect = _T("Provider=Microsoft.Jet.OLEDB.4.0;Outlook 9.0;"
    "MAPILEVEL=;DATABASE=C:\\Temp\\;")

    Replace c:\temp with any temporary folder. It will create a schema file in that folder when you open it which shows all the fields available. Blank MAPILEVEL indicates top level of folders).

  • Connecting to an Exchange mail box through JET: (By J. Cardinal)
    strConnect = _T("Provider=Microsoft.Jet.OLEDB.4.0;Exchange 4.0;"
    "MAPILEVEL=Mailbox - Pat Smith|;DATABASE=C:\\Temp\\;")

    You must replace c:\temp with any temporary folder.

    Replace Pat Smith with the name of the mail box and you must keep vertical pipe character | to indicate top level of folders. Place sub folder after vertical pipe if accessing specific folder.

    Note: you can enter queries against the mail store just like a database... For example:

    CString strQuery = _T("SQL "SELECT Contacts.* FROM Contacts;");

    For more information, see: The Jet 4.0 Exchange/Outlook IISAM.

OLE DB Provider for ODBC Databases

If you want to connect with a Microsoft Access database:

strConnect = _T("Provider=MSDASQL;Driver={Microsoft Access Driver (*.mdb)};"
"Dbq=c:\\DatabasePath\\MyDatabase.mdb;Uid=MyUsername;Pwd=MyPassword;");

If you want to connect with a SQL Server database:

strConnect = _T("Provider=MSDASQL;Driver={SQL Server};Server=MyServerName;"
"Database=MyDatabaseName;Uid=MyUsername;Pwd=MyPassword;");

If you want to use DSN:

strConnect = _T("Provider=MSDASQL;PersistSecurityInfo=False;"
"Trusted_Connection=Yes;"
"Data Source=MyDSN;catalog=MyDatabase;");

For more information, see: Microsoft OLE DB Provider for ODBC.

OLE DB Provider for OLAP

Microsoft® OLE DB for Online Analytical Processing (OLAP) is a set of objects and interfaces that extends the ability of OLE DB to provide access to multidimensional data stores.

strConnect = _T("Provider=MSOLAP;Data Source=MyOLAPServerName;"
"Initial Catalog=MyOLAPDatabaseName;");
Connection using HTTP:

This feature enables a client application to connect to an Analysis server through Microsoft® Internet Information Services (IIS) by specifying a URL in the Data Source property in the client application's connection string. This connection method allows PivotTable® Service to tunnel through firewalls or proxy servers to the Analysis server. A special Active Server Pages (ASP) page, Msolap.asp, enables the connection through IIS. The directory in which this file resides must be included as part of the URL when connecting to the server (for example, http://www.myserver.com/myolap/).

Using a URL
strConnect = _T("Provider=MSOLAP;Data Source=http://MyOLAPServerName/;"
"Initial Catalog=MyOLAPDatabaseName;");
Using SSL
strConnect = _T("Provider=MSOLAP;Data Source=https://MyOLAPServerName/;"
"Initial Catalog=MyOLAPDatabaseName;");

For more information, see: OLE DB for OLAP, Connecting Using HTTP.

OLE DB Provider for Oracle

OLE DB Provider for Oracle (from Microsoft)

The Microsoft OLE DB Provider for Oracle allows ADO to access Oracle databases.

strConnect = _T("Provider=MSDAORA;Data Source=MyOracleDB;User Id=myUsername;"
"Password=myPassword;");

For more information, see: Microsoft OLE DB Provider for Oracle.

OLE DB Provider for Oracle (from Oracle).

For Standard security:

strConnect = _T("Provider=OraOLEDB.Oracle;Data Source=MyOracleDB;"
"User Id=myUsername;Password=myPassword;");

For a Trusted connection:

  • OS Authenticated connect setting user ID to "/":
    strConnect = _T("Provider=OraOLEDB.Oracle;Data Source=MyOracleDB;"
    "User Id=/;Password=;");
  • OS Authenticated connect using OSAuthent:
    strConnect = _T("Provider=OraOLEDB.Oracle;Data Source=MyOracleDB;OSAuthent=1;")

    Note: "Data Source=" must be set to the appropriate Net8 name which is known to the naming method in use. For example, for Local Naming, it is the alias in the tnsnames.ora file; for Oracle Names, it is the Net8 Service Name.

For more information, see: