Viewing 15 posts - 16 through 30 (of 210 total)
Most SQL people I've come across are more than happy to share their knowledge and more often than not their code but be courteous and ask first and ALWAYS give...
December 5, 2013 at 1:49 pm
I might be missing something but it seems like you're over complicating things.
Your query with an OUTER JOIN and an EXISTS returns the same results set as an INNER JOIN...
October 10, 2013 at 8:10 am
If you're looking for "finished" scripts, I've found these to be useful.
Kimberly Tripp's sp_helpindex: http://www.sqlskills.com/blogs/kimberly/category/sp_helpindex-rewrites/
Michelle Ufford's Index Defrag script: http://sqlfool.com/2011/06/index-defrag-script-v4-1/
Hope this helps.
October 10, 2013 at 7:53 am
The only extra work I do before going on vacation is to review and possible update any documentation for routine tasks that may need to get done while I'm out....
April 26, 2013 at 6:55 am
It's been a while but I think we had a similar issue. Might look into this:
from dbforums.com: SQL Service starts before your SAN is available.
We had this problem, too....
March 26, 2013 at 10:08 am
Don't know that I completely understood the table/data setup but hopefully this at least points you in the right direction
DECLARE @TblA TABLE (
Col1 INT
, Col2 INT
);
DECLARE @TblB TABLE (
Col1 INT
,...
March 12, 2013 at 1:07 pm
Evil Kraig F (3/8/2013)
...the DBAs know their name and groan because of the lack of effort...
Funny, this is what prompted the discussion.
Sean Lange (3/8/2013)
March 8, 2013 at 2:21 pm
Jeff Moden (3/6/2013)
sunny.tjk (3/6/2013)
Please see my assistant DBA...His name is "GOOGLE"
I like that, think I'm going to start using it.
In addition to the recommendations above, I'd say documentation is pretty...
March 7, 2013 at 7:37 am
Think you have to convert it to a number first...
DECLARE @t_tbl TABLE (VisitId VARCHAR(50));
INSERT INTO @t_tbl (VisitId) VALUES ('1'), ('2'), ('5'), ('7'), ('11');
SELECT MAX(VisitId) FROM @t_tbl;
-- returns 7
SELECT MAX(CONVERT(INT,VisitId)) FROM...
March 7, 2013 at 7:00 am
beb9021 (3/1/2013)
I ran this query:Select Date, Analyst_EID, Journey_EID, Accountant_EID
From Table_2
join Table_1
on Table_2.Analyst_EID = Table_1.EID
and Table_2.Journey_EID = Table_1.EID
and Table_2.Accountant_EID = Table_1.EID
Order by Date ASC
What you are asking for here is any...
March 1, 2013 at 9:00 am
I've been tinkering with a reverse engineering script that might help.
SET NOCOUNT ON;
DECLARE @login NVARCHAR(128)
, @sql VARCHAR(MAX);
SET @login = 'applogin';
-- GRANT SERVER LEVEL PERMISSIONS...
February 28, 2013 at 2:52 pm
Doh! Brackets.
I've also added an orphaned users section at the end.
SET NOCOUNT ON;
DECLARE @login NVARCHAR(128)
, @ModDate DATETIME
, @Database NVARCHAR(128)
, @sql NVARCHAR(MAX);
--SET @login = 'applogin';
--SET...
February 28, 2013 at 11:51 am
A MERGE statement might get you where you need to be or at least closer to a solution.
http://technet.microsoft.com/en-us/library/bb510625(v=sql.105).aspx
MERGE #UpdatedData AS target_tbl
USING #OriginalData AS source_tbl
ON target_tbl.MemberID = source_tbl.MemberID
WHEN MATCHED...
February 26, 2013 at 11:27 am
I found the SQL Server Upgrade Advisor to be helpful in identifying potential issues.
http://msdn.microsoft.com/en-us/library/ms144256(v=sql.105).aspx
February 26, 2013 at 11:16 am
Viewing 15 posts - 16 through 30 (of 210 total)