Nicklee. Framework. v.1.8.1 overall architecture supports distributed queries and distributed transactions

Source: Internet
Author: User

Nicklee. Framework. v.1.8.1 overall architecture supports distributed queries and distributed transactions

You can write the distributed syntax supported by sqlserver in XML in the data layer of the framework.
For example:
Select *
From OpenDataSource (
'Sqlodb ',
'Data source = 192.168.xx.xx; user id = sa; Password = Sa'
). Northwind. DBO. categories as
Left join northwind. DBO. categories as B on A. categoryid = B. categoryid

Or
Select *
From OpenDataSource (
'Sqlodb ',
'Data source = 192.168.100.xx; user id = sa; Password = Sa'
). Northwind. DBO. categories as [A]

Left join

OpenDataSource (
'Sqlodb ',
'Data source = 192.168.100.xx; user id = sa; Password = Sa'
). Northwind. DBO. categories as [B]

On a. categoryid = B. categoryid

Left join

-- Full path restriction is required.
Northwind. DBO. categories as [c]

On C. categoryid = B. categoryid

Or use the method described by frog.
Method 2:
Use the connection server first:
Exec sp_addmediaserver 'Alias ', '', 'msdasql', null, null, 'driver = {SQL Server}; server = remote name; uid = user; Pwd = password ;'
Exec sp_add1_srvlogin @ rmtsrvname = 'aliased ', @ useself = 'false', @ locallogin = 'sa', @ rmtuser = 'sa ', @ rmtpassword = 'Password'
Go

Then you can:

Select * from alias. Database Name. DBO. Table Name
Insert database name. DBO. Table Name select * from alias. Database Name. DBO. Table Name
Select * into database name. DBO. New table name from alias. Database Name. DBO. Table Name
Go

To put it simply, data mining, data collection, OLAP, distributed queries, and distributed transactions can be achieved by SQL Server T-SQL. Now, in nicklee. framework. v.1.8.1 the data layer of the overall architecture is supported and more flexible, nicklee. framework. v.1.8.2 the overall architecture will provide specific examples of distributed queries and distributed transactions. If you have enough skills, you can touch them yourself. I believe there is a different experience.

To put it more simply, all the queries passed in the query analyzer can be written in XML.
 

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.