![]() | |
![]() |
| | Thread Tools | Display Modes |
#1
| |||
| |||
|
#2
| |||
| |||
|
|
This sql causes an error. select dbo.xp_write_file('c:\\xmlfile.xml', (select xmlData from "DBA"."sp_getxmlData"(1, 770280))); Internal database error *** ERROR *** Assertion failed: 101412 (9.0.2.3778) Page number on page does not match page requested -- transaction rolled back [Sybase][ODBC Driver][SQL Anywhere]Internal database error *** ERROR *** Assertion failed: 101412 (9.0.2.3778) Page number on page does not match page requested -- transaction rolled back Error code=-301 SQL state=HY000 Connection parameters: User=dba Password=*** LINKS=all I can avoid the error by using a variable begin declare @xmlData long binary; select xmlData into @xmlData from "DBA"."sp_CliniflowPatientExport"(1, 770280); select dbo.xp_write_file('c:\\bob.xml', @xmlData); end |
#3
| |||
| |||
|
![]() |
| Thread Tools | |
| Display Modes | |
| |