PC Review


Reply
Thread Tools Rate Thread

How to close SQL Server connection created by CDaoTableDef

 
 
=?Utf-8?B?RWxpIFBlYXJsbXV0ZXI=?=
Guest
Posts: n/a
 
      9th Sep 2007
Hi all,

Can some one instruct me of how i will make sure that the SQL Server 2000
connection i have created after call CDaoTableDef::Create and
CDaoTableDef::Append will be closed when i call to CDaoTableDef::Close.

for some reson the SQL connection i have created remain in SQL server.
In my code i create a link table to my SQL server using ODBC.

here are the parameters:
void CDaoTableDef::Create(LPCTSTR lpszName, long lAttributes,
LPCTSTR lpszSrcTable, LPCTSTR lpszConnect)
lpszName = 'Link_Provider'
lAttributes = 0
lpszSrcTable = 'Provider'
lpszConnect=
{"ODBC;APP=BOGUS_CONNECTION;FILEDSN=D:\Views\eli_2.18.7_BUS3\sources\IPR\Patient Record\DEV2005.dsn;DATABASE=siteDB;UID=xx;PWD=xx;WSID=ELIP_WXP"}

when i call to CDaoTableDef::Append the SQL connection is created in the
SQL server and then when i call CDaoTableDef::Close, the connecton remain.

Does any one have any idea what i can do?

 
Reply With Quote
 
 
 
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
server unexpectedly close the connection =?Utf-8?B?RGF2ZQ==?= Microsoft Frontpage 9 14th Sep 2006 07:29 PM
Server socket problem.. client sees connection close before all data received CHRISM Microsoft VB .NET 1 12th Nov 2004 02:42 PM
How to make SQL Server close session when connection is lost? =?Utf-8?B?UGVyIEhlbGxiZXJn?= Microsoft ADO .NET 3 28th Jun 2004 06:22 PM
So Close - Server Internet Connection =?Utf-8?B?Q2hyaXMgV2hpdGUgLSBTdGlybGluZw==?= Microsoft Windows 2000 Networking 3 19th Apr 2004 03:23 PM
KB319660 : CDaoTableDef::CreateField failed with 8 characters string Fuochi Microsoft VC .NET 0 30th Sep 2003 07:12 AM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 06:35 PM.