나는SQL Server에서 TempTable에 병렬로 삽입하는 방법이 있습니까?
Create #TempTable(ColumnA int, ColumnB int, ColumnC Int)
Insert into #TempTable(select A,B,C from Table1 where some condition formed dynamically)
Insert into #TempTable(select A,B,C from Table1 where some condition formed dynamically)
Insert into #TempTable(select A,B,C from Table1 where some condition formed dynamically)
Insert into #TempTable(select A,B,C from Table1 where some condition formed dynamically)
Insert into #TempTable(select A,B,C from Table1 where some condition formed dynamically)
select * from #TempTable
drop table #TempTable
참고 아래와 같이 동적 SQL 쿼리를 다음 #TempTablecan에 삽입 문장의 수는 10 ~ 100 다를 따라서는 내가 싶었던
을 실행하는 시간이 많이 걸립니다 알다시피 SQL Server 2008 R2에서 Insert 문을 병렬로 실행하고 실행 시간을 줄일 수있는 방법이 있습니까?
실행 시간은 어디에 사용됩니까? CPU 계산 또는 IO? – qxg
"동적으로 형성된 조건"을 누가 작성합니까? SQL 코드 또는 외부 프로그램? –
외부 프로그램 – David