SQL Server How to insert current results into table -


i have run lengthy query results useful.

unfortunately did not insert results table, displayed in results view there way store current results table temp table? data exists.. possible like:

select * #tempresults currentresults 

where currentresults points to... current results

you can try save results tab separated file. click in little blank square on top left of results. select results see. after right click on same little square , select copy headers.

enter image description here

this copy results in clipboard using tabs columns delimiter , new line symbol (\r\n) rows delimiter. paste new file. can use import data menu insert results in table (new 1 or existing one):

enter image description here

select flat file source data source in import wizard, choose file made. sure set proper datatype each column importing in advanced menu on left. otherwise errors/warnings during import:

enter image description here


Comments

Popular posts from this blog

Fail to load namespace Spring Security http://www.springframework.org/security/tags -

sql - MySQL query optimization using coalesce -

unity3d - Unity local avoidance in user created world -