dbTalk Databases Forums  

Updating Entire table w/ DTS Job?

microsoft.public.sqlserver.dts microsoft.public.sqlserver.dts


Discuss Updating Entire table w/ DTS Job? in the microsoft.public.sqlserver.dts forum.



Reply
 
Thread Tools Display Modes
  #1  
Old   
ChristinaO
 
Posts: n/a

Default Updating Entire table w/ DTS Job? - 07-05-2006 , 01:54 PM






Hi all,

I have a table w/ 50 mill. rows. I need to update 2 columns. The table
looks like:


patientrcd# patient# facility subtitle datetime page
-------------------------------------------------------------------
0202013 23432 B 05/17/0402 NULL 1
0202013 23432 B 05/17/0402 NULL 2

I need to :
1. 'NULL' subtitle column (varchar)
2. Populate datetime colum with a date from another database

note: there are no identity columns

Is there any way to leverage DTS to do the job? OR do I have to find a
way to break the data down into chunks and write multiple 'UPDATE' stmts?

I'm new to DTS, so just wondering....

TIA

Reply With Quote
  #2  
Old   
Allan Mitchell
 
Posts: n/a

Default Re: Updating Entire table w/ DTS Job? - 07-05-2006 , 01:58 PM






Hello ChristinaO,

If the database is simply a database on the same server then the action i
think you will need to perform is as simple as an UPDATE statement with 3
part naming

<database name>.<owner name>.<object name>

Performance is based on indexing if this is a searched update.


Allan Mitchell
www.SQLDTS.com
www.SQLIS.com
www.Konesans.com

Quote:
Hi all,

I have a table w/ 50 mill. rows. I need to update 2 columns. The table
looks like:

patientrcd# patient# facility subtitle datetime page
-------------------------------------------------------------------
0202013 23432 B 05/17/0402 NULL 1
0202013 23432 B 05/17/0402 NULL 2
I need to :
1. 'NULL' subtitle column (varchar)
2. Populate datetime colum with a date from another database
note: there are no identity columns

Is there any way to leverage DTS to do the job? OR do I have to find a
way to break the data down into chunks and write multiple 'UPDATE'
stmts?

I'm new to DTS, so just wondering....

TIA




Reply With Quote
  #3  
Old   
ChristinaO
 
Posts: n/a

Default Re: Updating Entire table w/ DTS Job? - 07-05-2006 , 02:18 PM



Hi Allan,

Thank you. Yes, they live on the same server. When I've tried to dojust
that, I ran out of locks. I'm not sure how to get around it?


Allan Mitchell wrote:
Quote:
Hello ChristinaO,

If the database is simply a database on the same server then the action
i think you will need to perform is as simple as an UPDATE statement
with 3 part naming

database name>.<owner name>.<object name

Performance is based on indexing if this is a searched update.


Allan Mitchell
www.SQLDTS.com
www.SQLIS.com
www.Konesans.com

Hi all,

I have a table w/ 50 mill. rows. I need to update 2 columns. The table
looks like:

patientrcd# patient# facility subtitle datetime page
-------------------------------------------------------------------
0202013 23432 B 05/17/0402 NULL 1
0202013 23432 B 05/17/0402 NULL 2
I need to :
1. 'NULL' subtitle column (varchar)
2. Populate datetime colum with a date from another database
note: there are no identity columns

Is there any way to leverage DTS to do the job? OR do I have to find a
way to break the data down into chunks and write multiple 'UPDATE'
stmts?

I'm new to DTS, so just wondering....

TIA




Reply With Quote
  #4  
Old   
Allan Mitchell
 
Posts: n/a

Default Re: Updating Entire table w/ DTS Job? - 07-05-2006 , 02:31 PM



Hello ChristinaO,

You ran out of locks?

How many was that?

Have a look here

http://www.sql-server-performance.co...n_settings.asp

Are statistics up to date?


Allan Mitchell
www.SQLDTS.com
www.SQLIS.com
www.Konesans.com

Quote:
Hi Allan,

Thank you. Yes, they live on the same server. When I've tried to
dojust that, I ran out of locks. I'm not sure how to get around it?

Allan Mitchell wrote:

Hello ChristinaO,

If the database is simply a database on the same server then the
action i think you will need to perform is as simple as an UPDATE
statement with 3 part naming

database name>.<owner name>.<object name

Performance is based on indexing if this is a searched update.

Allan Mitchell
www.SQLDTS.com
www.SQLIS.com
www.Konesans.com
Hi all,

I have a table w/ 50 mill. rows. I need to update 2 columns. The
table looks like:

patientrcd# patient# facility subtitle datetime page
-------------------------------------------------------------------
0202013 23432 B 05/17/0402 NULL 1
0202013 23432 B 05/17/0402 NULL 2
I need to :
1. 'NULL' subtitle column (varchar)
2. Populate datetime colum with a date from another database
note: there are no identity columns
Is there any way to leverage DTS to do the job? OR do I have to find
a way to break the data down into chunks and write multiple 'UPDATE'
stmts?

I'm new to DTS, so just wondering....

TIA




Reply With Quote
  #5  
Old   
ChristinaO
 
Posts: n/a

Default Re: Updating Entire table w/ DTS Job? - 07-05-2006 , 03:23 PM



Idakno. Mybe I'm crazy. heh

Stats are definitely up to date. I run full scans nightly.

Let me try to run the update again. So the information/problem is fresh.

Thanks again Allan!
Chris

Allan Mitchell wrote:
Quote:
Hello ChristinaO,

You ran out of locks?

How many was that?

Have a look here

http://www.sql-server-performance.co...n_settings.asp

Are statistics up to date?


Allan Mitchell
www.SQLDTS.com
www.SQLIS.com
www.Konesans.com

Hi Allan,

Thank you. Yes, they live on the same server. When I've tried to
dojust that, I ran out of locks. I'm not sure how to get around it?

Allan Mitchell wrote:

Hello ChristinaO,

If the database is simply a database on the same server then the
action i think you will need to perform is as simple as an UPDATE
statement with 3 part naming

database name>.<owner name>.<object name

Performance is based on indexing if this is a searched update.

Allan Mitchell
www.SQLDTS.com
www.SQLIS.com
www.Konesans.com

Hi all,

I have a table w/ 50 mill. rows. I need to update 2 columns. The
table looks like:

patientrcd# patient# facility subtitle datetime page
-------------------------------------------------------------------
0202013 23432 B 05/17/0402 NULL 1
0202013 23432 B 05/17/0402 NULL 2
I need to :
1. 'NULL' subtitle column (varchar)
2. Populate datetime colum with a date from another database
note: there are no identity columns
Is there any way to leverage DTS to do the job? OR do I have to find
a way to break the data down into chunks and write multiple 'UPDATE'
stmts?

I'm new to DTS, so just wondering....

TIA




Reply With Quote
Reply




Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Powered by vBulletin Version 3.5.3
Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.