Log inUsernamePassword
Log me on automatically each visit    
Register
Register
Log in to check your private messages
Log in to check your private messages
Visual Basic Forum for Visual Basic Programmers VB Forum Index » Database & Reporting

Post new topic   Reply to topic
Problems with Upgradation
View previous topic :: View next topic  
Author Message
ourspt
Freshman


Joined: 14 Dec 2004
Posts: 34

PostPosted: Dec 14th, 2004 06:07 AM    Post subject: Problems with Upgradation Reply with quote

Hi All,

I am finding a typical problem while running my Visual Basic source code.

My code was as below:

**************************************************************************************************************************************************
Public Function GetConnection(ByVal strDBAccessString As String, ByVal blnReadOnly As Boolean) As ADODB.Connection

Dim conDb As ADODB.Connection

Set conDb = New ADODB.Connection
With conDb
.ConnectionString = modDBAccess.GetConnectionString(strDBAccessString, False)
.CursorLocation = adUseClient
.ConnectionTimeout = 30
.CommandTimeout = 300
If blnReadOnly Then
.Mode = adModeRead
Else
.Mode = adModeReadWrite
End If
.Open
End With

Set GetConnection = conDb

End Function
*************************************************************************************************************************************************

Now, While i am working with the development environment having Windows XP(connecting to SQL 2000 installed in Windows OS 2000)

I am getting the following runtime error at the line (.Mode = adModeReadWrite)

Run-time error: '-2147168246 (8004d00a)'
New transaction cannot enlist in the specified transaction coordinator.

But while i am working with different development environment having OS 2000 Professional (connecting to SQL 2000 installed in Windows OS 2003), the source code is simply hanging at the same line (.Mode = adModeReadWrite).

Please help me in this regard, how to proceed further.

Thanks in Advance
Ourspt
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    Visual Basic Forum for Visual Basic Programmers VB Forum Index » Database & Reporting All times are GMT - 5 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Visual Basic Forum runs phpBB | Forum Template © iOptional
VB Resources | SSL | Visual Basic