From: Robert B. <ro...@tr...> - 2011-01-25 22:35:16
|
Michał Sawicz wrote: > Dnia 2011-01-25, wto o godzinie 15:49 -0600, Robert Boehne pisze: > >> Michał Sawicz wrote: >> >>> I also tried tsql itself, which seemed to connect (I got a 1> prompt) >>> but regardless of what query I tried to execute, I got no response, >>> dropping me to another prompt (2>). >>> >>> >> did you type "go" at the 2nd prompt and hit <Enter> ? >> > > Right, new to Sybase, thanks for that - it worked. > > Great! Let's focus on that. Below you're letting some of the arguments default, like the password and database, but when you use pymssql you have explicitly set them. Can you still connect when you use those same arguments with the tsql command line? >> tsql -S asademo -U DBA >> > > works. > > But in python, either of: > > >> conn = pymssql.connect(host='asademo', user='DBA', password='SQL', >> database='asademo') >> |