1
0
mirror of https://github.com/Microsoft/sql-server-samples.git synced 2025-12-08 14:58:54 +00:00
Files
sql-server-samples/samples/features/r-services/loan-classification/5 - Resource Governor Config.sql
2017-02-02 13:46:51 -08:00

47 lines
621 B
Transact-SQL

create external resource pool "lcerp1" with (affinity numanode = (0));
create external resource pool "lcerp2" with (affinity numanode = (1));
create resource pool "lcrp1" with (affinity numanode = (0));
create resource pool "lcrp2" with (affinity numanode = (1));
create workload group "rg0" using "lcrp1", external "lcerp1";
create workload group "rg1" using "lcrp2", external "lcerp2";
USE [master]
GO
SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER ON
GO
CREATE function [dbo].[assign_external_resource_pool]()
returns sysname
with schemabinding
as
begin
return concat('rg', @@SPID%2);
end;
GO