March 2, 2011 at 1:58 pm
select template_id, template_name, template_content, template_group, template_section,
delete_ind, application
from version5_ABCM..slxHRScreenTemplates
where template_group = 'ADMIN' or template_group = 'Corp Benefits' or template_group = 'Data Proc' or template_group = 'Smartlinx'
select template_id, template_name, template_content, template_group, template_section,
delete_ind, application
from version500..slxHRScreenTemplates
where template_group = 'ADMIN' or template_group = 'Manager' or template_group = 'Payroll' or template_group = 'HR'
Databases: version5_ABCM, version500
table: slxhrscreentemplates
columns: template_id, template_name, template_content, template_group, template_section,
delete_ind, application
assignment: I need to replace the information in version500..slxhrscreentemplates with the information in version5_ABCM..slxhrscreentemplates.
Keep in mind that template_content has XML, so XML has to be preserved.
March 2, 2011 at 2:04 pm
Please don't cross post as this just clutters things up and makes it harder for others to find the resolution.
The original thread is here
_______________________________________________________________
Need help? Help us help you.
Read the article at http://www.sqlservercentral.com/articles/Best+Practices/61537/ for best practices on asking questions.
Need to split a string? Try Jeff Modens splitter http://www.sqlservercentral.com/articles/Tally+Table/72993/.
Cross Tabs and Pivots, Part 1 – Converting Rows to Columns - http://www.sqlservercentral.com/articles/T-SQL/63681/
Cross Tabs and Pivots, Part 2 - Dynamic Cross Tabs - http://www.sqlservercentral.com/articles/Crosstab/65048/
Understanding and Using APPLY (Part 1) - http://www.sqlservercentral.com/articles/APPLY/69953/
Understanding and Using APPLY (Part 2) - http://www.sqlservercentral.com/articles/APPLY/69954/
Viewing 2 posts - 1 through 1 (of 1 total)
You must be logged in to reply to this topic. Login to reply