Viewing 15 posts - 31 through 45 (of 59 total)
Jeff Moden (6/17/2011)
Sriram.RM (6/16/2011)
SET ROWCOUNT 1
DELETE YOURTABLE
FROM YOURTABLE A WHERE (SELECT COUNT(*) FROM YOURTABLE B WHERE A.COLNAME=B.COLNAME) >1
WHILE @@ROWCOUNT >0
DELETE YOURTABLE
FROM YOURTABLE A WHERE (SELECT COUNT(*)...
June 21, 2011 at 5:34 am
Hi..
Firstly... it would be great if you can give the DDL scripts for the tables along with relations/indices etc. and the scripts to insert the...
June 17, 2011 at 1:18 am
u might wanna try this!!!!
SET ROWCOUNT 1
DELETE YOURTABLE
FROM YOURTABLE A WHERE (SELECT COUNT(*) FROM YOURTABLE B WHERE A.COLNAME=B.COLNAME) >1
WHILE @@ROWCOUNT >0
DELETE YOURTABLE
FROM YOURTABLE A WHERE (SELECT COUNT(*) FROM YOURTABLE B...
June 16, 2011 at 5:12 am
Sorry for the delay in reply... u can use the query i posted earlier to achieve the same result... made some modifications to it...
DECLARE @FLAG INT
DECLARE @CLUB_ID INT
June 8, 2011 at 6:03 am
you can use Upper()/Lower() function to overcome issues related case sensitive issues or look at collation...
June 7, 2011 at 10:51 pm
you can check this out
link to get the features/differences of various editions...
I believe you should have come across this already...
June 7, 2011 at 10:47 pm
Im not sure where do you want to use session values from the .net code... you want to pass it to some procedure or to a query?
June 7, 2011 at 10:40 pm
Not sure what he actually wanted.:doze:.. i just modified the query what he had given... :hehe:
June 7, 2011 at 10:29 pm
your query would not find if it contains special charecters.... try this..
SELECT COUNT(*) VAL2 FROM
(
SELECT COLUMN_NAME FROM TABLE_NAME WHERE (C1 NOT LIKE '%[^A-Z]%'...
June 7, 2011 at 7:07 am
In case you require it in the table structure, you can go for computed columns... more details from MSDN
June 7, 2011 at 3:05 am
My bad.. Missed it out somehow...:(
June 2, 2011 at 10:19 pm
same article quoted by 2 people with a time difference of one min!!!
June 2, 2011 at 7:10 am
Please see the article below written by Jeff Moden on running totals...
June 2, 2011 at 7:07 am
found a work around..... thought might be helpful to others.
Add an empty result set at the top with the same structure as the select statement, this will return the metadata...
June 2, 2011 at 5:18 am
Aplogies.. removed the post... read it wrong...
June 1, 2011 at 12:29 am
Viewing 15 posts - 31 through 45 (of 59 total)