|
webparts section in asp.net toolbox will fullfill your requirement to achieve drag and drop functionality..
umerumerumer
|
|
|
|
|
|
Hello EveryBody....
I want help. can any one plz suggest me that what can i do becoz i want to compare the value from a database field that contains about 160 millions records. for Example
table contains a field called Email taht contains about 160 millions Adresses. Now when some one enters new email Address. Now i want to compare with existing records and remove them if a duplicate Entry Exists.
|
|
|
|
|
AhmedNisar82 wrote: what can i do becoz i want to compare the value from a database field that contains about 160 millions records
Index it first.
AhmedNisar82 wrote: Now i want to compare with existing records and remove them if a duplicate Entry Exists.
Cache this information in your application memory and od the comparision from the in memory records.
Please remember to rate helpful or unhelpful answers, it lets us and people reading the forums know if our answers are any good.
|
|
|
|
|
Manas Bhardwaj wrote: Cache this information in your application memory and od the comparision from the in memory records
That is a seriously screwed up idea! You are crazy if you think that's a good idea.
Let SQL Server do what SQL Server is best at and have it do the comparison rather than saturate your network with 160 million rows of data and then bring the client PC to its knees because you've just dumped a shed-load of data in it.
What do you think the memory requirements are for 160 million rows?
Assume an integer primary key: 4 bytes
Assume each address is an average of say 32 characters (using a western alphabet) 32 bytes.
36 bytes * 160 million = 5,760,000,000
In total that is just shy of 6Gb you want to dump in RAM! On top of that you have overhead for the operating system, other applications and so on.
[UPDATE] Okay, I misready what sort of address. If we assume 20 bytes for an email address, the memory requirement is less, but it is still significant. 24 * 160 million = 3.8Gb
modified on Monday, February 2, 2009 11:45 AM
|
|
|
|
|
thnx 4 ur comments....
my application runs on server not on the client side......
So.?????????
|
|
|
|
|
AhmedNisar82 wrote: my application runs on server not on the client side
Be aware that "client" in the context that I used it meant any process outside of SQL Server i.e. Any client of SQL Server.
The "client" could be on the same machine as SQL server, or another machine. Either way the effect of memory consumption is the same. If the process is on the same machine as SQL Server then you don't have the network bandwidth issues.
|
|
|
|
|
AhmedNisar82 wrote: Now i want to compare with existing records and remove them if a duplicate Entry Exists.
If you do this you won't have to remove stuff because you can prevent the duplicate being inserted in the first place.
IF EXISTS (SELECT * FROM MyTable WHERE Email = @newEmail)
BEGIN
-- Perform action based on email address already existsin
END
ELSE
BEGIN
-- Perform action based on email address not existing.
END
|
|
|
|
|
thnx Colin. thats nice and helpfull. but what can i do with the old records saved on the server. Any suggestion.
|
|
|
|
|
You can find duplicates using something like this:
SELECT MAX(PrimaryKey), COUNT(*)
FROM MyEmailTable
GROUP BY EmailAddress
HAVING COUNT(*) >= 2
The above gives you a list of duplicate rows. You can then use that to delete the duplicates.
e.g.
DELETE FROM MyEmailTable
WHERE PrimaryKey IN
(
SELECT MAX(PrimaryKey)
FROM MyEmailTable
GROUP BY EmailAddress
HAVING COUNT(*) >= 2
)
Also note that it will only remove one duplicate per email address, if there are multiple duplicates then you have to run it multiple times.
NOTE: The above SQL hasn't been tried and may have some syntax errors. Always test on a development database. Do not run this on a live database until you are sure it works they way you want.
|
|
|
|
|
Hi,
May i know how can i run an consoleapplication.exe as a part of MSI package created for asp.net application....
ie whenever i install my msi package in a system and after installing my exe(generated by consoleapplication)(which is attached to msi) should be running...
ie how should i attach my exe to msi (in a nutshell)....
|
|
|
|
|
Hi,
I want to change the gridview cell background color when user clicks it or double click it. User clicks one cell and this cell color is changed and further user clicks another cell also. I've change the latest clicked cell color also and I've to retain the old cell color also, which is clicked by user earlier. Anybody can help for it? Thanks in adv.
Balasubramanian K.
|
|
|
|
|
override the paint method
Vuyiswa Maseko,
Few companies that installed computers to reduce the employment of clerks have realized their expectations.... They now need more and more expensive clerks even though they call them "Developers" or "Programmers."
C#/VB.NET/ASP.NET/SQL7/2000/2005/2008
http://www.vuyiswamaseko.tiyaneProperties.co.za
vuyiswam@its.co.za
|
|
|
|
|
Hello friends,
I am wishing to create a website for online examination.
Can any one give me the important points not to be missed.
Like how to maintain session, timer etc.
Some usefull links regarding same will help me.
Any type of help from you is appreciated.
Thanks in advance.
|
|
|
|
|
|
hi,
I am unable to debug it..dis error has come for twice or thrice and it restarts itself...Plz help me out...
Richa
|
|
|
|
|
Hi,
so what is you application doing? Storing sth at the disk?
Regards
Sebastian
Maybe you are running out of space...
|
|
|
|
|
Hello,
Its a Web-Application in which web services has been implemented..and i am getting this error on the page in which soap coding has been done..
Richa
|
|
|
|
|
|
hello,
How can we limit the length of any data coming from another site.We have set it as
"getrSpice.length - 1" and within loop " strXML = strXML & getrSpice.item(intNode).xml" we have written like this..now plz tell me how the length of "getrSprice" can be limited.
Thnx
|
|
|
|
|
Hi,
first: What about the problem posted before? Is limiting the token size the solution?
Second: What is getrSprice? How do you get the data from another site? You can limit the size at the point where you retrieve the value for getrSpice. Maybe you can post a bit more code?
Regards
Sebastian
|
|
|
|
|
hello
iam using vs 2005 asp.net web site
i need to create context menu on gridview without using ajaz toolkit
md_refay
|
|
|
|
|
|
hello
iam using vs 2005 asp.net web site
i need to create context menu wit treeview that treeview changes depends on selectednode value
i need help
thanks for any help but without using ajax toolkit
thanks alot
md_refay
|
|
|
|
|
Use Javascript to create the context menu...
"Don't worry if it doesn't work right. If everything did, you'd be out of a job." (Mosher's Law of Software Engineering)
|
|
|
|