SQL SERVER Performance – JSON vs XML
2 weeks ago
By:Chandrakant Hibare- Software Engineer,Working with Spain Based Company,Bangalore
delete from MyTable
where uniqueField not in
(select min(uniqueField) from MyTable T2
where T2.dupField=MyTable.dupField)
OPENQUERY: Used to execute the query passed on the linked server.
Syntax: OPENQUERY (Linked_server_identifier, query).
It can also be refernced from a FROM clause of selecte query.
e.g. Select * from OPENQUERY (Oracleserver, ‘select fname, FROM Employee);
OPENROWSET: Used to access tables in a linked server. It can be used one time for accessing remote data by using OLE DB. It includes all the information required to access the remote data.
Syntax: