How can I list a view in SQL Server 2014? In SQL Sever 2015 it was sp_helptext @objname = 'myview'. That doesn't work in 2014. I get the error "There is no text for object 'myview'"
Well, here's the interesting thing. When I run the sp_helptext in the Server Management Studio, it works. When I run it from a remote host inside an java program I get:
Select Failed: 15197 There is no text for object 'myview'
This is true whether I use a Microsoft jdbc driver or a 3rd party driver.
However, if I run the same procedure from the same java program connecting to the SQL Server 2005 database, it works.
Open in new window