error about django to connecct newes mssql2008

Posted by qq263020776 on Stack Overflow See other posts from Stack Overflow or by qq263020776
Published on 2010-06-09T02:26:49Z Indexed on 2010/06/09 2:32 UTC
Read the original article Hit count: 400

I am using django-mssql and SQL Server 2008, but I found that it always errors when I do some commands,for example:

python manage.py syncdb

the error is below:

raise OperationalError(e, "Error opening connection: " + connection_string)
ngo.db.backends.sqlserver_ado.dbapi.OperationalError:
(com_error(-2147352567,
xb7\xa2\xc9\xfa\xd2\xe2\xcd\xe2\xa1\xa3', (0, u'Microsoft OLE DB
Provider for
L Server', u'[DBNETLIB][ConnectionOpen (Connect()).]SQL Server \u4e0d
\u5b58\u
8\u6216\u62d2\u7edd\u8bbf\u95ee\u3002', None, 0, -2147467259), None),
'Error
ning connection: PROVIDER=SQLOLEDB;DATA
SOURCE=115.238.106.100,60433;Network
rary=DBMSSOCN;Initial Catalog=rvdb_1;UID=sa;PWD=xxxx')

When I use Microsoft SQL Server Management studio client, I can successfully connect the database.

I got some infomation from: http://code.google.com/p/django-mssql/issues/detail?id=76 but I still tried I got wrong and I think the solution provided is wrong.

© Stack Overflow or respective owner

Related posts about python

Related posts about django