2.0 and other

  • Thread starter Thread starter M@
  • Start date Start date
M

M@

Hi,
I'm a .net newbie and I have some question
about it, can someone help me?

I read that Microsoft published a asp.net 2.0 beta1,
but when will be published the first definitive version?

What kind of difference there is from "managed code" and
"unmanaged code" ?

Is possible to write a web form application
database-indipendent (using only SQL instructions...) ?

Thanks

M
 
I read that Microsoft published a asp.net 2.0 beta1,
but when will be published the first definitive version?
Around the end of 2005
What kind of difference there is from "managed code" and
"unmanaged code" ?
Managed code runs in dotnet framework. Unmanaged code runs outside dotnet
framework.

Is possible to write a web form application
database-indipendent (using only SQL instructions...) ?
Yes, why not?

Eliyahu
 
Is possible to write a web form application
database-indipendent (using only SQL instructions...) ?

Yes, though it will need some careful planning first. Are you intending to
write a web app which will e.g. integrate into a customer's existing
intranet and interface with whatever backend RDBMS that customer has? If so,
I'm doing that very thing at the moment :-)

The way we do it is to have one single web application which provides the
GUI, plus several class libraries which provide the database integration.
Each of these class libraries has exactly the same interface and are,
essentially, a wrapper for the System.Data namespace.

When any of the class libraries is instantiated, a connection string (stored
encrypted in Web.config) is passed to it and then the particular method is
called. E.g. one of the most used functions in the class libraries is called
"FetchDataset(p_strSQL)". As you can imagine, it receives an SQL string (raw
or stored procedure), runs it against the specific RDBMS and returns a
System.Data.Dataset object back to the front-end. Another function is called
RunSQL(p_strSQL) which is used for writes to the underlying RDBMS and
returns an integer representing the number of rows affected by the write.

So far we have completed class libraries for SQL Server, Oracle and mySQL.
The next one will be whatever our next client uses... :-)
 
Just to be clear, both managed and unmanaged code run as part of the .Net
framework. However, managed code is run inside the CLR (common language
runtime, think java virtual machine) which provides numerous benefits, such
as security (buffer overruns, code access security), garbage collection,
cross language integration, type safety and so on. Unmanaged code doesn't
run inside the CLR and doesn't benefit from the above menitioned god-sends.
As a primary advantage, unmanaged code has the potential of being faster,
but at a tremendous cost which should only be taken when such performance
gains are truely necessary (ie, if the rocket booster doesn't split at this
exact second, people die).

I just found the reference to running in and out of the .net framework
somewhat misleading, as the .Net framework, in my mind, is wider than the
CLR.

Karl
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top