adspace


what is the syntax for using sql_variant_property? : Transact sql

Answer Posted / Gajendera Singh

The syntax for using SQL_VARIANT_PROPERTY in T-SQL (Transact-SQL) varies depending on the specific database version and the property you want to retrieve or set. However, a general example might look like this: SELECT sql_variant_property(column_name, 'BaseType') FROM table_name; To set a property, you can use an UPDATE statement: UPDATE table_name SET column_name = SQL_VARIANT_PROPERTY(column_name, 'UserDefinedType', @userDefinedType) WHERE condition

Is This Answer Correct ?    0 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

what are all the common sql function? : Sql dba

1141


what are aggregate and scalar functions? : Sql dba

1142


what is dbms? : Sql dba

1070


how to escape special characters in sql statements? : Sql dba

1124


Is inner join faster than left join?

1287


Can we use distinct and group by together?

1147


What is the current version of postgresql?

1188


Is primary key clustered index?

1028


what is collation? : Sql dba

1242


Hi am new to PLSQL & facing problems in writing code like in SP, Functions, so any one having some SP coding with in depth explanation please share with me my Email ID suvarnaatsuvarna@rediffmail.com Or taking tanning on this please do contact me

2102


how many tables will create when we create table, what are they? : Sql dba

1156


How do I remove duplicates in two columns?

1202


what is sql server agent? : Sql dba

1189


If a cursor is open, how can we find in a pl/sql block?

1252


Does group by remove duplicates?

1121