Viewing 15 posts - 46 through 60 (of 98 total)
Ken Simmons (7/8/2008)
I think this will do whay you want.Declare @STR varchar(20)
Set @STR = 'T3es5ta12p001'
select Substring(@str,len(@str)-PATINDEX('%[A-Z]%',reverse(@str))+2,len(@str))
Hi Ken Simmons,
I want to know why you use (+2) in...
July 10, 2008 at 4:19 am
Hi Anil,
try this ....
SELECT o.name AS "Table Name", i.rowcnt AS "Row Count"
FROM sysobjects o, sysindexes i
WHERE i.id = o.id
AND indid IN(0,1)
AND xtype = 'u'
AND o.name <> 'sysdiagrams'
ORDER BY i.rowcnt DESC
---
July 10, 2008 at 4:15 am
Hi Guys,
Thanks you very much for your kind posting. All the post statements are working fine and that are valuable for...
July 9, 2008 at 11:50 pm
hI GilaMonster,
Below is my requirement.
...
July 8, 2008 at 12:37 am
Hi guys,
@T should be changeable one. It ends with '03' or '003' etc...
I think that is the stuff here. ...
July 7, 2008 at 10:55 pm
Hi GSquared,
Yes GSquared. i have to choose Append to file option in that.
at last i got it.
Thanks for your kind help. Thanks man :):):)
---
June 18, 2008 at 7:53 am
hi GSquared,
in that i selected drop option, if i use this i will not...
June 18, 2008 at 7:38 am
Hi GSquared,
Thanks GSquared for your quick answer.
...
June 17, 2008 at 10:46 pm
Thanks you guys for your valuable information. 🙂
June 12, 2008 at 12:05 am
Hi Chris,
Some simply approach.
DROP TABLE #Test
CREATE TABLE #Test(ID int,MyDate DateTime)
INSERT INTO #Test (ID,Mydate)
SELECT 1,'2008-05-14 10:37:48.933'
UNION ALL
SELECT 2,'2008-05-15 10:37:48.933'
UNION ALL
SELECT 3,'2008-05-16 10:37:48.933'
UNION ALL
SELECT 4,'2008-05-17 10:37:48.933'
UNION ALL
SELECT...
May 20, 2008 at 11:16 pm
Hi nihcas77,
Use COLLATE Latin1_General_CS_AS
---
May 19, 2008 at 8:28 am
Hi Debbie Edwards,
Try this one....
DROP TABLE #test
CREATE TABLE #test(PER_ID int,SCH int,COUNTS int)
INSERT #test (PER_ID,SCH,COUNTS)
SELECT 72997,675,1
UNION ALL
SELECT 77960,954,1
UNION ALL
SELECT 121084,903,2
UNION ALL
SELECT 121084,950,2
UNION ALL
SELECT 121431,669,1
UNION ALL
SELECT 121647,1081,1
UNION ALL
SELECT 131220,1083,1
SELECT PER_ID,SCH,COUNTS,case COUNTS when...
May 19, 2008 at 8:00 am
Hi peitech,
One more 🙂
DECLARE @t TABLE (name varchar(20))
INSERT @t
SELECT 'DeBeers'
UNION ALL
SELECT 'debeers'
UNION ALL
SELECT 'Test'
UNION...
May 19, 2008 at 6:00 am
Hi lothar,
Can you tell what your expected result when you executing select statement?
and try with the...
May 6, 2008 at 5:41 am
Viewing 15 posts - 46 through 60 (of 98 total)