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 2005 Forums
 Transact-SQL (2005)
 Stretching the Limits of Triggers in SQL Server

Author  Topic 

LewMar010
Starting Member

1 Post

Posted - 2008-05-01 : 11:28:46
Hello all.

For my first foray into this forum I have a tricky one....

We have a table in our database called tblJob with two columns:
id IDENTITITY(1,1)
jobNbr VARCHAR (5) (This would be, for example '12323')


When a new job is created (i.e. job Number 12323), the client wants a trigger on this table that creates a new table called tblJobData12323.

Does anyone know how I can accomplish this?

Thank you in advance.
PJ

PJ

X002548
Not Just a Number

15586 Posts

Posted - 2008-05-01 : 11:52:07
That is a very bad idea

Brett

8-)

Hint: Want your questions answered fast? Follow the direction in this link
http://weblogs.sqlteam.com/brettk/archive/2005/05/25/5276.aspx

Add yourself!
http://www.frappr.com/sqlteam



Go to Top of Page

visakh16
Very Important crosS Applying yaK Herder

52326 Posts

Posted - 2008-05-01 : 13:07:38
Why do you want to do this? So you will keep on adding new tables for each new job record created in tblJob?
Go to Top of Page
   

- Advertisement -