| SMS Gateway · Registration Requirement |
Help
Search
Members
Calendar
|
| Welcome Guest ( Log In | Register ) | Resend Validation Email |
![]() ![]() ![]() |
| GBGrendel |
Posted: Oct 19 2007, 10:03 AM
|
|
Newbie ![]() Group: Members Posts: 2 Member No.: 472 Joined: 27-March 07 |
I am trying to return results from a Microsoft SQL Stored Procedure. I am calling the following SQL statement:
EXEC pr__sms_mayfly_pull {M} The stored procedure returns a field called "sms_message". The procedure runs without anything in the Succ Return field but when I put {sms_message} in the Succ Return, and test it, I get the error: Test Successfully. The return is followed: ERROR FIELD When I run this directly from SQL, I get the results correctly. Please help. Thanks, Neil |
| admin |
Posted: Oct 22 2007, 04:15 AM
|
|
Administrator ![]() ![]() ![]() Group: Admin Posts: 1072 Member No.: 1 Joined: 5-May 03 |
Please check out http://www.visualtron.com/forums/index.php...tored+procedure
-------------------- |
| GBGrendel |
Posted: Oct 29 2007, 09:14 AM
|
|
Newbie ![]() Group: Members Posts: 2 Member No.: 472 Joined: 27-March 07 |
I managed to resolve this issue. The issue was with the type of the text returned. It was returning a TEXT type rather than a CHAR type so I just used the CONVERT(CHAR(8000), field) to change the type and it works fine.
|
| admin |
Posted: Oct 29 2007, 04:40 PM
|
||
|
Administrator ![]() ![]() ![]() Group: Admin Posts: 1072 Member No.: 1 Joined: 5-May 03 |
Yes, SQL action can only process char or varchar. -------------------- |
||
| admin |
Posted: Jan 22 2009, 06:45 AM
|
||
|
Administrator ![]() ![]() ![]() Group: Admin Posts: 1072 Member No.: 1 Joined: 5-May 03 |
Here's an example of a stored procedure created using SQL Server Express 2005 Management Studio Express. Refer to the attached screen capture on the setup for the keyword "CHECK". There's a lot you can do with a stored procedure using Transact-SQL functions, here's a reference link. Note: The DSN section is unfilled since we are querying VisualGSM database. If you need to query an external ODBC Data Source, please create a SYSTEM DSN.
Attached Image ![]() -------------------- |
||
| chillpill |
Posted: Oct 21 2009, 09:25 PM
|
|
Newbie ![]() Group: Members Posts: 2 Member No.: 2159 Joined: 29-September 09 |
Please can you show how to pass in an OUTPUT PARAMETER and have this in Succ Return?
|
| admin |
Posted: Oct 22 2009, 07:46 AM
|
|
Administrator ![]() ![]() ![]() Group: Admin Posts: 1072 Member No.: 1 Joined: 5-May 03 |
You can toggle "SELECT" and put the fieldname in curly brackets within the Succ Return field.
-------------------- |
![]() |
![]() ![]() ![]() |