Please start any new threads on our new site at https://forums.sqlteam.com. We've got lots of great SQL Server experts to answer whatever question you can come up with.

 All Forums
 SQL Server 2000 Forums
 SQL Server Development (2000)
 bulk upload using a view

Author  Topic 

pelegk2
Aged Yak Warrior

723 Posts

Posted - 2009-10-21 : 04:26:05
i know that it's possible to bulk upload using a view to a tables.
the things is that i have a solumn with a date in this structure :
20091021125619 which is : 2009/10/21 12:56:19
and i want to inset to diffrent tables based on the DAY value,in this example 21. how can i do it?
Thanks
Peleg

madhivanan
Premature Yak Congratulator

22864 Posts

Posted - 2009-10-21 : 05:14:59
Do you have multiple tables with the convention of table1,tabl2,etc?

Madhivanan

Failing to plan is Planning to fail
Go to Top of Page

pelegk2
Aged Yak Warrior

723 Posts

Posted - 2009-10-22 : 18:25:08
the tables structure all of them is the same
the only diffrence is that i want to insert to each table is by its day of month
peleg
Go to Top of Page

madhivanan
Premature Yak Congratulator

22864 Posts

Posted - 2009-10-23 : 02:03:18
isert into table_21(columns)
select columns from your_view where substring(date_col,7,2)=21

Madhivanan

Failing to plan is Planning to fail
Go to Top of Page
   

- Advertisement -