In our Job i need error message to capture error message for future reference. i can acquire error code from link variables but not the error message.
Is there any provision in DS to get SQL error message.
Note: I couldn't find any such info in DSGetLinkInfo.
Thanx in advance.
Retrieving error description for SQL Server
Moderators: chulett, rschirm, roy
-
- Participant
- Posts: 2
- Joined: Wed Oct 27, 2004 6:43 am
- Location: india
-
- Participant
- Posts: 54607
- Joined: Wed Oct 23, 2002 10:52 pm
- Location: Sydney, Australia
- Contact:
The link variable LASTERR returns the error text.
Beware that, with all Microsoft databases, it tends to be verbose so, if you're wanting to capture it into a table, make sure the column's a wide one!
Beware that, with all Microsoft databases, it tends to be verbose so, if you're wanting to capture it into a table, make sure the column's a wide one!
IBM Software Services Group
Any contribution to this forum is my own opinion and does not necessarily reflect any position that IBM may hold.
Any contribution to this forum is my own opinion and does not necessarily reflect any position that IBM may hold.
-
- Participant
- Posts: 2
- Joined: Wed Oct 27, 2004 6:43 am
- Location: india
reported issue to be fixed mid november
I encountered the same issue with both the odbc and drs stages, reported it and am told that this will be addressed in the mid november release of datastage.
prabaharan wrote:Thanx for ur suggestion.
I tried with LASTERR , but i am getting full logfile message.
My requirement is only capture the error message (ex. constraint violation or datatype mismatch etc...)
-
- Participant
- Posts: 54607
- Joined: Wed Oct 23, 2002 10:52 pm
- Location: Sydney, Australia
- Contact:
-
- Participant
- Posts: 8
- Joined: Sun Apr 05, 2009 6:00 am
- Location: Bangalore