Viewing 15 posts - 47,671 through 47,685 (of 59,099 total)
tjm (10/20/2008)
Yes. I can see the max_length, but not data_types? Any suggestions?
SELECT * FROM Information_Schema.Columns
--Jeff Moden
Change is inevitable... Change for the better is not.
October 20, 2008 at 8:07 pm
Nikhil Shikarkhane (10/20/2008)
and have it comma separated cause using...
--Jeff Moden
Change is inevitable... Change for the better is not.
October 20, 2008 at 7:26 pm
Nicely done, Greg. And, if you want the date/time to change no matter which column is updated, just remove the IF...
CREATE TRIGGER tr_your_trigger_name
ON [YourTable]
FOR INSERT,UPDATE
AS
IF @@ROWCOUNT = 0 RETURN
...
--Jeff Moden
Change is inevitable... Change for the better is not.
October 20, 2008 at 7:11 pm
FreeHansje (10/20/2008)
--Jeff Moden
Change is inevitable... Change for the better is not.
October 20, 2008 at 7:04 pm
Heh... I'm not a religious man, but what ever happened to following the original 10 laws? They're well written and cover, quite literally, a wealth of sins. 😉
--Jeff Moden
Change is inevitable... Change for the better is not.
October 20, 2008 at 7:01 pm
I'd seriously consider doing some DB and disk maintenance... I don't let the Scan Density get below 90% before I do a rebuild, especially if the clustered index isn't chronological...
--Jeff Moden
Change is inevitable... Change for the better is not.
October 20, 2008 at 6:55 pm
If you have the file open with something when you try to do the run, you will get an error like you did.
--Jeff Moden
Change is inevitable... Change for the better is not.
October 20, 2008 at 6:45 pm
Steve Jones - Editor (10/20/2008)
Interesting comments, and no complaints, Jeff. Just wondering. Usually I get a good diatribe if I've stoked your interest.
Heh... which definition of "diatribe" do you mean...
--Jeff Moden
Change is inevitable... Change for the better is not.
October 20, 2008 at 6:44 pm
I agree with the problems that the folks in the posts above have cited. Further, there is an absolutely glaring problem with this method (no fault of the author)...
"refactor...
--Jeff Moden
Change is inevitable... Change for the better is not.
October 20, 2008 at 5:46 am
Steve Jones - Editor (10/19/2008)
That's it? I wear you two out on the Financial Crisis poll 🙂
Heh... the one time I agree with anybody 100% and you ask if "That's...
--Jeff Moden
Change is inevitable... Change for the better is not.
October 20, 2008 at 5:13 am
Prakash.Padmanabha (10/19/2008)
I am recently into SQL Server programming and assuming we need a single row for each line, I have written this query which is giving the results as...
--Jeff Moden
Change is inevitable... Change for the better is not.
October 19, 2008 at 10:23 am
Exactly... 😉
--Jeff Moden
Change is inevitable... Change for the better is not.
October 18, 2008 at 6:49 pm
Heh... I pretty much agree with what Loner said. I'll go a step further... although I feel bad for some of the "Joe Bag-o-Donuts" guys that lost a good...
--Jeff Moden
Change is inevitable... Change for the better is not.
October 18, 2008 at 6:28 pm
You bet... thank you for the feedback. Let us know if you have any additional problems with this... 🙂
--Jeff Moden
Change is inevitable... Change for the better is not.
October 18, 2008 at 6:05 pm
senthil_gobi04,
Just to add to the concensus forming here, about the only thing you really need to know about cursors is how to stay away from them. Even a nice...
--Jeff Moden
Change is inevitable... Change for the better is not.
October 18, 2008 at 6:01 pm
Viewing 15 posts - 47,671 through 47,685 (of 59,099 total)