Viewing 12 posts - 1 through 12 (of 12 total)
Sorry i am posting at wrong article.
zhtway
August 24, 2010 at 9:06 pm
Hi jvanderberg,
Thanks for your inputs and idea.
Actually table1 is like collecting daily transactions, so probably it is just only 300 records in a day and may be it will grow...
August 24, 2010 at 3:51 pm
Hi jvanderberg,
It seems like working. Well..I'll have to test with some data and have to make sure ev'thing is right.
thanks for your help.
zhtway
August 24, 2010 at 3:10 pm
Hi,
In 2005 Management Studio, the table1 was expended and right click on trigger and then New trigger was chosen.
When the windows was opened, I clear those codes and type your...
August 24, 2010 at 2:53 pm
Hi All,
for jvanderberg,
Yes, All three rows will be moved to table2.
for PaulB-TheOneAndOnly,
1) All rows (when condition meets) will be moved to table2. "Status" will be updated to...
August 24, 2010 at 2:37 pm
Hi jvanderberg,
Thanks for your reply and I am sorry for the confusion.
Here is an example..
In Table1
row ID Status
1 1 True
2 ...
August 24, 2010 at 2:19 pm
Hi,
Thanks for your info.
I am new to sql server and I want to know when the trigger kicks in.
You said " The whole operation will complete before the transaction ends."
OK....
August 24, 2010 at 1:34 pm
Hi All,
Thanks you guys..
Now I learn alot from all of you.
rgds,
zhtway
August 23, 2010 at 3:24 pm
Hi,
Finally I got it. I am little bit dump and confused to write a code as a beginner...:-D
Here is the code. and correct me if I am wrong.
DECLARE @Deli TABLE...
August 23, 2010 at 3:14 pm
Hi,
Here is the code I have done and tested and seems working.
Correct me if something is wrong. I'll have some more to do
use MobilePOD
Declare @chkHoliday int
Declare @chkTomorrow int
declare @DayName varchar(20)
Declare...
August 21, 2010 at 6:51 pm
Hi Nakul Vachhrajani,
Thanks for your replies.
Let me explain to you what I want to do.
Routes is the Master table for all routes.
Pickup is the table for a day where all...
August 21, 2010 at 12:19 pm
Hi,
I have just tested with SQL Agent.
I don't know how to retrieve date from Holiday table.
use testDB
Insert into Pickup (StaffID, RouteID, PickupDate)
select StaffID, RouteID, (getdate()) from Routes
August 21, 2010 at 4:16 am
Viewing 12 posts - 1 through 12 (of 12 total)