Quantcast
Channel: SCN : Popular Discussions - SAP PowerDesigner
Viewing all articles
Browse latest Browse all 1779

Binding a default object to a table column that has an owner (schema)

$
0
0

Powerdesigner 16.5 / SQL Server 2014

 

The standard XDB for SQL Server 2014 shows the following syntax for generating a default binding:

 

[%R%?[exec ]][execute ]sp_bindefault [%QUALIFIER%]%DEFAULT%, %.q:BOUND_OBJECT%

 

However, when I generate the DDL, the BOUND_OBJECT does not appear to contain the owner/schema that the BOUND_OBJECT belongs to/is owned by.

 

Example

 

In generated DDL, this is what I want:

 

execute sp_bindefault DEFAULT_1, 'MYSCHEMA.TABLE_1.COLUMN_2'

 

This is what I actually get and it causes errors in SQL Server:

 

execute sp_bindefault DEFAULT_1, 'TABLE_1.COLUMN_2'

go

 

Any help/advice would be much appreciated!

 

Thanks,

Yakov

 

Message was edited by: Yakov Pekar


Viewing all articles
Browse latest Browse all 1779

Trending Articles



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