Quantcast
Channel: Embarcadero Community - Embarcadero Community
Viewing all articles
Browse latest Browse all 1963

Firedac TFdQuery with MSSQL and Table field with default value: NEWID()

$
0
0

I am trying to add a new record to a Microsoft SQL 2012 server Table.

The Id field has a "default value or binding" of: (newid()) whch works fine wit AdoDB components (TAdoQuery), but with TFdQuery I get an exception EDatabaseError with message: "Field 'Id' must have a value".

Are there some kind of parameter needed on the FDQuery or FDConnection?

 


Viewing all articles
Browse latest Browse all 1963

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>