Viewing 15 posts - 58,351 through 58,365 (of 59,048 total)
You don't need to build a function for this... if you are always guaranteed to have 3 parts, then there's a function built into SQL Server... ya just gotta give...
March 5, 2006 at 8:01 pm
You can use the hack, or you can use the functionality built into SQL Sever...
SELECT DATENAME(dw,GETDATE())+' '+CONVERT(CHAR(11),GETDATE(),106)
March 5, 2006 at 7:47 pm
Ummmm... why not just setup a standard maintenance plan from Enterprise Manager whick, I believe, will do all of that for you.
March 2, 2006 at 10:40 pm
A better way to do this for the sake of performance is...
SELECT tab1.*
FROM tab1
LEFT OUTER JOIN tab2
ON tab1.Col1 = tab2.Col1
tab1.Col2 = tab2.Col2
...
March 2, 2006 at 10:35 pm
Ah yes, absolutely true... I sometimes just forget about things I'm not allowed to use and, unfortunately, I work in a shop where .Net is not allowed. Don't know why...
March 2, 2006 at 4:59 am
Thanks Ray... that's just what I was looking for.
Dunno if ANSI allows for derived tables but I guess I'm going to find...
February 28, 2006 at 8:49 am
The key is in the snippet Kenneth posted...
| e1 / e2 | p1 - s1 + s2 + max(6, s1 + p2 + 1) | max(6,... |
February 27, 2006 at 10:15 pm
Francis, I know exactly what you're going through... I just inherited yet another monster set of databases and I think among all the SQL procs, views, and udfs, there might...
February 27, 2006 at 10:02 pm
If you just want your script to give you info from yesterday no matter what today is, you don't need FLOAT and you don't need to pass a date. I...
February 27, 2006 at 9:22 pm
Not sure why you'd want to do that when a good maintenance plan will achieve the same result of having properly ordered and defragmented indexes. So, I have to ask,...
February 27, 2006 at 9:02 pm
Verrryyyy nice, David... One of the better articles I've seen on this type of stuff. And, if someone takes the time to read it, there are all sorts of goodies...
February 27, 2006 at 6:52 am
I agree but...
I've found that when the "boss", who doesn't really know how to use a spreadsheet, says he wants to open the result set using Excel from a CSV...
February 26, 2006 at 8:57 pm
...and, if you do write the TEXT out to a text file for execution, use OSQL instead of ISQL because ISQL is deprecated compared to OSQL.
Just an opinion but both...
February 26, 2006 at 8:48 pm
I had a feeling you were one of the smart ones.
Thanks for the feedback.
February 26, 2006 at 8:36 pm
Viewing 15 posts - 58,351 through 58,365 (of 59,048 total)