Created
February 4, 2010 16:27
-
-
Save bonyiii/294834 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
If one wants to call MSSQL statements like this | |
declare @aha as varchar(4000); | |
set @aha='SELECT * FROM pubs.dbo.titles;'; | |
exec(@aha) | |
One have to use prepare/execute combo: | |
statement = dbconn.prepare( sql ) | |
results = statement.execute # vagy statement.run | |
Point is to prepare before execute |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment