473,498 Members | 1,218 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Managed Code in SQL advantage confusion (C#)

5 New Member
Hi,

I'm developing this scientific application that does the following-

1. read a data table ( 100's of millions of rows )
2. Create a tree out of this data ( a kd-tree which is sort of like a binary search tree but over multiple dimensions )
3. store this tree in a database table

Part2

1. Read a previously stored tree into memory
2. Read the data table that was used to create the tree
3. now performs some complicated tree traversal etc on this data set and tree
4. store results of traversal into a database table.

Now I have written the application entirely in C#. the initial plan was to create an assembly out of this code and put it inside SQL server so that it can run in SQL CLR and then users can call this function through query analyzer and it will do everything from loading data to storing table.

Now, suddenly I'm a bit confused. The only code that I have to change in my application to put it into SQL server as managed code is where i get my connection I use the connection string to get the current context connection...

The rest all seems exactly like a typical program that runs outside of sql server. I get a connection .. read the data into an array in memory, do computation, then write to a database table. So I'm failing to see here the advantage of importing the code into sql server. In fact I see the disadvantage that if I have a table with 100's of millions of row's I shouldn't be asking for sql server for so much memory anyway.

Am I missing something. Have I approached the application's development in a wrong manner? Will there be an advantage ( performance wise ) if I run this inside SQL server.
Dec 7 '07 #1
0 986

Sign in to post your reply or Sign up for a free account.

Similar topics

4
2491
by: 0to60 | last post by:
I'm trying to create a .dll with VS.NET 2003 Architect that contains a math computational component. I need the guts of the thing to be in native code, as performance is key for that part. But, I...
10
1612
by: Edward Diener | last post by:
The documentation states the names of the various managed operators but does not give the signature for them. Is there some documentation which I have missed that gives the correct signature ? In...
3
1928
by: Tommy Svensson \(InfoGrafix\) | last post by:
I've been instructed to work againt a huge unmanaged C++ API from a C# application. Now, the only way, as I've understood it, is to go the Managed Extensions for C++ way. This means I have to...
1
2533
by: Ghost | last post by:
Hi all, I wrote a program in C# and now I have to "translate" it i visual C++ (MFC) using .NET, but I had a little problem: *ERRORS* error C3181: 'CTestDlg' : invalid operand for __typeof,...
2
2710
by: Sandy | last post by:
I am confused about Unmanaged Code, How .Net Framework treate that code, What is the use of that. Thanks in advance Sandeep Chitode
171
7579
by: tshad | last post by:
I am just trying to decide whether to split my code and uses code behind. I did it with one of my pages and found it was quite a bit of trouble. I know that most people (and books and articles)...
4
1273
by: Z.K. | last post by:
I am curious as to why this code works: Form2 ^OC = gcnew Form2(); OC->Text = "Child"; OC->MdiParent = this; OC->Show(); and this does not: Form2 *OC = new Form2();
0
1144
by: manyuaditya | last post by:
Hi, I'm developing this scientific application that does the following- 1. read a data table ( 100's of millions of rows ) 2. Create a tree out of this data ( a kd-tree which is sort of like a...
9
3525
by: =?Utf-8?B?RWR3YXJkUw==?= | last post by:
I would greatly appreciate some help on passing managed object into unmanaged code. I need to pass a reference (address of) of a managed class into unmanaged code (written by a thrid party). The...
0
6998
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
7163
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
7375
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
5460
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
1
4904
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...
0
3078
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
0
1416
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated ...
1
651
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
0
287
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.