Video Screencast Help

Custom Token on SMP 7.1

Created: 25 Nov 2010 • Updated: 30 Nov 2010 | 2 comments
This issue has been solved. See solution.

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?



Comments 2 CommentsJump to latest comment

Carsten Giese's picture

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.

Alexey-Art's picture

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!