Viewing 15 posts - 11,341 through 11,355 (of 13,462 total)
yeah when your nose is lost in the details,things like that still ding me once in a while, even after I've worked around it a zillion times.
March 31, 2009 at 3:48 pm
if you use NOT IN, you must exclude the NULLs; anything IN = or LIKE NULL is undefined:
SELECT * FROM BIG_THINGS
WHERE THING_ID NOT IN
(SELECT THING_ID FROM THINGS WHERE THING_ID...
March 31, 2009 at 3:33 pm
aw comeon Mh;
with 170+posts, I KNOW you know better.
Always post a table structure and insert statements so people can help you.
here's a fake table and data for others to try...
March 30, 2009 at 4:32 pm
Casper (3/30/2009)
Just by the way - you said "if not too much time has passed" i can use the default...
March 30, 2009 at 8:22 am
if not too much time has passed, the default trace can help:
-- obtain file name for Default Trace
declare @TraceFileName nvarchar(256)
set @TraceFileName = (select path from sys.traces where is_default =...
March 30, 2009 at 8:07 am
Krishna was alluding to the "sa" username and password on the SQL server for sysadmin rights. since it looks like someone removed access for BUILTIN\Administrators, where all the local and...
March 29, 2009 at 11:11 am
yes...you can take a SQL 7 or 2000 backup and restore it on a SQL2005 server; the restore automatically upgrades it to the newer format; you just cannot do the...
March 27, 2009 at 10:37 pm
here's an article i saved on parameter sniffing; basically, the default for an execution plan is to look at the statistics to determine how unique the parameter is; but when...
March 27, 2009 at 8:20 am
that's the expected behavior:
if you compare anything to null, the results are undefined...
so you either want to add a where clause like ...AND A.DATE IS NOT NULL AND B.DATE IS...
March 26, 2009 at 8:23 pm
parameter sniffing maybe? have you isolated which proc slowing things down? does it have a default value for any of it's parameters? in my experience, it's the default values that...
March 26, 2009 at 4:48 pm
i tried running the command over a linked server; basically i tried changing the last command to a 4 part command:
EXEC linkedservername.master..xp_regread 'HKEY_LOCAL_MACHINE', @inst, @inst1
got this error:
SOFTWARE\Microsoft\Microsoft SQL Server\SQLEXPRESS\MSSQLServer\SuperSocketNetLib\Tcp\\\\////TcpPort
Msg 7411,...
March 26, 2009 at 12:08 pm
you said how to select max date's each home , location and status.
like lynn said, all the tools are there...run this, test it, and drop the columns you don't need.
March 26, 2009 at 11:41 am
indexes become fragmented due to inserts.
say you have an index on "LastName".
if i insert someone whose lastname starts with "S", it will probably fragment the index, as it forces anew...
March 26, 2009 at 11:11 am
a GO statement ends your procedure, and runs the next command; you've pasted commands INCLUDING the "GO" which is not what you want.
this is a better format:
SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER...
March 26, 2009 at 10:59 am
Viewing 15 posts - 11,341 through 11,355 (of 13,462 total)