Click here to Skip to main content
15,891,431 members
Home / Discussions / Database
   

Database

 
GeneralAggregate Function [modified] Pin
Lash208-Feb-08 3:37
Lash208-Feb-08 3:37 
GeneralRe: Aggregate Function Pin
Michael Potter8-Feb-08 4:45
Michael Potter8-Feb-08 4:45 
GeneralRe: Aggregate Function Pin
Lash208-Feb-08 5:20
Lash208-Feb-08 5:20 
Generalexporting sqlserver table data into .csv files Pin
rajeshkumar g8-Feb-08 1:05
rajeshkumar g8-Feb-08 1:05 
GeneralRe: exporting sqlserver table data into .csv files Pin
Giorgi Dalakishvili8-Feb-08 1:22
mentorGiorgi Dalakishvili8-Feb-08 1:22 
GeneralRe: exporting sqlserver table data into .csv files Pin
rajeshkumar g10-Feb-08 22:26
rajeshkumar g10-Feb-08 22:26 
GeneralRe: exporting sqlserver table data into .csv files Pin
Vasudevan Deepak Kumar12-Feb-08 2:48
Vasudevan Deepak Kumar12-Feb-08 2:48 
GeneralSQL2005 + Service Broker + CLR Stored Procedure + XML + Temp Tables Pin
Malcolm Smart7-Feb-08 23:57
Malcolm Smart7-Feb-08 23:57 
This is killing me...and not slowly.

I have a stored procedure (a) which calls another stored procedure (b).

Stored procedure (b) is a C# stored procedure which simply writes out to a file data in XML format. Internally, it calls...
select fld1, fld2, fld3, fld4, fld5from #tmptable for xml auto, elements
.

If I call stored procedure (a) from Query Analyser / SQL Management Studio everything works fine. Perfect.

But....we need this all to run asynchronously. So we used the Service Broker, configured the queues and messages and off we went. All worked as planned except out XML files were empty.

Further investigation showed that if we call
select fld1, fld2, fld3, fld4, fld5from #tmptable
- without the 'xml' bits, we got a resultset back. But if we call it with the for xml auto, elements, the reader was empty. No errors are visible in the profiles, but the XmlReader refuses to read.

The binary / extended stored procedure is the same pysical binary that is called from Query analyser that works, but via the Service Broker refuses to do anything XML based. Outputting the data as normal text is cool, but not what we want.

D'Oh! | :doh: Any ideas?

so you answer don't be scared of failure
The only failure is never to try
Things You've Never Done - Passenger -2008

GeneralCrystal Report Pin
techpub7-Feb-08 23:22
techpub7-Feb-08 23:22 
GeneralRe: Crystal Report Pin
John_Adams8-Feb-08 1:09
John_Adams8-Feb-08 1:09 
GeneralRe: Crystal Report Pin
techpub8-Feb-08 3:26
techpub8-Feb-08 3:26 
Generalmail send using sqlserver2000 Pin
Member 38798817-Feb-08 18:16
Member 38798817-Feb-08 18:16 
GeneralRe: mail send using sqlserver2000 Pin
That's Aragon7-Feb-08 18:43
That's Aragon7-Feb-08 18:43 
GeneralORDER BY Pin
uglyeyes7-Feb-08 13:14
uglyeyes7-Feb-08 13:14 
GeneralRe: ORDER BY Pin
pmarfleet7-Feb-08 21:33
pmarfleet7-Feb-08 21:33 
GeneralRe: ORDER BY Pin
Krish - KP7-Feb-08 21:37
Krish - KP7-Feb-08 21:37 
QuestionHow to insert a data after upading the table Pin
Exelioindia7-Feb-08 9:45
Exelioindia7-Feb-08 9:45 
AnswerRe: How to insert a data after upading the table Pin
pmarfleet7-Feb-08 10:36
pmarfleet7-Feb-08 10:36 
Generalneed help Pin
haseeb_saeed7-Feb-08 9:13
haseeb_saeed7-Feb-08 9:13 
GeneralRe: need help Pin
AlbertEiki7-Feb-08 9:43
AlbertEiki7-Feb-08 9:43 
Generalneed help Pin
haseeb_saeed7-Feb-08 9:09
haseeb_saeed7-Feb-08 9:09 
GeneralRe: need help Pin
AlbertEiki7-Feb-08 9:39
AlbertEiki7-Feb-08 9:39 
Generalretreiving n to m rows from SQL Server 2005 database. Pin
Rocky#7-Feb-08 5:24
Rocky#7-Feb-08 5:24 
GeneralRe: retreiving n to m rows from SQL Server 2005 database. [modified] Pin
AlbertEiki7-Feb-08 6:03
AlbertEiki7-Feb-08 6:03 
QuestionHow to make datatable.select() and dataview.rowfilter accent-insensitive? Pin
AlbertEiki7-Feb-08 4:41
AlbertEiki7-Feb-08 4:41 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.