Wincc的C脚本如何连接到远程SQLServer数据库?具体代码如何?

2024-11-23 10:53:24
推荐回答(1个)
回答1:

1、建立存储:
CREATE PROCedure[owner.]procedurename[;number]

          [[(]@parameter_name datatype[=default][OUTput]

          [,@parameter_name datatype[=default][OUTput]]...[)]]

          [WITH RECOMPILE]

          AS SQL_statements

2、存储规则:

        [EXECute][@return-status=]

          [[[server.]database.]owner.]procedurename[;number]

          [[@parameter_name=]value|[@parameter_name=]@varialbe[OUTput]

          [,[@parameter_name=]value|[@parameter_name=]@variable[OUTput]...]]

          [WITH RECOMPILE]