Re: [Imdbpy-help] SQL Server Express 2008 R2 - Connection Error

2012-04-08 Thread Davide Alberani
On Tue, Apr 3, 2012 at 05:42, Damien  wrote:
>
>  File "pymssql.pyx", line 549, in pymssql.connect (pymssql.c:7110)
> sqlalchemy.exc.OperationalError: (OperationalError) (20009, 'Net-Lib error 
> durin
> g Unknown error') None None
   [...]
> I have created a blank DB in SQL Server which I can connect to okay using SQL
> Server Management Studio. I would expect the error messages to be a little 
> more
> helpful, perhaps stating the login is incorrect or something - but the last 
> few
> lines seem to indicate something is broken :(

Yep. :-(
Sorry, but I know next to nothing about databases on a Windows environment,
so I can't be of any help on this.


-- 
Davide Alberani   [PGP KeyID: 0x465BFD47]
http://www.mimante.net/

--
For Developers, A Lot Can Happen In A Second.
Boundary is the first to Know...and Tell You.
Monitor Your Applications in Ultra-Fine Resolution. Try it FREE!
http://p.sf.net/sfu/Boundary-d2dvs2
___
Imdbpy-help mailing list
Imdbpy-help@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/imdbpy-help


Re: [Imdbpy-help] SQL Server Express 2008 R2 - Connection Error

2012-04-02 Thread Damien
Davide Alberani  writes:

> 
> First of all, pardon for the long delay. :-/
> 
> Hmmm... not much, not knowing enough of SQL Server.
> Maybe you can just try interfacing with it using SQLAlchemy, instead of the
> default SQLObject.  Try adding the "-o sqlalchemy" argument to the
> imdbpy2sql.py command line...
> 
> HTH,
> 

Hi David, no worries about the delay - we're all busy :)

I should have stated in my original post  also tried SQL Alchemy. Here's the 
output:

---
c:\Python27\Scripts>python27 imdbpy2sql.py -d d:/install/imdb/subset/ -u "mssql+
pymssql://imdb:imdb@localhost/imdb" --ms-sqlserver -o sqlalchemy
2012-04-03 13:36:47,696 WARNING [imdbpy.parser.sql.alchemy] C:\Python27\lib\site
-packages\imdb\parser\sql\alchemyadapter.py:38: Unable to import migrate.changes
et: Foreign Keys will not be created.
Traceback (most recent call last):
  File "imdbpy2sql.py", line 501, in 
conn = setConnection(URI, DB_TABLES)
  File "C:\Python27\lib\site-packages\imdb\parser\sql\alchemyadapter.py", line 4
86, in setConnection
eng_conn = engine.connect()
  File "C:\Python27\lib\site-packages\sqlalchemy\engine\base.py", line 2458, in
connect
return self._connection_cls(self, **kwargs)
  File "C:\Python27\lib\site-packages\sqlalchemy\engine\base.py", line 881, in _
_init__
self.__connection = connection or engine.raw_connection()
  File "C:\Python27\lib\site-packages\sqlalchemy\engine\base.py", line 2544, in
raw_connection
return self.pool.unique_connection()
  File "C:\Python27\lib\site-packages\sqlalchemy\pool.py", line 183, in unique_c
onnection
return _ConnectionFairy(self).checkout()
  File "C:\Python27\lib\site-packages\sqlalchemy\pool.py", line 387, in __init__

rec = self._connection_record = pool._do_get()
  File "C:\Python27\lib\site-packages\sqlalchemy\pool.py", line 739, in _do_get
con = self._create_connection()
  File "C:\Python27\lib\site-packages\sqlalchemy\pool.py", line 188, in _create_
connection
return _ConnectionRecord(self)
  File "C:\Python27\lib\site-packages\sqlalchemy\pool.py", line 270, in __init__

self.connection = self.__connect()
  File "C:\Python27\lib\site-packages\sqlalchemy\pool.py", line 330, in __connec
t
connection = self.__pool._creator()
  File "C:\Python27\lib\site-packages\sqlalchemy\engine\strategies.py", line 80,
 in connect
return dialect.connect(*cargs, **cparams)
  File "C:\Python27\lib\site-packages\sqlalchemy\engine\default.py", line 285, i
n connect
return self.dbapi.connect(*cargs, **cparams)
  File "pymssql.pyx", line 549, in pymssql.connect (pymssql.c:7110)
sqlalchemy.exc.OperationalError: (OperationalError) (20009, 'Net-Lib error durin
g Unknown error') None None

c:\Python27\Scripts>

---

I have created a blank DB in SQL Server which I can connect to okay using SQL 
Server Management Studio. I would expect the error messages to be a little more 
helpful, perhaps stating the login is incorrect or something - but the last few 
lines seem to indicate something is broken :(

Damien.


--
Better than sec? Nothing is better than sec when it comes to
monitoring Big Data applications. Try Boundary one-second 
resolution app monitoring today. Free.
http://p.sf.net/sfu/Boundary-dev2dev
___
Imdbpy-help mailing list
Imdbpy-help@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/imdbpy-help


Re: [Imdbpy-help] SQL Server Express 2008 R2 - Connection Error

2012-03-31 Thread Davide Alberani
On Mon, Mar 26, 2012 at 09:25, Damien  wrote:
>
> Traceback (most recent call last):
>  File "imdbpy2sql.py", line 519, in 
>    connectObject = conn.getConnection()
>  File "C:\Python27\lib\site-packages\sqlobject\dbconnection.py", line 336, in 
> g
> etConnection
>    conn = self.makeConnection()
>  File "C:\Python27\lib\site-packages\sqlobject\mssql\mssqlconnection.py", line
> 94, in makeConnection
>    con = self.dbconnection( *self.make_conn_str(self) )
>  File "pymssql.pyx", line 552, in pymssql.connect (pymssql.c:7162)
> pymssql.InterfaceError: Connection to the database failed for an unknown 
> reason.
>
> Any ideas?

First of all, pardon for the long delay. :-/

Hmmm... not much, not knowing enough of SQL Server.
Maybe you can just try interfacing with it using SQLAlchemy, instead of the
default SQLObject.  Try adding the "-o sqlalchemy" argument to the
imdbpy2sql.py command line...


HTH,

-- 
Davide Alberani   [PGP KeyID: 0x465BFD47]
http://www.mimante.net/

--
This SF email is sponsosred by:
Try Windows Azure free for 90 days Click Here 
http://p.sf.net/sfu/sfd2d-msazure
___
Imdbpy-help mailing list
Imdbpy-help@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/imdbpy-help