Viewing 15 posts - 1 through 15 (of 18 total)
I solved it. I used your code with a cursor. That way I was able to loop through the column names.
Thanks
August 21, 2008 at 7:09 am
ok. That works, but I want to get a specific column name, not all the columns....
August 21, 2008 at 6:51 am
Well, one of table has around that many columns. I have not designed the database.
I will give it a try when I get back to work tomorrow.
Thanks.
August 20, 2008 at 5:08 pm
I used "1/1/1900", maybe it only accepts single quotes then. I'll give it a try. Thanks.
August 20, 2008 at 1:51 pm
Yes, you are correct.
This is what I have and it seems to work like I want it too.
Thanks.
DECLARE c_keys CURSOR FOR
SELECT DISTINCT
...
July 28, 2008 at 1:22 pm
Ignore my question. It's Monday and I apparently did not get enough sleep.....
Turns out that the table where I am logging to don't accept nulls 🙂
July 28, 2008 at 12:50 pm
The problem I have with some of these solutions is that they save it as xml. We need to be able to create reports later on in Crystal or SSRS...
July 25, 2008 at 12:24 pm
Yes, that's what I thought. I now have a table with the next batch id. This seems to work.
Thanks guys.
July 23, 2008 at 10:30 am
Thanks.
So if I have a seperate table which contains one thing, batch id.
I then write a function to retreive this batch id, but how do I update the batch id...
July 23, 2008 at 10:14 am
I am not sure I understand this code at all. Is this just a template of some kind? Don't you need the IF UPDATE(column_name) ??
create table #Inserted (
ID int...
July 21, 2008 at 1:12 pm
That is why I turned to this forum for answers.
My experience with this is very limited. I mainly only do Java code 😛 You can probably pick that up...
July 21, 2008 at 12:55 pm
Thanks. Just what I thought.
July 21, 2008 at 11:54 am
Is there a way to format this better? The generated trigger looks ugly to say the least.
Here is a generated trigger:
set ANSI_NULLS ON
set QUOTED_IDENTIFIER ON
go
ALTER TRIGGER [TRG_author] ON [dbo].[author] AFTER...
July 21, 2008 at 11:03 am
I have to create a trigger for 9 tables. So, depending on how many columns each table has, it would be a nightmare to write.
July 21, 2008 at 11:00 am
Thank you for your answer.
This is what I came up with (Keep in mind that this is the first time I write T-SQL)
All I am missing now is how to...
July 21, 2008 at 10:18 am
Viewing 15 posts - 1 through 15 (of 18 total)