Viewing 15 posts - 3,796 through 3,810 (of 5,394 total)
This seems to do the trick:
ALTER FUNCTION [dbo].[alias2dnsname] (
@alias NVARCHAR(50)
)
RETURNS TABLE
AS
RETURN (
WITH zones AS (
SELECT dnsname, alias
FROM dnszone AS A
WHERE A.alias...
October 14, 2010 at 10:16 am
Thanks for the feedback, George.
I'm still facing the problem and I checked the maintenance plan. It sets fillfactor 90% as you mentioned.
Let me ask you, since I'm not expert on...
October 14, 2010 at 9:20 am
Ehm... my function doesn't seem to return the correct results.
Let me work on it a bit.
October 14, 2010 at 9:07 am
You could also try the ITVF version:
CREATE Table dnszone (
alias varchar(50),
dnsname varchar(50)
)
INSERT INTO dnszone
SELECT '1.1.1.1', 'dummydummy.uk'
UNION...
October 14, 2010 at 8:50 am
DBCC FREESYSTEMCACHE('ALL') doesn't shrink tempdb, but deallocates all interal objects in tempdb, so that you can shrink it.
Until internal objects are deallocated, you can't shrink tempdb under the size in...
October 14, 2010 at 7:02 am
I don't think you can.
sp_start_job doesn't actually start the job, but tells SQLAgent that there's a start request and then returns immediately.
I think you could add a sleep...
October 14, 2010 at 6:33 am
You could use application locks:
http://www.sqlteam.com/article/application-locks-or-mutexes-in-sql-server-2005
October 14, 2010 at 6:25 am
OK, so you just have to query sysjobservers:
SELECT last_run_outcome -- 0 = Fail
...
October 14, 2010 at 6:04 am
concatenate all returned values.
Doesn't look to me like a great idea. Consider changing the function from scalar to ITVF.
Anyway, you can use something like this:
SET @concatenatedString =
...
October 14, 2010 at 4:30 am
I think you will have to add that column to your report from an appropriate table, mapping countries with currencies.
October 14, 2010 at 4:19 am
The query returns 1 when the input value is longer than 4 char (len(ltrim(rtrim(@vEmail)))>4) and contains the "@" char (patindex('%@%',@vEmail)>1).
PATINDEX returns the offset in the input string where the search...
October 14, 2010 at 3:47 am
These procedures should help.
-- Returns the status of each job
EXECUTE master.dbo.xp_sqlagent_enum_jobs 1, SUSER_SNAME
-- Returns the last execution outcome
EXECUTE msdb.dbo.sp_help_job
The first one is undocumented, but you should find some documentation with...
October 14, 2010 at 3:23 am
Yes, Nick, that's the idea behind.
SERVER1 - PROCESSING JOB:
STEP1 - Check if TRANSFER JOB is running and wait for its completion.
STEP2 - Process Data
SERVER1 - TRANSFER JOB:
STEP1 - Transfer...
October 14, 2010 at 1:20 am
Viewing 15 posts - 3,796 through 3,810 (of 5,394 total)