I
I
Ivan Melnikov2019-02-20 11:49:25
Python
Ivan Melnikov, 2019-02-20 11:49:25

Why can't I connect to the 1C 8.3 database via a COM connection?

On a physical server 1C 8.3 I am trying to connect to the 1C database via a COM connection:

#coding=cp1251
import pythoncom
import win32com.client
V83_CONN_STRING = 'Srvr="T";Ref="upp";Usr="Иванов Иван";Pwd="123456";'
pythoncom.CoInitialize()
V83 = win32com.client.Dispatch("V83.COMConnector").Connect(V83_CONN_STRING)

Error builtins.AttributeError: V83.COMConnector.Connect
5c6d12500acdd534362169.png
What could be the problem?
Windows Server 2012 R2, 1C:Enterprise 8.3, MsSQL database.
Prior to that, I uploaded the database to a file and connected to the database via a COM connection on my personal computer. Everything was normal. Maybe I screwed up with the connection string?

Answer the question

In order to leave comments, you need to log in

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question