Viewing 15 posts - 1,966 through 1,980 (of 2,356 total)
Welsh Corgi (10/2/2015)
I need a script to Backup & Shrink tempdb.namesize
tempdev1024
templog64
tempdev21024
tempdev31024
tempdev41024
tempdev51024
tempdev61024
tempdev71024
tempdev81024
I can't believe how many tempdb's there are?
Because at some point someone probably read an article recommending the creation of...
Michael L John
If you assassinate a DBA, would you pull a trigger?
To properly post on a forum:
http://www.sqlservercentral.com/articles/61537/
October 2, 2015 at 12:06 pm
SQLRNNR (10/1/2015)
Ed Wagner (10/1/2015)
If anyone lives in...
Michael L John
If you assassinate a DBA, would you pull a trigger?
To properly post on a forum:
http://www.sqlservercentral.com/articles/61537/
October 2, 2015 at 11:25 am
patilpallavi16 (9/30/2015)
This statement also works. THANKS!I also tried with the condition as : WHERE roofyearbuilt < year(getdate()) - 17. This works too.
Do you have any idea why these different statements...
Michael L John
If you assassinate a DBA, would you pull a trigger?
To properly post on a forum:
http://www.sqlservercentral.com/articles/61537/
September 30, 2015 at 2:58 pm
Luis Cazares (9/30/2015)
Kim Crosser (9/30/2015)
set <output_value> = Try_Convert(<type>, <source_value>);
Try_Convert returns the source_value converted...
Michael L John
If you assassinate a DBA, would you pull a trigger?
To properly post on a forum:
http://www.sqlservercentral.com/articles/61537/
September 30, 2015 at 10:44 am
What's the point? What problem are you trying to solve?
Michael L John
If you assassinate a DBA, would you pull a trigger?
To properly post on a forum:
http://www.sqlservercentral.com/articles/61537/
September 29, 2015 at 12:51 pm
INSERT INTO [Member_Info] ( [MemberID], [MemberNbr],[MM_MIN_EligibilityStartDate], [MM_MAX_EligibilityEndDate] )
select MemberID, MemberNbr,
MIN(M.MonthBeginDate) as [MM_MIN_EligibilityStartDate],
MAX(case when M.MonthEndDate = 0 then 99999999 else M.MonthEndDate end ) as [MM_MAX_EligibilityEndDate]
FROM MemberMonth M...
Michael L John
If you assassinate a DBA, would you pull a trigger?
To properly post on a forum:
http://www.sqlservercentral.com/articles/61537/
September 29, 2015 at 12:11 pm
ALTER TABLE TABLE_NAME NOCHECK CONSTRAINT ALL may work.
But, just out of curiosity, if it's ok to have data in the table that violates the primary key, what's the point...
Michael L John
If you assassinate a DBA, would you pull a trigger?
To properly post on a forum:
http://www.sqlservercentral.com/articles/61537/
September 29, 2015 at 12:00 pm
Is this homework?
What have you tried so far?
What would you use the mod function for?
Based upon the limited information you have provided, try this:
SELECT *
FROM YourTable
WHERE Orderdate...
Michael L John
If you assassinate a DBA, would you pull a trigger?
To properly post on a forum:
http://www.sqlservercentral.com/articles/61537/
September 29, 2015 at 10:10 am
Jacob Wilkins (9/28/2015)
To really minimize downtime, I like to set up mirrors from the old environment to the new. Then migration is just...
Michael L John
If you assassinate a DBA, would you pull a trigger?
To properly post on a forum:
http://www.sqlservercentral.com/articles/61537/
September 28, 2015 at 9:26 am
Will a logon trigger work?
Michael L John
If you assassinate a DBA, would you pull a trigger?
To properly post on a forum:
http://www.sqlservercentral.com/articles/61537/
September 28, 2015 at 8:39 am
paul.knibbs (9/28/2015)
Eric M Russell (9/28/2015)
For example, if you have a VarChar column that should only contain values that are covertable to a specific data type (ie: Int or Date), then...
Michael L John
If you assassinate a DBA, would you pull a trigger?
To properly post on a forum:
http://www.sqlservercentral.com/articles/61537/
September 28, 2015 at 7:57 am
Kristen-173977 (9/26/2015)
Michael L John (9/25/2015)
IsNumeric does not look for numbers, it returns 1 if a value can be successfully be CONVERTED or CAST to a numeric data type.
Not sure about...
Michael L John
If you assassinate a DBA, would you pull a trigger?
To properly post on a forum:
http://www.sqlservercentral.com/articles/61537/
September 26, 2015 at 10:44 am
Starting and ending dates seem to be an issue for many people. Are the database fields datetime data types? Then check if the code is considering the time...
Michael L John
If you assassinate a DBA, would you pull a trigger?
To properly post on a forum:
http://www.sqlservercentral.com/articles/61537/
September 25, 2015 at 2:45 pm
Remove the with and option recompile.
Start with DBCC FREEPROCCACHE and DBCC DROPCLEANBUFFERS.
Then, do your 5 iterations of each. See what happens with the execution times.
By doing with recompile,...
Michael L John
If you assassinate a DBA, would you pull a trigger?
To properly post on a forum:
http://www.sqlservercentral.com/articles/61537/
September 25, 2015 at 2:37 pm
Vic Rauch-303403 (9/25/2015)
Michael L John
If you assassinate a DBA, would you pull a trigger?
To properly post on a forum:
http://www.sqlservercentral.com/articles/61537/
September 25, 2015 at 2:08 pm
Viewing 15 posts - 1,966 through 1,980 (of 2,356 total)