Viewing 15 posts - 1,861 through 1,875 (of 2,171 total)
Also, do you have appropriate rights on the remote server to read the log files?
N 56°04'39.16"
E 12°55'05.25"
August 17, 2006 at 4:06 am
That is becuase errorlog.2 probably does not exist on the remote server!
What does EXEC servername.master..xp_enumerrorlogs tell you?
This is probably what you want.
DECLARE @SQL VARCHAR(8000),
@ServerName VARCHAR(100)
SELECT @ServerName = 'anysqlservermachine'
N 56°04'39.16"
E 12°55'05.25"
August 17, 2006 at 4:05 am
Gila, you are almost there! Just make sure you don't match 4 and 14 and so on with LIKE %.
declare @item table (i_id int identity(1,1), itemname varchar (100),...
N 56°04'39.16"
E 12°55'05.25"
August 17, 2006 at 1:16 am
select 'c1' [column],
max(case when yr = 1995 then c1 end) [1995],
max(case when yr = 1996 then c1 end) [1996],
max(case when yr = 1997 then c1 end) [1997],
...
N 56°04'39.16"
E 12°55'05.25"
August 16, 2006 at 5:00 am
Make use of the SYSPROCESSES table.
select * from master..sysprocesses
N 56°04'39.16"
E 12°55'05.25"
August 16, 2006 at 2:41 am
You also have to tell SQL Server which port to listen on. The same port you use for SQL server, must be opened in the firewall Norton provide.
N 56°04'39.16"
E 12°55'05.25"
August 16, 2006 at 2:28 am
-- prepare test data
declare @test table (Yr int, C1 int, C2 int, C3 int, C4 int, C5 int, C6 int)
insert @test
select 2000, 2, 4, 5, 6, 7, 8 union...
N 56°04'39.16"
E 12°55'05.25"
August 15, 2006 at 1:02 pm
Sergiy,
Scope_Identity() is an useful function even if not in "developer sand box mode".
If you are having a trigger on the customer table that inserts a row in an audit table,...
N 56°04'39.16"
E 12°55'05.25"
August 15, 2006 at 3:49 am
Create a table with three columns. First column is the "from group", second column is "to group" and the third column is the co-relation between the two...
N 56°04'39.16"
E 12°55'05.25"
August 15, 2006 at 1:42 am
Yikes!
-- prepare test data
declare @sample table (id int identity (1, 1), transaction_type int, profit_loss int)
insert @sample
select 10, 200 union all
select 11, -20 union all
select 12, 100 union all
select 12, -120 union...
N 56°04'39.16"
E 12°55'05.25"
August 15, 2006 at 12:38 am
It is the correct syntax. I think it is something else that is wrong.
In what context are you using LEN(VarCarCol) > 1?
N 56°04'39.16"
E 12°55'05.25"
August 13, 2006 at 1:21 pm
You should make use of the RAISERROR method. Read about it in Books Online.
N 56°04'39.16"
E 12°55'05.25"
August 10, 2006 at 12:18 pm
Joe, this problem does not need a cursor. Never use a cursor when a set-based solution is available.
Look at this simple solution.
-- Update the existing accounts in...
N 56°04'39.16"
E 12°55'05.25"
August 8, 2006 at 11:02 am
You have to write a SP on the remote server that does this
select host_name()
Then you have to execute that SP from the linking server.
N 56°04'39.16"
E 12°55'05.25"
August 4, 2006 at 12:05 pm
Viewing 15 posts - 1,861 through 1,875 (of 2,171 total)