473,378 Members | 1,479 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,378 software developers and data experts.

Managed Code in SQL advantage confusion (C#)

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 1142

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

Similar topics

22
by: Alper AKCAYOZ | last post by:
Hello Esteemed Developers and Experts, I have been using Microsoft Visual C++ .NET for 1 year. During this time, I have searhed some topics over internets. Most of the topics about .NET is...
4
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
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
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
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
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
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
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
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...
9
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
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...
0
by: ryjfgjl | last post by:
In our work, we often need to import Excel data into databases (such as MySQL, SQL Server, Oracle) for data analysis and processing. Usually, we use database tools like Navicat or the Excel import...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...

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.