Re: [ADVANCED-DOTNET] Nested sql server transaction in Ado.Net transaction

2007-09-18 Thread Svilen Stefanov
Thanks. All is clear now :) On 18/09/2007, Frans Bouma <[EMAIL PROTECTED]> wrote: > > This is my first post in the mailing list but I read it all the time :) > > > > I have the following scenarion : > > > > Super stored proc : > > > > begin tran T1; > > proc1; > > proc2; > > ... > > commit

Re: [ADVANCED-DOTNET] Nested sql server transaction in Ado.Net transaction

2007-09-18 Thread Frans Bouma
> This is my first post in the mailing list but I read it all the time :) > > I have the following scenarion : > > Super stored proc : > > begin tran T1; > proc1; > proc2; > ... > commit tran T1; > > I would like to call the procedure from ADO.NET but I want to finish > some other work in C

Re: [ADVANCED-DOTNET] Open source Sql Helper

2007-09-18 Thread Frans Bouma
> I am a total NHibernate convert and have drastically cut down the amount of > SQL I write now thanks to their brilliance. > > Obviously I still have to write some Sql.Can anyone recommend a good open > source SQL helper that can take the drudgery out of calling stored procedures? > > Thanks in ad

Re: [ADVANCED-DOTNET] Nested sql server transaction in Ado.Net transaction

2007-09-18 Thread Peter Ritchie
I didn't quite follow your question; but it's not necessary for an ADO.NET method to fail in order to use Rollback, any method/code can fail to use Rollback (it doesn't even need to be an exception...). Your syntax just needs to be changed to use the SqlTransaction class: SqlTransaction trans = d

[ADVANCED-DOTNET] Open source Sql Helper

2007-09-18 Thread Paul Cowan
Hi all, I am a total NHibernate convert and have drastically cut down the amount of SQL I write now thanks to their brilliance. Obviously I still have to write some Sql.Can anyone recommend a good open source SQL helper that can take the drudgery out of calling stored procedures? Thanks in ad

[ADVANCED-DOTNET] Nested sql server transaction in Ado.Net transaction

2007-09-18 Thread Svilen Stefanov
Hi guys, This is my first post in the mailing list but I read it all the time :) I have the following scenarion : Super stored proc : begin tran T1; proc1; proc2; ... commit tran T1; I would like to call the procedure from ADO.NET but I want to finish some other work in C# code before

Re: [ADVANCED-DOTNET] Creating/using a custom Encoding class

2007-09-18 Thread Per Bolmstedt
Daniel Barla-Szabo wrote: > Looking at the MSDN docs on Encoder / Decoder, I see a few comments > like "Notes to inheritors" and "Notes to implementers", so it seems > to me that the door has Microsoft has left the door for inheritance > open on purpose. For subclassing Encoding, Encoder and Dec

Re: [ADVANCED-DOTNET] Creating/using a custom Encoding class

2007-09-18 Thread Sébastien Lorion
That is more or less my question. I am trying to figure out what is the correct usage scenario when creating an encoding based on an existing one. I can derive from Encoding, but would rather not reinvent the wheel if possible, only change the part I do want to change. Sébastien On 9/18/07, Per B

Re: [ADVANCED-DOTNET] Creating/using a custom Encoding class

2007-09-18 Thread Per Bolmstedt
Sébastien Lorion wrote: class MyEncoding : ASCIIEncoding Are you sure _ASCIIEncoding_ is supposed to be subclassable? C# MVP Jon Skeet has implemented the EBCDIC encoding in .NET here: http://www.yoda.arachsys.com/csharp/ebcdic/ Maybe you could look at that for reference?

[ADVANCED-DOTNET] David Rohacek/AUS/NIC is out of the office.

2007-09-18 Thread David Rohacek
I will be out of the office starting 09/17/2007 and will not return until 09/19/2007. I will be intermittently checking email in my absence. I will respond to your message as soon as I can. Contact Abhishek Ghuwalewala for urgent Measurement Studio issues. Contact Scott Richardson for urgent Test

Re: [ADVANCED-DOTNET] Creating/using a custom Encoding class

2007-09-18 Thread Daniel Barla-Szabo
Looking at the MSDN docs on Encoder / Decoder, I see a few comments like "Notes to inheritors" and "Notes to implementers", so it seems to me that the door has Microsoft has left the door for inheritance open on purpose. That said, I'd agree that it has been implemented in a slightly odd way.

[ADVANCED-DOTNET] Creating/using a custom Encoding class

2007-09-18 Thread Sébastien Lorion
Given the following: class MyEncoding : ASCIIEncoding { public override int GetChars(byte[] bytes, int byteIndex, int byteCount, char[] chars, int charIndex) { // do custom conversion here } } static void ReadTest(string path, int bufferSize) { using (StreamReader sr = new StreamRea