You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
ALTER PROCEDURE [dbo].[sp_select_Test2] @Test [dbo].[TestTableType] READONLY
AS
BEGIN
INSERT INTO dbo.test
(
Code,
Text,
Type
)
SELECT Name,
Name,
ID
FROM @Test
END;
I have this code
def executeSP(self, SPName, params=[]):
with pytds.connect(self.server, self.dbname, self.user, self.dbpwd) as connection:
connection.autocommit = True
# Check how to create Secure query
with connection.cursor() as cursor:
try:
cursor.callproc(SPName, params)
rows = None
if(cursor.rowcount < 0):
rows = cursor.fetchall()
cursor.close()
return rows
except Exception as e:
if(self.logger):
self.logger.error(
"error executeQuery {0}, {1}".format(SPName, e))
else:
print(e)
The DONE_COUNT flag in DONEPROC message is 0, simply states that bulk insert does not returns a row count, so it's natural to have -1 as return value.
0x10: DONE_COUNT. The DoneRowCount value is valid. This is used to distinguish between a valid value of 0 for DoneRowCount or just an initialized variable.
I have a sp
I have this code
The Problem occurs when I am trying to call the SP with following code
the RowCount is -1 while it should be non negative value. Please help Me, Thank you.
The text was updated successfully, but these errors were encountered: