Quantcast
Channel: SCN: Message List - Reporting and Printing
Viewing all articles
Browse latest Browse all 2719

user defined table UDT in SQL Management Studio Query

$
0
0

Hello ,

 

Do you know which code we have to use to get information from a user defined table in SQL Management Studio. Because this table has the @ sign in its name (@tablename) the ususal code from SAP Business One does not work.

 

eg. select * from @CUSTOMERCODE     does not work and gives an error:

 

 

Msg 1087, Level 15, State 2, Line 1

Must declare the table variable "@CUSTOMERCODE".


Should I place it between brackets like select * FROM [dbo].[@UDT_CUSTOMERCODE]


Thanks in advance


Viewing all articles
Browse latest Browse all 2719


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