|
![]() |
#1 |
Участник
|
У вас джоб на клиенте работает !
X++: C)\Jobs\sqlServerTest - line 18 Запускайте через меню итем или выносите код в статический метод класса. |
|
|
За это сообщение автора поблагодарили: dech (1). |
![]() |
#2 |
Участник
|
Спасибо большое. А как теперь выполнить хранимую процедуру, которая работает с другой базой данных на том же SQL Server? Пишет ошибку.
__________________
// no comments |
|
![]() |
#3 |
Модератор
|
__________________
-ТСЯ или -ТЬСЯ ? |
|
![]() |
#4 |
Участник
|
Цитата:
X++: { str sql = "USE otherDB EXEC storedProc parm1, parm2"; Connection conn = new Connection(); Statement stmt = conn.createStatement(); ResultSet rs; SqlStatementExecutePermission perm = new SqlStatementExecutePermission(sql); ; perm.assert(); // BP deviation documented rs = stmt.executeQuery(sql); while(rs.next()) { info(rs.getString(1)); //info(rs.getString(2)); } CodeAccessPermission::revertAssert(); info("OK"); } Последний раз редактировалось ansoft; 25.07.2013 в 12:40. |
|
![]() |
#5 |
Молодой, подающий надежды
|
Цитата:
X++: static void JobOnServer(Args _args) { Args args; MenuFunction menuFunction; if (! isRunningOnServer()) { args = new Args(); args.parm("Message from Client"); menuFunction = ClassFactory::makeObjectOnServer(classNum(MenuFunction)); menuFunction.objectType(MenuItemObjectType::Job); menuFunction.object('JobOnServer'); menuFunction.runOn(2); menuFunction.run(args); return; } info(_args.parm()); } |
|
|
![]() |
||||
Тема | Ответов | |||
dynamicsaxbi: Better together: Microsoft Dynamics AX 2012 R2 and SQL Server Power View | 0 | |||
Connection к другому SQL Server | 5 |
|