on 06-27-2015 11:50 PM
In order to notify the user about the progress of a long operation i have set flushmessage on in the beginning of my batch and registered the InfoMessage callback, but it appears to be a design decision to collect all the messages and return them all at the end. So far it appears that I'm stuck with piping the output of isql or digging into the ct-library. Any plans to change this?
Hi
We found the same thing a couple of years ago.
To get around this, we downloaded the Mono driver and made slight tweak to it - not difficult - to output the messages immediately.
We now use this for all our batch processes rather than the Sybase ADO drivers.
Mike
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
See
http://www.mono-project.com/docs/database-access/providers/sybase/
Note: it doesn't support new Sybase 15 features - but we only use Mono for running long running stored procedures. We don't use it for any data transfer between C# and Sybase.
Turns out it was too soon to celebrate. This driver doesn't support any character encoding other than iso_1.
Edit: Nevermind. The connection string parser didn't recognise such a parameter, but otherwise the support is there. Changed one field from private to public, set the charset and it worked.
Okay, after building the driver i finally managed to check and the results were disappointing. It did not deliver the messages when they arrived.
Edit: modified the driver myself. If anyone's interested, it's in Tds.cs on line 1737, add this to the Else block where a message is added to the list:
OnTdsInfoMessage(CreateTdsInfoMessageEvent(messages));
For some reason pasting from clipboard doesn't work on this forum.
Hi,
I thought our version of Mono drivers printed messages as they arrived without any changes.
It was over 2 years since we looked at it but perhaps we edited as well.
Sorry about that.
re: iso_1 - what version of the SDK are you using ? The 12.x SDK didn't support many char sets either.
BTW, If you're using anything before SP125 then you should upgrade. We haven't found any bugs in SP127 and above yet.
I'm using the ASE 16 SDK, downloaded for free from store.sap.com. Was a real pain to download because they weren't sorted by date and the one which appeared to be the latest one gave me a broken download. I also have ASE 12 installed and the charsets folder has 56 subfolders in it versus 57 in the ASE 16 SDK directory, so i don't see any shortage of charsets. Well, it's not like that's important when using the Mono driver because it converts the charsets all on its own.
You could also try the DataDirect drivers from High-Performance ADO.NET Data Providers - DataDirect
I think its all in managed code rather then the Unmanaged code used by Sybase.
https://www.progress.com/net/features/key-features/100-percent-managed-code-wire-protocol
Unfortunately I have no idea how much they charge for using them.
User | Count |
---|---|
84 | |
10 | |
9 | |
8 | |
6 | |
6 | |
6 | |
5 | |
3 | |
3 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.