Viewing 15 posts - 16 through 30 (of 60 total)
Thank you so much for taking the time to answer my questions. Adding the dbo.fn_hadr_database_is_primary function worked just liked I wanted.
Additional question now.
Server A and Server B both has...
September 22, 2015 at 1:02 pm
That worked! Thank you for much for helping.
One additional question. I have the function dbo.fn_hadr_database_is_primary running on the Primary and Secondary server. I have a job setup...
September 22, 2015 at 10:39 am
ok, this works........ which is good but I don't want it to run if it's not primary. What am I missing?
DECLARE @DB_name NVARCHAR(128) = N'Q2DB_312102';
IF EXISTS ( SELECT...
September 22, 2015 at 8:18 am
yes,
But if it's set to 'secondary'. How do I just exit? I don't want the job to run if the DB is marked 'secondary'
(Sorry. I'm new...
September 21, 2015 at 3:20 pm
thank you. I found the below and it works by returning role_desc = secondary
SELECT AGS.name ...
September 21, 2015 at 1:05 pm
Thank you for your reply. That function is only available in SQL 2014/2016. Do you know what function would work in 2012?
Shelley
September 21, 2015 at 12:07 pm
Correct. No databases appeared until I choose 'SQL server' as 'Server Type'
NOTE: I have never had to do this until SQL2012
Shelley
June 4, 2015 at 7:12 am
I fixed this. When creating a linked server in 2012 to another SQLSERVER you need to click 'SQL Server' under Server Type on the General Tab
Shelley
June 3, 2015 at 3:40 pm
smaller example:
this set of code
Select *--top 10 c14.nID, [FldNumeric23760]
from tblObjectType3_14 C14
Inner Join tblObjectType3_12 C12 on C12.nID=C14.nID
Inner Join tblTerritory T on T.tID=C12.FldNumeric23369
where [FldNumeric23764] = 2
and tID = 1
order by [FldNumeric23760]
NOTE: ...
September 26, 2014 at 10:42 am
the select statement in the join assigns a number in the "n" column
1-whatever
it also orders it there
however when trying to use the case statement at the top the "n" is...
September 26, 2014 at 10:39 am
the select statement in the join orders the numbers asc and if you run everything below the case statement it works, but as you run the whole thing the order...
September 26, 2014 at 9:56 am
No, I don't have login triggers
Shelley
September 23, 2011 at 9:16 am
Error [298] sqlserver Error: 258 TXP provider: Timeout error [258].
Error [165] ODBC error: Login timeout expired
Error [298] Sqlserver error: 258 Unable to complete login process due...
September 23, 2011 at 8:10 am
Viewing 15 posts - 16 through 30 (of 60 total)