Viewing 15 posts - 46 through 60 (of 60 total)
IMHO Mr. Moden is absolutly correct.
Shortly after starting my new job, I was thrown some SQL that no-one had been able to tune. I discovered that they basically used...
March 31, 2008 at 7:41 am
Pet Peeve on...
Would it be difficult for MS to give the option whether or not to allow other windows to grab context from the current one?
Back in the day on...
March 27, 2008 at 8:20 am
ditto Gsquared.
If you must use a cursor, use the SQL Server one, do NOT write your own in TSQL. I've never see a "hand written" cursor come anywhere close...
February 5, 2008 at 4:52 pm
If you've proven yourself on just about any db architecure you should be fine. IMHO, this job is the ability to find answers (on the internet and in books),...
January 31, 2008 at 9:51 am
The reason I used reverse is if you have more subdomains...I believe PARSENAME is limited to 4 parts, because that is the maximum you ever need for object names.
select PARSENAME('abc.def.ghi.jkl.mno',...
November 21, 2007 at 3:46 pm
I believe this might work - not sure how effecient tho...I would recommend using the front end to do this rather than the database. But it was fun trying...
November 20, 2007 at 10:25 am
You can wrap the following around the SQL, and it will show you the parse & compile time for each execution. It will also show you the IO -...
November 14, 2007 at 3:00 pm
We had to add that type of column to all existing tables on an existing db, and similar to you, every query was modified to refer to that column. ...
July 24, 2007 at 11:37 am
A Checkpoint will only truncate the inactive part of the log when in Simple Recovery mode. In the other 2 modes you have to backup the transaction log in...
June 6, 2007 at 11:00 am
May 18, 2007 at 7:25 am
A simple, but I think "clear" way to look at it:
A unique index is the physical implementation that SQL Server uses to enforce a logical PK.
(SQL Server defaults to a...
May 3, 2007 at 8:17 am
I tried this and found the same behavior - searching for a string - where col5 like '[[]asdf%' . If I search on a indexed varchar column, it does...
March 29, 2007 at 1:23 pm
This might be helpful?:
SELECT o.name as table_name,coalesce(i.name,'HEAP')
,s.user_seeks, s.user_scans, s.user_lookups, s.user_updates
,s.user_seeks+s.user_scans+s.user_lookups+s.user_updates as user_tot
,s.last_user_seek, s.last_user_scan, s.last_user_lookup, s.last_user_update
from sys.indexes i
LEFT OUTER JOIN sys.dm_db_index_usage_stats s
ON i.object_id=s.object_id and s.database_id=db_id()
AND i.index_id=s.index_id
LEFT OUTER JOIN sys.objects...
February 6, 2007 at 9:59 am
Create a database role, set up the permissions at the role level, and assign the group to the database role. I believe that will accomplish what you are trying...
June 21, 2006 at 10:59 am
I notice that the INDI_ID and PROD_ID are NULL on the first table and NOT NULL on the second table. I have seen that be a problem for using...
June 19, 2006 at 10:03 am
Viewing 15 posts - 46 through 60 (of 60 total)