Screencasts - Hilfsvideos

Custom Token on SMP 7.1

Created: 25 Nov. 2010 • Aktualisiert: 30 Nov. 2010 | 2 Kommentare
Dieses Problem wurde gelöst. Siehe Lösung.

Hi All,

I am using Script task (command script type for example) on SMP 7.1 and i need to put some custom token to generate dynamicaly data when the script runs on target machine. I've tried to put some custom token into my Script task to check if it works well. But  I am always get empty value. Here is my script with custom token defenition.

REM Test command script

REM %"select [_ResourceGuid] from [dbo].[Inv_AeX_AC_Identification] where [Name] = '%COMPNAME%'"%

As i know based on forum articles this works fine on DS 6.9 but DS 7.1 seems does not support the custom tokens. Is it true or i have to change the format of custom token definiton in my script to get an ability retrieve data?

Please let me know how or what i have to do in this case?



Kommentare KommentareZum neuesten Kommentar

das Bild der Carsten Gieses

Hello, Alexey,

below is a link to an article that answers your question.

Just check the section "DS 7.1" at the end of the article.

And one more hint:

In DS 7.1 you can only use tokens on client-side scripts, not on server-side scripts.

das Bild der Alexey-Arts

Hi Carsten,

Thank you for you answer and the article. I know that the SMP has an ability to create the custom tokens via specific window. But the question is can i use the custom token definition on my command script task like this for example %#*"SELECT @@servername"% or i have to create the custom token using Token page on SMP console and put the SELECT @@servername in it and then use my token in my script? 

Below the link there was described the syntax for a custom token, but i suppose that this is truly only for DS 6.X!