How to get the data from linked servers using queries -
I created a linkeederver as the rakikaran-vm Which is the virtual machine in my desktop.
Now I have a database called kiran which contains the Employment table. / Code> Data, I do the following:
Select from RAVikikaran-vm.kiran.employ * but this error shows "incorrect syntax
Thank you in advance.
Thank you guys with the help of the right thing ... now I have to schedule it as a new job. Normally executed, it shows O / P but when I configure the same query as a sqlserver agent job I give it an error and do not execute the query ... should help me in this regard
thanks in advance
I think you should change the name of the linked server, such as - char is reserved in SQL.
You can try the name around With brackets, but it becomes boring
In addition, you should include the schema name in the query, or defaults Double point for using T:
Therefore, you can try:
select [from ravikiran-vm] .kiran.dbo.employ * Choose [ Ravikiran-VM] Kiran..employ Or whatever your schema is.
Comments
Post a Comment