如何在sqlcmd中使用Tidal Scheduler变量



我们使用的是Tidal 6.5.3.164。我正在使用sqlcmd运行SQL Server存储过程。当我指定服务器时,它可以工作,但我想为服务器使用Tidal变量,但它不工作。在命令行中,我有sqlcmd。在命令参数中,我有:

-E -S <Group.Report_Server> -Q "exec dbo.test_sproc"

我收到以下错误消息:

Sqlcmd: Error: Microsoft ODBC Driver 11 for SQL Server : Named Pipes Provider: Could not open a connection to SQL Server [53]. .
Sqlcmd: Error: Microsoft ODBC Driver 11 for SQL Server : Login timeout expired.
Sqlcmd: Error: Microsoft ODBC Driver 11 for SQL Server : A network-related or instance-specific error has occurred while establishing a connection to SQL Server. Server is not found or not accessible. Check if instance name is correct and if SQL Server is configured to allow remote connections. For more information see SQL Server Books Online..

我猜sqlcmd正试图连接到名为<Group.Report_Server>因为当我指定实际的服务器名称时,它工作得很好。知道如何将该变量与sqlcmd一起使用吗?

问题是Tidal变量的定义高出了几个级别,当我运行这个时不在范围内。通常情况下,这会运行良好,但我尝试运行的方式不起作用。一切都如预期,我只需要了解更多关于Tidal的信息。

最新更新