Viewing 15 posts - 106 through 120 (of 429 total)
Has anyone suggested this as a method?
SELECT
A, B, C
FROM
(
SELECT
1, 2, 3
) AS X (A, B, C)
September 2, 2015 at 11:59 am
SqlMel (7/29/2015)
I ALWAYS use Top 1 when assigning values to variables even though in all cases I can think of I use...
July 29, 2015 at 6:57 am
This behavior is a lot easier to understand if you think about NOT IN as a series of 'not equal' statements logically ANDed together:
SELECT Value
FROM #tmpNewValue
WHERE Value != 3
AND...
July 28, 2015 at 6:43 am
Hugo Kornelis (6/24/2015)
It is very...
June 24, 2015 at 7:37 am
TomThomson (6/1/2015)
June 1, 2015 at 9:06 am
Hugo Kornelis (4/30/2015)
Stewart "Arturius" Campbell (4/30/2015)
Interesting question, thanks...Now i'm wondering why this might be required, given the temporary nature of objects in tempdb...:-P
I am convinced that it will never be...
April 30, 2015 at 11:57 am
Interesting question! I don't use filtered indexes very often, and didn't know filtered indexes had these limitations.
April 22, 2015 at 7:11 am
Ugh, had a hard time choosing between the two correct answers.
I went with the column name list, since the documentation seemed to favor that syntax. 🙁
April 9, 2015 at 7:20 am
Lon-860191 (4/8/2015)
April 8, 2015 at 2:50 pm
This is an interesting question. While I haven't run across this specific case before, I have had developers create tables with things like double-quotes or even square brackets in...
April 8, 2015 at 10:52 am
You want to select the deleted column values from the pseudo-table DELETED.
INSERT INTO DeleteTracker (EventID, EventDate)
SELECT deleted.EID, deleted.StartDate
FROM deleted
Here is a tutorial on creating an AFTER DELETE trigger that I...
April 1, 2015 at 2:29 pm
The database system view <database name>.Sys.Database_Role_Members is what you want.
The view contains two columns:
role_principal_id
member_principal_id
The role_principal_id is the principal_id of the role itself, and the member_principal_id is the principal_id of the...
April 1, 2015 at 2:17 pm
I think whether the file gets created depends on if the syntax error causes the package to fail validation or not. I think the second question also depends on...
March 26, 2015 at 6:53 am
I agree with Lowell.
I use T-SQL to shell out some Powershell scripting that checks our servers to make sure all the associated SQL Server services are running on each one....
March 23, 2015 at 2:43 pm
Viewing 15 posts - 106 through 120 (of 429 total)