Viewing 15 posts - 17,086 through 17,100 (of 59,101 total)
mwinn (8/11/2016)
Thanks, I will try that, not sure why it worked for all these years prior to yesterday though.
To be honest, it couldn't have UNLESS you changed the file name...
--Jeff Moden
Change is inevitable... Change for the better is not.
August 11, 2016 at 11:05 pm
p.s. NEVER use that type of Dynamic SQL in anything that's public facing, especially where modeltrim_name (in this case) could be entered by users, because it IS susceptible to...
--Jeff Moden
Change is inevitable... Change for the better is not.
August 11, 2016 at 10:49 pm
Here's the Dynamic CROSSTAB version. I believe you might find it a little easier to read, modify, and troubleshoot.
--===== Local Variables
DECLARE @sql ...
--Jeff Moden
Change is inevitable... Change for the better is not.
August 11, 2016 at 10:40 pm
faulknerwilliam2 (8/11/2016)
SELECT
a.name,
DATENAME(M, a.Date) as Month,
DATENAME(YEAR,a.Date) as Year,
DATEPART(YYYY, a.Date) as...
--Jeff Moden
Change is inevitable... Change for the better is not.
August 11, 2016 at 9:03 pm
jssashank (8/11/2016)
--Jeff Moden
Change is inevitable... Change for the better is not.
August 11, 2016 at 8:50 pm
Steven.Grzybowski (8/11/2016)
--Jeff Moden
Change is inevitable... Change for the better is not.
August 11, 2016 at 8:40 pm
Snargables (8/11/2016)
What would be the best way to do this? The db is in simple mode. i need a copy format that doesnt write to trans log.Ideas?
Where do you want...
--Jeff Moden
Change is inevitable... Change for the better is not.
August 11, 2016 at 8:36 pm
Luis Cazares (8/11/2016)
You might have some options to copy the table, but answer Eirikur's questions so we can have more...
--Jeff Moden
Change is inevitable... Change for the better is not.
August 11, 2016 at 8:29 pm
TomThomson (8/11/2016)
crookj (8/11/2016)
Manic Star (8/11/2016)
djj (8/11/2016)
Ed Wagner (8/11/2016)
Revenant (8/11/2016)
whereisSQL? (8/11/2016)
djj (8/11/2016)
Ed Wagner (8/11/2016)
Grumpy DBA (8/11/2016)
Ed Wagner (8/11/2016)
Ray K (8/10/2016)
Ed Wagner (8/10/2016)
Ray K (8/10/2016)
Luis Cazares (8/10/2016)
Emmet BrownBiff Tannen
Butthead
Beavis
Mr. Anderson
Agent Smith
Neo
Nemo
Dory
Fishy
Fried
Chicken
Wings
Paul
Damascus
Road
--Jeff Moden
Change is inevitable... Change for the better is not.
August 11, 2016 at 8:24 pm
You don't need Powershell for this. Google for Brent Ozar's "sp_Blitz" and Adam Machanic's "sp_WhoIsActive".
Just remember... if you can't write it, you might not be able to maintain it.
--Jeff Moden
Change is inevitable... Change for the better is not.
August 11, 2016 at 5:55 pm
Clint-525719 (8/11/2016)
--Jeff Moden
Change is inevitable... Change for the better is not.
August 11, 2016 at 5:52 pm
ben.brugman (8/11/2016)
Eric M Russell (8/11/2016)
"If you break a few eggs, then make an omelet."
Christopher Columbus,... challenges his critics to make an egg stand on its tip. After his challengers...
--Jeff Moden
Change is inevitable... Change for the better is not.
August 11, 2016 at 8:11 am
sjimmo (8/11/2016)
Thanks Jeff. I was simply offering an alternative. Should have looked more closely at the dates. :hehe:
Absolutely understood and alternatives are great. I appreciate your post even if...
--Jeff Moden
Change is inevitable... Change for the better is not.
August 11, 2016 at 8:05 am
sjimmo (8/10/2016)
DECLARE @valVARCHAR(30)SELECT @val = '9.0.0832.1032'
SELECT @val
SELECT SUBSTRING(@val, LEN(@val) - 6, 2)
That will work but only if you only ever need the right 2 of the 3rd element and...
--Jeff Moden
Change is inevitable... Change for the better is not.
August 10, 2016 at 6:52 pm
You'd have none of these problems if you stored the data as normalized data instead of XML. 😉
--Jeff Moden
Change is inevitable... Change for the better is not.
August 10, 2016 at 6:14 pm
Viewing 15 posts - 17,086 through 17,100 (of 59,101 total)