0

I am having trouble getting column information on a different schema.

It was working fine until we changed the connection string.

Get Column Information

default schema is [dbo] the newly adding stored procedure is in "different_schema"

Does anyone know and had the same experience on this issue?

Thank you in advance.

Mirrh
  • 839
  • 1
  • 8
  • 14
  • 1
    I seem to remember needing to do something with FMTONLY https://stackoverflow.com/questions/24794671/why-do-we-have-to-write-set-fmtonly-off-in-stored-procedures-when-using-entity-f – Kirsten Oct 25 '17 at 20:31
  • Thank you. I read this before and thought this has something to do with the different schema but I was wrong. Applying SET FMTONLY OFF; did the trick. – Mirrh Oct 26 '17 at 12:40
  • great I will add the answer then :-) – Kirsten Oct 26 '17 at 18:12

1 Answers1

1

At the start of the stored proc temporarily add

SET FMTONLY OFF

to get the column information returned.

This is explained well here

Kirsten
  • 15,730
  • 41
  • 179
  • 318