|
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)
|
|
|
|
|
Hi ,
May i know how can i add userName and password elements to ProcessModel tag in Machine.config using c# console application ....
|
|
|
|
|
Load the Machine.Config Xml file using XmlDocument() are by many other ways...Modify the required node. Try Google to know how to add or modify a XML node
"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)
|
|
|
|
|
i write this in datagrid...
i write this in datagrid...
im got the following error what is it means...
how i can solve this..
'ASP.test_aspx' does not contain a definition for 'btnapprove_Click' <-----
<asp:templatecolumn headertext="APPROVE" xmlns:asp="#unknown">
<itemtemplate>
<asp:checkbox id="chkbox" runat="server">
<footertemplate>
<asp:button id="btnapprove" runat="server" text="Approve" onclick="btnapprove_Click">
|
|
|
|
|
Implement an event handler btnapprove_Click for the click event of the button.
Hmm...better learn the basics of ASP.NET first
"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)
|
|
|
|
|
|
It is possible to schedule file uploads to the server with out any webservice?
|
|
|
|
|
Yes. But, it's not possible to do it in ASP.NET, if you want to schedule an upload then there needs to be code running on the client machine to upload the file at the appointed time. Well, you could require them to keep a webpage open until the appointed time, but that's sure ugly.
Christian Graus
Driven to the arms of OSX by Vista.
|
|
|
|
|
Yes we need to implement sheduler as a desktop application.
How to send information to the server,
do we need to keep a sperate page for doing this or
Running a webservice in the server
I mean which is better
|
|
|
|
|
Radhakrishnan G. wrote: which is better
Running a web service or WCF service will be better.
|
|
|
|