SQL Server?????????????
???????????? ???????[ 2016/7/15 11:15:45 ] ????????????? SQL Server
????step4???????????????????
create view dbo.view_Person
as
select [PersonID]
??[PersonType]
??[FirstName]
??[MiddleName]
??[LastName]
from [dbo].[Person] with(nolock)
where [PersonType] in('IN'??'EM'??'SP')
union all
select [PersonID]
??[PersonType]
??[FirstName]
??[MiddleName]
??[LastName]
from db1.[DBTest2].[dbo].[Person] with(nolock)
where [PersonType] in('SC'??'VC'??'GC')
with check OPTION;
????Step5??????????????????м??
????SELECT *
????from dbo.view_Person p
????where p.PersonType in ('em'??'sc')
????Step6?????
?????????????????????????????????????OPENQUERY??????м??????????????????????????
????1?????OpenQuery??????DTC????
create view dbo.view_Person
as
select [PersonID]
??[PersonType]
??[FirstName]
??[MiddleName]
??[LastName]
from [dbo].[Person] with(nolock)
where [PersonType] in('IN'??'EM'??'SP')
union all
select [PersonID]
??[PersonType]
??[FirstName]
??[MiddleName]
??[LastName]
from OPENQUERY ( db1 ??
N'select [PersonID]
??[PersonType]
??[FirstName]
??[MiddleName]
??[LastName]
from db1.[DBTest2].[dbo].[Person] with(nolock)
where [PersonType] in(''SC''??''VC''??''GC'')' ) as p
with check OPTION;
????2????Local Server????·??????
update db1.DBTEST2.dbo.person
set FirstName=N'Harm'
where PersonId=102;
--????
exec db1.DBTEST2.sys.sp_executesql N'update dbo.person
set FirstName=N''Harm''
where PersonId=102;'
Appendix
--SQL Server ????????? 'Ad Hoc Distributed Queries'
exec sp_configure 'show advanced options'??1
reconfigure
exec sp_configure 'Ad Hoc Distributed Queries'??1
reconfigure
--??????????Ad Hoc Distributed Queries??
exec sp_configure 'Ad Hoc Distributed Queries'??0
reconfigure
exec sp_configure 'show advanced options'??0
reconfigure
???????????????????????漰???????????????????SPASVOС??(021-61079698-8054)?????????????????????????
??????
???????sql server 2000??????????????SQL Server???????????????????λ?????SQL Server??????????????????????????????SQL Server??Azure SQL??SQL SERVER ?????????????汾??????SQL Server??WITH (NOLOCK)SQL Server??????????????DML??????????SQL Server????????????????????SQL Server??????SQL Server???????????Ч?????????SQL Server?????????????????SQL Server?????????????????SQL Server????????SQL SERVER????????SQL Server????δ???????SQL SERVER??????????
???·???
??????????????????
2023/3/23 14:23:39???д?ò??????????
2023/3/22 16:17:39????????????????????Щ??
2022/6/14 16:14:27??????????????????????????
2021/10/18 15:37:44???????????????
2021/9/17 15:19:29???·???????·
2021/9/14 15:42:25?????????????
2021/5/28 17:25:47??????APP??????????
2021/5/8 17:01:11????????
?????????App Bug???????????????????????Jmeter?????????QC??????APP????????????????app?????е????????jenkins+testng+ant+webdriver??????????????JMeter????HTTP???????Selenium 2.0 WebDriver ??????