Viewing 15 posts - 4,966 through 4,980 (of 13,460 total)
Aspet Golestanian Namagerdi (8/10/2012)
Lowell
August 10, 2012 at 9:13 am
Nice post, Mr. Celko!
Lowell
August 10, 2012 at 9:11 am
here's one way;
the nice thing about this technique, is it makes it very easy to change/adapt to include/exclude other special characters...at least for me it's obvious, that is.
additionally, depending on...
Lowell
August 10, 2012 at 8:53 am
ok how about this idea:
if you grab the free, add-on SSMS Tools
from here:
one of the options it provides is a "default" template every time you create a new query window...
Lowell
August 10, 2012 at 8:36 am
very true;
i've seem questiosn where the problem query was psoted, the issue is either a syntax issue or something like a case statement manipulation, but a knee-jerk reaction post asking...
Lowell
August 10, 2012 at 5:55 am
Could it be the SSMS version?
Maybe the SSMS for Express with advanced services was installed, instead of SSMS that comes with 2005 STD?
Lowell
August 10, 2012 at 5:53 am
the trick is to use a technique using FOR XML:
does your table have more columns than just the year? the solution's the same, but the detaisl are a little differnet.
here's...
Lowell
August 9, 2012 at 2:41 pm
halifaxdal (8/9/2012)
Lowell
August 9, 2012 at 2:32 pm
ok don't telnet by ip address, try to go to the mx record: mail.yoursever.com or whatever.
the DNS resolution seems to be the issue, i'm thinking...either DNS or name change?
Lowell
August 9, 2012 at 2:28 pm
wait, your adding a column, updaiting it to a string value, and then dropping the same column?
we can certainly help streamline THAT process.
you can probably use a CTE or something...
Lowell
August 9, 2012 at 2:25 pm
lol so true!
thanks for noticing Scott!
Lowell
August 9, 2012 at 2:22 pm
I wouldn't be surprised if some just didn't feel like enabling it for you, and used the "it's locked down for security" trump card just to cut off discussion.
I'm agreeing...
Lowell
August 9, 2012 at 2:21 pm
if there is no ORDER BY, SQL is free to return the data in any order it deems efficient.
only with an ORDER BY are you guaranteed consistent order by results.
in...
Lowell
August 9, 2012 at 2:15 pm
looks pretty good; if first and last name are required, i think they need to be NOT NULL, right?
Create Table Customers
(FirstName VarChar(20) NOT NULL ,
LastName VarChar(20)NOT NULL,
CustomerSSN SSN Primary...
Lowell
August 9, 2012 at 2:11 pm
you cannot ALTER a table and then also use the column in the same group of commands ; the column has to be added, and then a GO statmenet...
Lowell
August 9, 2012 at 2:02 pm
Viewing 15 posts - 4,966 through 4,980 (of 13,460 total)