зеркало из https://github.com/mono/mail-archives.git
98 строки
3.8 KiB
HTML
98 строки
3.8 KiB
HTML
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2//EN">
|
|
<HTML>
|
|
<HEAD>
|
|
<TITLE> [Mono-list] different behavior between .NET and Mono
|
|
</TITLE>
|
|
<LINK REL="Index" HREF="index.html" >
|
|
<LINK REL="made" HREF="mailto:george%40idealso.com">
|
|
<META NAME="robots" CONTENT="index,nofollow">
|
|
|
|
<LINK REL="Previous" HREF="025815.html">
|
|
<LINK REL="Next" HREF="025787.html">
|
|
</HEAD>
|
|
<BODY BGCOLOR="#ffffff">
|
|
<H1>[Mono-list] different behavior between .NET and Mono
|
|
</H1>
|
|
<B>Michael George
|
|
</B>
|
|
<A HREF="mailto:george%40idealso.com"
|
|
TITLE="[Mono-list] different behavior between .NET and Mono">george@idealso.com
|
|
</A><BR>
|
|
<I>Wed, 16 Feb 2005 15:06:43 -0500 (EST)</I>
|
|
<P><UL>
|
|
<LI> Previous message: <A HREF="025815.html">[Mono-list] different behavior between .NET and Mono
|
|
</A></li>
|
|
<LI> Next message: <A HREF="025787.html">[Mono-list] Memory usage of mod_mono
|
|
</A></li>
|
|
<LI> <B>Messages sorted by:</B>
|
|
<a href="date.html#25780">[ date ]</a>
|
|
<a href="thread.html#25780">[ thread ]</a>
|
|
<a href="subject.html#25780">[ subject ]</a>
|
|
<a href="author.html#25780">[ author ]</a>
|
|
</LI>
|
|
</UL>
|
|
<HR>
|
|
<!--beginarticle-->
|
|
<PRE>On Wed, February 16, 2005 2:18 pm, Michael George said:
|
|
><i> I am completely new to Mono. I'm trying to help someone migrate from a
|
|
</I>><i> Microsoft/IIS/.NET system to a Linux/Apache/Mono system.
|
|
</I>><i>
|
|
</I>><i> We have both a Microsoft 2003 Server system and a SuSE Linux system, so we
|
|
</I>><i> can run the app in .NET while we (try to) incrementally migrate. First
|
|
</I>><i> step is to plop the same code from .NET into Mono while still connecting
|
|
</I>><i> to the MS-SQL server on teh .NET system.
|
|
</I>><i>
|
|
</I>><i> Should be simple enough, I though, just move the code, change the
|
|
</I>><i> connection string and "voila!", but no such luck.
|
|
</I>><i>
|
|
</I>><i> What I am running into and what I'm hoping for advice about, is that
|
|
</I>><i> watching the MS-SQL server logging output, it appears that the .NET client
|
|
</I>><i> initiates communications differently than the Mono client.
|
|
</I>><i>
|
|
</I>><i> Differences:
|
|
</I>><i> .NET is using RPC, Mono is using SQL.
|
|
</I>><i> The first query issued by .NET appears to be a connection to the database,
|
|
</I>><i> as expected. The first query issued by Mono is some strange call to a
|
|
</I>><i> stored procedure that I cannot find anywhere in the system.
|
|
</I>><i>
|
|
</I>><i> I thought maybe I need ADO.NET installed (not in the mono RPMs), but as I
|
|
</I>><i> understand, ADO is a db abstraction layer. The authors of the app we want
|
|
</I>><i> to migrade just used SqlClient wherever.
|
|
</I>><i>
|
|
</I>><i> Anyone have any advice for me?
|
|
</I>
|
|
I was wrong, the working .NET app does issue a similar command...
|
|
.NET:
|
|
RPC: exec sp_procedure_params_rowset @procedure_name =
|
|
N'SelectReferenceTables'
|
|
|
|
Mono:
|
|
SQL:sp_procedure_params_rowset @P1=N'dbo.SelectReferenceTables'
|
|
|
|
The differences being the RPC vs. SQL, @procedure_name vs. @P1, the spaces
|
|
around "=", and the "dbo.".
|
|
|
|
Does that indicate a bug? Or, more likely, a configuration issue?
|
|
|
|
-Michael George
|
|
Ideal Solution, LLC
|
|
|
|
|
|
</PRE>
|
|
<!--endarticle-->
|
|
<HR>
|
|
<P><UL>
|
|
<!--threads-->
|
|
<LI> Previous message: <A HREF="025815.html">[Mono-list] different behavior between .NET and Mono
|
|
</A></li>
|
|
<LI> Next message: <A HREF="025787.html">[Mono-list] Memory usage of mod_mono
|
|
</A></li>
|
|
<LI> <B>Messages sorted by:</B>
|
|
<a href="date.html#25780">[ date ]</a>
|
|
<a href="thread.html#25780">[ thread ]</a>
|
|
<a href="subject.html#25780">[ subject ]</a>
|
|
<a href="author.html#25780">[ author ]</a>
|
|
</LI>
|
|
</UL>
|
|
</body></html>
|