Viewing 15 posts - 4,411 through 4,425 (of 5,394 total)
Set ServerName=ArgObj.Item(0)
should be changed to
ServerName=ArgObj.Item(0)
because in VBScript Set is used to assign objects only, not primitive types.
Hope this helps
Gianluca
April 21, 2010 at 2:06 am
END TRAN is not needed, it's not even a valid command.
Transactions begin with BEGIN TRAN and are terminated by a COMMIT or a ROLLBACK command.
Get rid of END TRAN and...
April 21, 2010 at 1:52 am
IN doesn't work that way. Every single value must be a variable on its own, so that you can use IN(@value1, @value2, ..., @valueN).
You could use a table variable to...
April 21, 2010 at 1:09 am
Thanks, Tom. So, you're a Scot, aren't you?
April 20, 2010 at 8:57 am
jcrawf02 (4/20/2010)
Gianluca Sartori (4/20/2010)
Tom.Thomson (4/19/2010)
lmu92 (4/19/2010)
Hi,anybody of you folks influenced by the volcano eruption on Iceland?
I haven't been hit by it yet, but I'm supposed to be flyin from...
April 20, 2010 at 7:50 am
@Grant, looks a lot like cut'n paste. Would be nice to know the source.
April 20, 2010 at 7:07 am
anthony_merriwether (4/19/2010)
April 20, 2010 at 7:04 am
April 20, 2010 at 6:59 am
Your post covers everything and it covers nothing. I suggest sticking to the OP's issue and waiting for more info. I'm sure he will appreciate the effort, but I don't...
April 20, 2010 at 6:56 am
You could use the split function I posted in the 2005 forum and do it this way:
DECLARE @temp TABLE (
name VARCHAR(50)
)
INSERT INTO...
April 20, 2010 at 6:42 am
I'm doing the quite the same thing with a linked server, but the two databases reside on the same sql cluster and there's no VPN complexity involved.
I like the Web...
April 20, 2010 at 6:34 am
You could also use a windowed aggregate with a slight trick:
DECLARE @Recent TABLE (
Link varchar(500),
click int,
vote int
)
INSERT INTO @Recent VALUES('google',1,5)
INSERT INTO @Recent VALUES('google',2,3)
INSERT INTO @Recent VALUES('google',1,2)
INSERT INTO @Recent VALUES('yahoo',3,1)
INSERT INTO...
April 20, 2010 at 6:18 am
You could use a subquery:
WITH MyTable AS
(
SELECT TOP(100) Link,COUNT(*) AS num,SUM(click) AS click,SUM(vote)AS vote FROM
Recent
GROUP BY Link
ORDER BY num DESC
)
SELECT *, NUM = (SELECT SUM(num) FROM MyTable)
FROM MyTable
April 20, 2010 at 6:12 am
It should translate to this:
SELECT CPU_Util.CPU_SERVER,
CPU_Util.CPU_UTIL,
...
April 20, 2010 at 6:05 am
Viewing 15 posts - 4,411 through 4,425 (of 5,394 total)