Viewing 15 posts - 1 through 15 (of 123 total)
The AI suggests that the lower cost of flights in November might deter discretionary travel. I'd have thought that lowering costs would encourage it.
--
Scott
March 11, 2024 at 9:40 am
You can use IDENTITY_INSERT to allow inserts into identity columns
SET IDENTITY_INSERT [ [ database_name . ] schema_name . ] table { ON | OFF }
See --
Scott
June 29, 2018 at 5:23 am
It might not be a good idea to ask computer-minded people to rate presentations as above or below average. If I've been to four talks in a day, it's likely...
--
Scott
June 19, 2018 at 10:26 am
The "redacted" zip file requires further work. For example, words beginning with "fellat" or "whor", not to mention the N-bomb.
--
Scott
May 1, 2018 at 9:22 am
--
Scott
April 12, 2017 at 4:42 am
You can also highlight all or some of the cells in an SSMS Results grid, right-click and choose "Save Results As..."
--
Scott
October 26, 2016 at 7:55 am
There's a cut scene which shows Jeff Goldblum working on the computer system of the crashed alien craft in Area 51 and presumably working out in advance how to hack...
--
Scott
July 7, 2016 at 8:09 am
Not that you'd necessarily want to, but you can't reference a synonym on a linked server by its four part name.
--
Scott
June 29, 2016 at 9:15 am
You could use a variant of this code which uses SELECT...FOR XML
http://sqlandme.com/2011/04/27/tsql-concatenate-rows-using-for-xml-path/
There are many other examples of this online
--
Scott
December 17, 2015 at 3:29 am
PHYData DBA (12/2/2015)
Carlo Romagnano (12/2/2015)
Here's a method to move resource database:http://www.sqlnotes.info/2012/01/06/new-way-to-relocate-resource-database/%5B/url%5D
I never tested it, but, it seems to work.
It works. So... Who moderates these answers anyway?
We do.
--
Scott
December 2, 2015 at 7:07 am
From Books Online (bold emphasis mine). Is this your problem?
ASCII (Transact-SQL)
Returns the ASCII code value of the leftmost character of a character expression.
--
Scott
November 24, 2015 at 8:19 am
Assuming that JMT_DATE is stored as a date rather than a string, this should do the trick
SELECT YEAR(MAS.JMT_DATE) AS "Judgment Year",
MAS.CRED_NAME AS "Creditor Name",
SUM(MAS.JMT_AMT) AS "Judgment Total"
FROM DBO_MASTER AS MAS
WHERE...
--
Scott
November 24, 2015 at 8:14 am
Or you might get
Msg 208, Level 16, State 0, Line 7
Invalid object name '#values'.
if you have the misfortune to be working on a case-sensitive database.
--
Scott
August 4, 2015 at 7:10 am
Viewing 15 posts - 1 through 15 (of 123 total)