虽然table具有值,但python _mssql不返回行

时间:2016-09-29 21:25:44

标签: python sql-server

我花了大约一天的时间试图解决这个问题,但由于某些原因我找不到问题。

我试图从Kali运行这个python

由于某种原因,查询没有返回任何结果。我错过了一些明显的东西吗?

CODE:

import _mssql
server = '192.168.1.83'
user = 'sa'
password = 'password123'

print 'connecting'
connection = _mssql.connect(server=server,user=user,password=password,database='WebApp')
print connected
sqlQuery = "SELECT * FROM dbo.users"
print connection.execute_row(sqlQuery)
print connection

输出

Connecting 
Connected 
Making Query 
None 
<Open mssql connection at 0x7fc1a954d6b0>

enter image description here

0 个答案:

没有答案