Reputation: 529
I don't understand why I get the following results. My SQLServer 2017 MSSC looks like:
Why am I getting: NameError: name 'pr' is not defined?
Charles
Upvotes: 0
Views: 93
Reputation: 453707
You have
DECLARE @my_script nvarchar(100)
This isn't long enough and your python gets truncated to the following
foo = "Hello " + "world"
print("foo1: ", foo)
foo = "" + "world"
print("foo2: ", foo)
pr
You should increase nvarchar(100)
to a higher amount.
Upvotes: 1