Quantcast
Channel: SCN : Unanswered Discussions - Semantic Layer
Viewing all articles
Browse latest Browse all 1291

@variable('DBUSER') returns a value is surrounded by single quotes

$
0
0

Hello experts,

 

I am using  @Variable('DBUSER' [DELIMITER = no_quote] ) but still the return value has single quote in generated sql statement.

 

SELECT DISTINCT

  'MYDB'.FXN_CUSTOM_FUNCTION('08/19/2015 16:58:18')

FROM

  MYTABLE

 

In above example MYDB is the output of @variable('DBUSER'), it is surrounded by single quotes and hence i am getting an error saying

 

[Microsoft][SQL Server Native Client 11.0][SQL Server]Cannot call methods on varchar.

 

Can any one tell me how to get out of single quotes here.

 

Thanks ,

Deepa.


Viewing all articles
Browse latest Browse all 1291

Trending Articles



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