Viewing 15 posts - 3,436 through 3,450 (of 5,590 total)
ColdCoffee (8/31/2010)
WayneS (8/31/2010)
SELECT SYSDATETIME() AS SYSDATETIME
,SYSDATETIMEOFFSET() AS SYSDATETIMEOFFSET
,SYSUTCDATETIME() AS SYSUTCDATETIME
,CURRENT_TIMESTAMP...
September 1, 2010 at 9:32 am
Erik,
Thanks for the feedback.
IF (SELECT COUNT(*) FROM inserted WHERE my_column = 'XX') = 1
You could have > 1 row in the inserted table. It might be better to change this...
September 1, 2010 at 9:31 am
Does this get the information that you're looking for?
SELECT 'IF NOT EXISTS (SELECT 1 FROM sys.database_principals WHERE name = ' + QuoteName(dp.name, char(39)) +
...
September 1, 2010 at 9:13 am
This query should help you see the differences:
SELECT SYSDATETIME() AS SYSDATETIME
,SYSDATETIMEOFFSET() AS SYSDATETIMEOFFSET
,SYSUTCDATETIME() AS SYSUTCDATETIME
,CURRENT_TIMESTAMP AS [CURRENT_TIMESTAMP]
...
August 31, 2010 at 8:25 pm
Well, you might want to look at the GetUTCDate and SysDateTimeOffset functions.
August 31, 2010 at 8:22 pm
Alvin Ramard (8/31/2010)
CirquedeSQLeil (8/31/2010)
how about a countdown for 18000 now?24 more :hehe:
Ok, time to turn off the email notifications.
On this thread, isn't that a given?
Actually, I have email notification set...
August 31, 2010 at 8:18 pm
simon phoenix-479217 (8/31/2010)
Is it real this can't be done? If this is true what is the reason behind this?Thanks for the prompt response
It's pretty much impossible to have one field...
August 31, 2010 at 8:11 pm
Lynn Pettis (8/31/2010)
I have to agree. I have learned a lot here on SSC. Some of it from others, some of it from helping others.
I agree completely with...
August 31, 2010 at 8:09 pm
I've downloaded a free copy of Oracle before (kind of like SQL Express). This is the link to their downloads.
Edit: and this is the link to the 10g free version.
August 31, 2010 at 8:05 pm
If I understand this correctly, under one condition you want an integer, and under another condition you want a string? This can't be done. However, you can convert the integer...
August 31, 2010 at 7:15 pm
ANY article by Jeff will definitely provide INSIGHT into things that you have never considered.
If your "loop" is a cursor, you might want to also look at the "15 ways...
August 31, 2010 at 7:12 pm
Uncle Moki (8/31/2010)Maybe I should rephrase my question given the new info - Any idea why the type-conversion problem in the omitted CTE Section throws an error message when my...
August 31, 2010 at 7:09 pm
Lutz already showed you how to do this over here. Especially relevant is the ROLLUP clause of the SELECT statement.
August 31, 2010 at 7:06 pm
SQLWannabe (8/31/2010)
August 31, 2010 at 6:42 pm
1. Yes, group by does use indexes, if present.
2. It sounds to me more an aspect of having large tables without supporting indexes.
Can you post an execution plan? This...
August 31, 2010 at 6:40 pm
Viewing 15 posts - 3,436 through 3,450 (of 5,590 total)