OK, so u will need to create a user function to get it:
CREATE function fn_hex_to_char (
@x varbinary(100), -- binary hex value
@l int -- number of bytes
) returns varchar(200)
as
begin
declare @i varbinary(10)
declare @digits char(16)
set @digits = '0123456789ABCDEF'
declare @s...
Wow, now i understand (u only want duration for jobs in execution) - OK - Try this:
job_state:
0 Returns only those jobs that are not idle or suspended.
1 Executing.
2 Waiting for thread.
3 Between retries.
4 Idle.
5 Suspended.
7 Performing completion actions.
So we need status=1...
You can get information about jobs (last run date, duration,...) using a query like this:
use msdb
select * from sysjobs a join sysjobservers b on a.job_id=b.job_id
where a.enabled=1 order by last_run_date,last_run_time desc
Sergio - DBA SQL
--Supose that @dt is your field in dts:
declare @dt varchar(10)
set @dt='02/32/2006'
--So use a query in DTS like this:
select case when isdate(@dt)=1 then @dt else null end
Hope this help you.
Sergio - DBA SQL
Common guys, is easier by this way:
update table ... set value=@value where id is in (replace(@ids,char(39),''))
hope i help u...
Sergio
MCP SQL Server
How to prevent users from typing the filename into the text box of an input type file tag, allowing only the browse button to select the file? Any ideas?
Hi fengshui_1998,
No, i want to know how to disable the textbox of this control, to prevent users from type a invalid filename, or a file that not exists.
thanks anyway.
How to prevent users from typing the filename into the text box of an input type file tag, allowing only the browse button to select the file? Any ideas?
...For example, i have a table (tb_users) with a cd_user column. I know that every user has a cd_user code greater than 0, so i can replicate my structure with this transact-sql:
select * into tb_users2 from tb_users where cd_user=0
The tb_users 2 will be created with no records.
Sergio M. Netto.
Yes, it happens with some objects. You may use the showModalDialog method passing the form as a argument, example:
Parent Window:
<html>
<head>
<SCRIPT Language="Javascript">
<!--
function myopen(){
var z=showModalDialog('popup.htm' , document.form1 ...
Hi, there's no way to do that. You may use the open method to create your own window:
open(URL, windowName, windowFeatures)
See:
http://developer.netscape.com/docs/manuals/communicator/jsref/win1.htm#1152528
Hi,
INPUT TYPE=IMAGE is the same as INPUT TYPE=SUBMIT, so the page is submited to the same url.
Try to use <IMG src="HdrIconGO.gif" NAME="point" onClick="location=document.c809.c748.options[document.c809.c748.selectedIndex].value">
Sergio.
You can use this:
<html>
<body>
<%
session("xy")=3
session("name")="john"
%>
<script language=javascript>
var n=<%=session("xy")%>;
var z='<%=session("name")%>';
alert('number='+n+' name='+z);
</script>
</body>
</html>
Sergio M. Netto
Hi, i think this is what you want:
<a href="javascript:document.location='developRequest.asp?step=5&taskcode='+getTask.taskCode.value;">Develop request</a>
Sergio M. Netto.
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.