Click here to Skip to main content
15,898,134 members
Home / Discussions / Database
   

Database

 
GeneralRe: Is it possible to get create/alter/drop scripts from within a SP in SQL server 2005? Pin
Jon_Boy24-Nov-09 6:53
Jon_Boy24-Nov-09 6:53 
GeneralRe: Is it possible to get create/alter/drop scripts from within a SP in SQL server 2005? Pin
Mycroft Holmes24-Nov-09 18:15
professionalMycroft Holmes24-Nov-09 18:15 
GeneralRe: Is it possible to get create/alter/drop scripts from within a SP in SQL server 2005? Pin
Jon_Boy24-Nov-09 7:07
Jon_Boy24-Nov-09 7:07 
GeneralRe: Is it possible to get create/alter/drop scripts from within a SP in SQL server 2005? Pin
Ashfield24-Nov-09 21:11
Ashfield24-Nov-09 21:11 
GeneralRe: Is it possible to get create/alter/drop scripts from within a SP in SQL server 2005? Pin
Jon_Boy25-Nov-09 1:18
Jon_Boy25-Nov-09 1:18 
QuestionDuplicate Remover Pin
Vimalsoft(Pty) Ltd24-Nov-09 1:42
professionalVimalsoft(Pty) Ltd24-Nov-09 1:42 
AnswerRe: Duplicate Remover Pin
Niladri_Biswas24-Nov-09 2:38
Niladri_Biswas24-Nov-09 2:38 
GeneralRe: Duplicate Remover Pin
Vimalsoft(Pty) Ltd24-Nov-09 2:42
professionalVimalsoft(Pty) Ltd24-Nov-09 2:42 
i catch the Duplicate from two Records. i was able to do it like this
select sa1,sa2,count(sa1) from EXP_REL_CLSH_CONT
group by sa1,sa2
having count(sa1)> 1
order by sa1,sa2

SELECT ACTV  as ACTV_ID--, count([VENU]) as , sum([stud])
into #temp
FROM [dbo].SOL_ACTV_VENU
group by ACTV
having count(venu) > 1
order by sum(stud) 


and i was deleting my Duplicates like this
SET ROWCOUNT 1
DELETE EXP_REL_CLSH_CONT 
from EXP_REL_CLSH_CONT C
INNER JOIN #ttemp t
on c.sa1 = t.sa1 
and c.sa2 = t.sa2
SET ROWCOUNT 0 


but now in SQL Rowcount = 1 will stop everytime a duplicates is deleted so that it cannot delete the second record. Its Good. But how can i make it to loop and skip one record and delete one in this approach ?

Vuyiswa Maseko,

Spoted in Daniweb-- Sorry to rant. I hate websites. They are just wierd. They don't behave like normal code.

C#/VB.NET/ASP.NET/SQL7/2000/2005/2008
http://www.vuyiswamaseko.com
vuyiswa@its.co.za
http://www.itsabacus.co.za/itsabacus/

GeneralRe: Duplicate Remover [modified] Pin
Niladri_Biswas24-Nov-09 3:22
Niladri_Biswas24-Nov-09 3:22 
AnswerRe: Duplicate Remover Pin
Mycroft Holmes24-Nov-09 18:20
professionalMycroft Holmes24-Nov-09 18:20 
QuestionExporting a report on tables' structure in Oracle Pin
Muammar©23-Nov-09 4:30
Muammar©23-Nov-09 4:30 
AnswerRe: Exporting a report on tables' structure in Oracle Pin
David Mujica23-Nov-09 5:12
David Mujica23-Nov-09 5:12 
GeneralRe: Exporting a report on tables' structure in Oracle Pin
Muammar©23-Nov-09 7:09
Muammar©23-Nov-09 7:09 
AnswerRe: Exporting a report on tables' structure in Oracle Pin
Jörgen Andersson23-Nov-09 21:04
professionalJörgen Andersson23-Nov-09 21:04 
QuestionHow to take a number which compare nearby some numbers ? Pin
Golden Jing22-Nov-09 22:33
Golden Jing22-Nov-09 22:33 
AnswerRe: How to take a number which compare nearby some numbers ? Pin
Blue_Boy22-Nov-09 23:03
Blue_Boy22-Nov-09 23:03 
GeneralRe: How to take a number which compare nearby some numbers ? Pin
Golden Jing22-Nov-09 23:13
Golden Jing22-Nov-09 23:13 
GeneralRe: How to take a number which compare nearby some numbers ? Pin
Blue_Boy22-Nov-09 23:29
Blue_Boy22-Nov-09 23:29 
AnswerRe: How to take a number which compare nearby some numbers ? Pin
Shameel22-Nov-09 23:47
professionalShameel22-Nov-09 23:47 
AnswerRe: How to take a number which compare nearby some numbers ? Pin
Luc Pattyn23-Nov-09 1:36
sitebuilderLuc Pattyn23-Nov-09 1:36 
GeneralRe: How to take a number which compare nearby some numbers ? Pin
Shameel23-Nov-09 2:16
professionalShameel23-Nov-09 2:16 
AnswerRe: How to take a number which compare nearby some numbers ? Pin
Shameel23-Nov-09 4:00
professionalShameel23-Nov-09 4:00 
GeneralRe: How to take a number which compare nearby some numbers ? Pin
Luc Pattyn23-Nov-09 4:28
sitebuilderLuc Pattyn23-Nov-09 4:28 
GeneralRe: How to take a number which compare nearby some numbers ? Pin
Roger Wright24-Nov-09 19:04
professionalRoger Wright24-Nov-09 19:04 
GeneralRe: How to take a number which compare nearby some numbers ? Pin
Luc Pattyn25-Nov-09 2:21
sitebuilderLuc Pattyn25-Nov-09 2:21 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.