May 2, 2016 at 2:35 pm
Is it possible to use OpenQuery to create a view in a linked server's database? I tried it, but it didn't work for me.
May 3, 2016 at 7:52 am
I think this will be work:
EXECUTE ('create view dbo.v_test as select 1 as d') AT [linked_server_name]
May 3, 2016 at 11:24 am
Thanks. Will this work if the linked server is NOT a SQL Server database?
May 3, 2016 at 11:31 am
imani_technology (5/3/2016)
Thanks. Will this work if the linked server is NOT a SQL Server database?
if the command is compliant with the other DBMS (mysql, oracle, etc,) then yes.
the ODBC driver under the covers of the linked server sends the command, so if it's a valid command(and have the permissions required), you would be good to go.
Lowell
May 3, 2016 at 11:46 am
Thanks!
May 3, 2016 at 1:01 pm
What I'd like to know is why you're trying to backdoor something that you apparently have no privs to. Do it up front and in a forthright manner... contact the owner/DBA of that system and request they do it.
You might also want to read your employee handbook for the company you're working for. What you're doing could be an offense where they could terminate your job with no warning.
--Jeff Moden
Change is inevitable... Change for the better is not.
May 3, 2016 at 6:21 pm
Fortunately, this is just a proof of concept, but you are right. I followed your advice and let the Hive expert/DBA create the view. I was just being impatient.
May 3, 2016 at 9:31 pm
imani_technology (5/3/2016)
Fortunately, this is just a proof of concept, but you are right. I followed your advice and let the Hive expert/DBA create the view. I was just being impatient.
Ya know... it takes a lot to admit something like that. Well done all the way around.
--Jeff Moden
Change is inevitable... Change for the better is not.
Viewing 8 posts - 1 through 7 (of 7 total)
You must be logged in to reply to this topic. Login to reply