Viewing 15 posts - 136 through 150 (of 359 total)
I have changed the joins now to inner joins as i realize the where clause negates on of the left joins and the other can also be inner join, not...
November 28, 2012 at 2:24 am
HI,
thanks for your reply but i took that extra parameter @joboid>0 out of the SP as its was a usless parameter not sure what the reason behind the person who...
November 28, 2012 at 12:36 am
HI Gail,
here you go thank you for you help, am tearing my hair out to try understand this 🙂
November 27, 2012 at 1:40 pm
your welcome, i use windows scheduled task, you have to pass 3 parameter
1 drive or URL to Drive
2 hostname (not used in processing, only used to write to log...
November 8, 2012 at 11:07 am
@jeff here you go, save it then rename it to .vbs 🙂
November 8, 2012 at 10:50 am
this gives you the charindex of comma 1 and comma 2
select charindex (',',col) as comma1,charindex(',',SUBSTRING(col,charindex(',',col)+1,99))+charindex (',',col) as comma2
from #t1
November 8, 2012 at 3:01 am
99 reflects the potential length of a string between the 1st comma and the second comma
Substring syntax
Substring (expression,startpoint,lenght)
99 represents thee Length of the expression
build the query up have a...
November 7, 2012 at 3:48 pm
that URL does not resolve for me, like i say i use a VBS script that works perfect for me i can even pass a URL and it works prety...
November 7, 2012 at 3:33 pm
this would show what ever was between the 1st comma and the second
declare @string varchar(20)
set @string='A,B,C'
Select substring( SUBSTRING(@string,charindex(',',@string)+1,99),0,charindex(',',SUBSTRING(@string,charindex(',',@string)+1,99)))
EDIT
also take a look at this post
http://www.sqlservercentral.com/Forums/Topic1368056-391-1.aspx#bm1368081
November 7, 2012 at 3:26 pm
you could create something from master..xp_fixeddrives however, i created a VBS script that you pass a couple of parameter, disk to check and threshold, if the disk space is less...
November 7, 2012 at 3:16 pm
are you sure there isnt anymore to your requirements? looks a bit too simple to me
select ano from #x1
where ano!=4
order by ano
November 7, 2012 at 3:06 pm
thanks i think you should tell my boss that
November 4, 2012 at 2:36 pm
Look up coalesce
select coalesce(col1,col2,col3) from t1
October 31, 2012 at 10:58 am
Do you have a list of file names? you could use master.dbo.xp_fileexist to determine if they exist or not
October 8, 2012 at 6:55 am
in answer to your other question
set @param='%'+XXXX+'%'
October 3, 2012 at 4:15 pm
Viewing 15 posts - 136 through 150 (of 359 total)