Viewing 15 posts - 2,026 through 2,040 (of 5,394 total)
You have to identify the sessions using the database and kill them.
The easiest way is querying sys.sysprocesses (I know, it's a compatibility view, but does the trick very fast).
SELECT spid...
January 26, 2012 at 3:25 am
Can you script out the linked server and post it here please?
Also, can you post a sample of the failing code?
January 26, 2012 at 3:22 am
It returns no rows, with new and old query.
What am I missing?
The only parameter that returns rows is '1'.
January 26, 2012 at 3:06 am
I guess this is a RESTORE WITH REPLACE, isn't it?
Just DROP the database before restoring, no need to restart the instance.
January 26, 2012 at 3:01 am
Thanks, but your sample data looks nothing like your expected output. Can you update that as well?
January 26, 2012 at 2:48 am
Almost forgotten: do it on both servers.
January 26, 2012 at 2:35 am
My bad, I totally misread your initial post. :blush:
Run this instead:
exec sp_configure 'remote access', 1
reconfigure
January 26, 2012 at 2:32 am
This is a tricky requirement and I had to deal with this myself some years ago.
I ended up adding a couple of statements to each stored procedure I wanted to...
January 26, 2012 at 2:20 am
Can you please post the table script as a CREATE TABLE statement and some sample data as INSERT statements? Can you also post the expected output based on the sample...
January 26, 2012 at 1:58 am
There is nothing wrong with the call: it'a a linked server property that controls whether stored procedure calls are allowed or not.
Run the code I posted and let me know.
January 25, 2012 at 3:24 pm
January 25, 2012 at 2:23 pm
EXEC master.dbo.sp_serveroption @server=N'LINKEDSERVERNAMEGOESHERE', @optname=N'rpc', @optvalue=N'true'
GO
EXEC master.dbo.sp_serveroption @server=N'LINKEDSERVERNAMEGOESHERE', @optname=N'rpc out', @optvalue=N'true'
GO
Hope this does the trick.
Gianluca
January 25, 2012 at 10:15 am
January 25, 2012 at 6:05 am
Case matters. Use sqlcmd -S.\instance3 instead (uppercase s).
January 25, 2012 at 6:02 am
GROUP BY should do the trick:
-- SAMPLE DATA
DECLARE @Audit TABLE (
[ID] int,
[Modified on] datetime,
[Previous Delivery Date] datetime,
[New Delivery Date] datetime
)
SET DATEFORMAT dmy
INSERT INTO @Audit
...
January 25, 2012 at 5:55 am
Viewing 15 posts - 2,026 through 2,040 (of 5,394 total)