I have to compare Remedy data tables from a main site to four sub-sites. I can do this by using left and right outer joins (to similate full outer joins).
I came up w/ the stacked union queries to check
Master->Site1,
Master<-Site1
Master->Site2,
...
Gave that to our (new) DBA guy and he returned the MSDASQL statement form to be able to call the four remote DBs from our main MS SQL DB environment.
I'm trying to do it from an MS SQL query from w/in CR 9.0 -- as an "Add Command" query to pass to the SQL server.
I can't get the statement to work:
SELECT "Main -> Site1" as Site, a.Group_name as CheckFor
FROM OPENROWSET('MSDASQL', 'DRIVER={SQL SERVER};SERVER=SRVRNAME;UID=UserNm;PWD=SrvrPWD,ARSystem.dbo.Group_x) AS b
ON a.Group_name = b.Group_name
WHERE b.Group_name is null
I get "Failed to open a rowset.
Details: 42000:[Miscrosoft][ODBC SQL Server Driver][SQL Server]Ad hoc access to OLE DB provider 'MSDASQL' has been denied. You must access this provider through a linked server."
OK, I'm "duh'ed" out.
I was hoping that this would let me hand-jam the various table names/fields to check as required and still get results out in Crystal.
Anybody have any experience w/ CR9 and the use of SQL statements from w/in?
Is there another / better way to do this? Ulp. I'll post this in SQL forums also for a related quex.
I came up w/ the stacked union queries to check
Master->Site1,
Master<-Site1
Master->Site2,
...
Gave that to our (new) DBA guy and he returned the MSDASQL statement form to be able to call the four remote DBs from our main MS SQL DB environment.
I'm trying to do it from an MS SQL query from w/in CR 9.0 -- as an "Add Command" query to pass to the SQL server.
I can't get the statement to work:
SELECT "Main -> Site1" as Site, a.Group_name as CheckFor
FROM OPENROWSET('MSDASQL', 'DRIVER={SQL SERVER};SERVER=SRVRNAME;UID=UserNm;PWD=SrvrPWD,ARSystem.dbo.Group_x) AS b
ON a.Group_name = b.Group_name
WHERE b.Group_name is null
I get "Failed to open a rowset.
Details: 42000:[Miscrosoft][ODBC SQL Server Driver][SQL Server]Ad hoc access to OLE DB provider 'MSDASQL' has been denied. You must access this provider through a linked server."
OK, I'm "duh'ed" out.
I was hoping that this would let me hand-jam the various table names/fields to check as required and still get results out in Crystal.
Anybody have any experience w/ CR9 and the use of SQL statements from w/in?
Is there another / better way to do this? Ulp. I'll post this in SQL forums also for a related quex.