Viewing 15 posts - 47,896 through 47,910 (of 59,099 total)
This type of concatenation is usually a bad idea especially if your intent is to store the result somewhere in the database as permanent data (not that you are, but...
--Jeff Moden
Change is inevitable... Change for the better is not.
October 7, 2008 at 7:29 am
tendayit (10/7/2008)
I tested the modified procedure and it is better than the one i posted on the site. Thank you very much. I came across something this morning that i...
--Jeff Moden
Change is inevitable... Change for the better is not.
October 7, 2008 at 7:24 am
What Gail means is that there is no reason to use a cursor to do a "Cross Tab" report. Now, I'm not going to troubleshoot the size stored procedure...
--Jeff Moden
Change is inevitable... Change for the better is not.
October 7, 2008 at 7:07 am
You can always use SET ROWCOUNT 1 and then do the delete. Don't forget to set the rowcount back to 0.
It does, however, show the fundamental flaw that others...
--Jeff Moden
Change is inevitable... Change for the better is not.
October 7, 2008 at 7:01 am
I've used it for "cleaning" data... you know... remove all numbers, remove everything but the numbers, remove special characters, remove adjacent multiple spaces (although there are better ways to do...
--Jeff Moden
Change is inevitable... Change for the better is not.
October 7, 2008 at 6:56 am
Jeff Moden (10/7/2008)
karthikeyan (10/6/2008)
if you have datetime column in your table, then select max(datetime column) from will give you the expected result.
No... if someone happens to do an...
--Jeff Moden
Change is inevitable... Change for the better is not.
October 7, 2008 at 6:41 am
I'll use a quote that I heard a long time ago... "The internet is a well paved on-ramp to a dirt road." If you put personal information out there,...
--Jeff Moden
Change is inevitable... Change for the better is not.
October 7, 2008 at 6:40 am
Ahmad Osama (10/7/2008)
Hi All,Here are few interview questions..
1) Is it possible to have a NULL value in a foreign key field?
Already been answered several times...
2) If I have 350 columns...
--Jeff Moden
Change is inevitable... Change for the better is not.
October 7, 2008 at 6:20 am
My preference is to store the JPG.s in a directory and store the file name in the server for such a requirement. The reason for this is that it...
1....
--Jeff Moden
Change is inevitable... Change for the better is not.
October 7, 2008 at 6:04 am
dr_csharp (10/6/2008)
GilaMonster (10/6/2008)
DECLARE @MaxID INTSELECT @MaxID = Max(ID) FROM Customer
which one is better :
i save @@Identity in a field when record insert in Table and i read saved id...
--Jeff Moden
Change is inevitable... Change for the better is not.
October 7, 2008 at 5:48 am
vidhyasudha (10/5/2008)
Hello,Can we pass array to t-sql procedure? If so how.
Cheers
As well as the link Vijaya posted, please check out the following, as well...
http://www.sqlservercentral.com/articles/T-SQL/63003/
--Jeff Moden
Change is inevitable... Change for the better is not.
October 7, 2008 at 5:42 am
proudfoot.richard (10/7/2008)
I got round it...
--Jeff Moden
Change is inevitable... Change for the better is not.
October 7, 2008 at 5:40 am
Clint,
This is a "running balance" or "running total" problem and there are lots of methods to pull it off including some really slow triangular joins, cursors, and While loops. ...
--Jeff Moden
Change is inevitable... Change for the better is not.
October 7, 2008 at 5:30 am
Sure... the criteria to add to your query would be ...
WHERE yada-yada
AND Location NOT LIKE (SELECT '%'+Word+'%' dbo.FROM ExcludeTable)
--Jeff Moden
Change is inevitable... Change for the better is not.
October 7, 2008 at 5:23 am
zypsy (10/6/2008)
SELECT billdate,custcode,custname,
MAX(CASE WHEN Seq=1 THEN brand ELSE NULL END) AS brand,
MAX(CASE WHEN Seq=1 THEN item ELSE NULL...
--Jeff Moden
Change is inevitable... Change for the better is not.
October 7, 2008 at 5:16 am
Viewing 15 posts - 47,896 through 47,910 (of 59,099 total)