Viewing 15 posts - 16 through 30 (of 44 total)
35 servers, 42 instances on those 35 servers, 84 database on those 42 instances.
All servers are on virtual environment (vmware)
all backups store in SAN drive (LUN) D:\drive for all of...
May 23, 2016 at 9:42 am
May 23, 2016 at 7:27 am
How big is the transaction log? How often do you perform transaction log backups? did you check if you see anything in error logs or event viewer ? check whether...
May 23, 2016 at 7:24 am
Below query gives error message: Incorrect Syntax near 'NULL' on Last line of the code
SELECT
DISTINCT IsNull(Employee.[Emp_no], Class.[Emp_no])
FROM
Employee
FULL OUTER JOIN
Class
ON
IsNull(Employee.[Emp_no], '') = IsNull(Class.[Emp_no], '')
ANDIsNull(Employee.Org_Code, '') = IsNull(Class.Org_Code, '')
ANDIsNull(Employee.Org_Num,...
May 16, 2016 at 10:26 am
so both of this query works:
;WITH
CTE1 AS (
SELECT [Emp_no.], Org_Code, Org_Num FROM #Employee
EXCEPT
SELECT [Emp_no.], Org_Code, Org_Num FROM #Class
), CTE2 AS (
SELECT [Emp_no.], Org_Code, Org_Num FROM #Class
EXCEPT
SELECT...
May 16, 2016 at 7:53 am
I think i understood that part where i have to setup permission on both the domains. My challenge is what permission i am setting and where exactly i am setting...
May 13, 2016 at 11:19 am
thought it should be fairly simple to display one result with two queries or combining two queries
SELECT [Emp_no.], Org_Code, Org_Num FROM #Employee
EXCEPT
SELECT [Emp_no.], Org_Code, ISNULL(Org_Num,0) FROM #Class
-- get rows which...
May 13, 2016 at 9:36 am
don't know anything about CTE's
i tried this query after reading some articles but it does not work
;WITH CTE1 AS SELECT [Emp_no.], Org_Code, Org_Num FROM #Employee
EXCEPT
SELECT [Emp_no.], Org_Code, Org_Num FROM...
May 13, 2016 at 9:35 am
Looks like this query displays the correct result but it display on separate window. i want one query which will show me one result:
SELECT [Emp_no.], Org_Code, Org_Num FROM #Employee
EXCEPT
SELECT...
May 13, 2016 at 8:18 am
below query gives me wrong result , it seem to list all the values
SELECT
*
FROM
#Employee Employee
FULL OUTER JOIN
#Class Class
ON
IsNull(Employee.[Emp_no.], '') = IsNull(Class.[Emp_no.], '')
ANDIsNull(Employee.Org_Code, '') = IsNull(Class.Org_Code, '')
ANDIsNull(Employee.Org_Num, '')...
May 13, 2016 at 8:17 am
wish this can be done easily with single query :
actually this query provided by previous user does work:
SELECT Emp_no, Org_Code, Org_Num FROM [dbo].[Employee]
EXCEPT
SELECT Emp_no, Org_Code, Org_Num FROM [dbo].[Class]
-- get...
May 13, 2016 at 8:16 am
Chris i believe your solution will work with except between two queries. One major problem with 3rd column comparision. In first table value of 3rd column is 0 but in...
May 12, 2016 at 10:42 am
it is on same server but the 3 columns we are comparing have different names in both tables, not sure if that can be the issue
May 12, 2016 at 10:22 am
Chris, Looks like you solution might work. Only point i forgot to mention was that both the views(tables) are in different database
May 12, 2016 at 10:01 am
Viewing 15 posts - 16 through 30 (of 44 total)