CodeSmith Community
Your Code. Your Way. Faster!

Custom Stored Procedures width Dynamic SQL

Latest post 04-07-2007 7:51 PM by elfederiko. 1 replies.
  • 11-02-2006 10:20 AM

    • Mauro D.
    • Not Ranked
    • Joined on 04-10-2006
    • Posts 8
    • Points 250

    Custom Stored Procedures width Dynamic SQL

    I've upgraded to the lastest version of nettiers and I started with problems in customs  stored procedures when i execute sql dynamically.
    I search this problem in the forum and found an explanation:

    "When CodeSmith tries to discover the type of resultset returned from stored procs, it  does so by issuing the SET FMTONLY ON command to SQL Server.  When this option is  activated, the procedures are run with limited rights and therefore your call to an  external stored procedure is not executed"

    Then I found a "solution" that consist in construct the skeleton of the returned query.

    I'm not really convinced with this solution, I dont'n understand what is happening now because in oldest customs stored procedures width dynamic sql worked OK. Would It be fixed in next releases? any other solution ?

    I  will apreciate any suggestion

    • Post Points: 35
  • 04-07-2007 7:51 PM In reply to

    Re: Custom Stored Procedures width Dynamic SQL

    Hi Mauro. I have the same problem, im try to do a advanced search with multiple tables.

    Could you explain me more about you solution please. Sorry to bother you.

    thks! 

    elfederiko
    • Post Points: 5
Page 1 of 1 (2 items) | RSS
Copyright © 2008 CodeSmith Tools, LLC
Powered by Community Server (Commercial Edition), by Telligent Systems