Viewing 15 posts - 46 through 60 (of 427 total)
Why is my suggestion ignored? It may not be as fast, but it gives a more reliable result than Hugo's plus it is suitable also if the number of distinct...
April 20, 2016 at 10:21 am
Luis Cazares (4/14/2016)
SELECT YourDate,
CASE WHEN MONTH(YourDate) <> MONTH(DATEADD(day, 1, YourDate)) THEN 'True' ELSE 'False' END,
CASE WHEN YourDate = DATEADD( MM,...
April 20, 2016 at 9:00 am
jaincs (3/23/2016)
Cannot insert duplicate key row in...
April 8, 2016 at 8:49 am
Hugo Kornelis (4/5/2016)Yes, trying to work around all possible collations can be very intersting/challenging/annoying.
So true!
April 8, 2016 at 3:58 am
But if you want to do it exact, for example because the same element name exist in multiple schemas. Here's the query to get those values:
with xmlnamespaces (
...
April 8, 2016 at 3:09 am
J Livingston SQL (4/4/2016)
if this isnt a basic interpretation of your table, then please post a representative script that does explain...
April 6, 2016 at 5:43 am
Hugo Kornelis (4/2/2016)
Lowell (3/31/2016)
--RxClaims.prescriberId LIKE '[a-zA-Z][a-zA-Z]%' --case sensitive collation
I think that would be for a binary collation. For case-sensitive collations, it would be either LIKE '[a-Z][a-Z]%', or LIKE '[A-z][A-z]%' -...
April 5, 2016 at 2:35 am
C.K.Shaiju (4/4/2016)
Jeff Moden (3/17/2016)
PretendDBA (3/17/2016)
Wow, in a modern SAN that is a significant performance hit from 1 failed disk.
Worse than that, there was a bad disk that slowed the system...
April 5, 2016 at 2:06 am
sys.sql_modules should be helpful in getting the current definitions from the database. Using this system table you can extract the procedure's current definitions to compare them to wherever you keep...
March 15, 2016 at 2:59 am
As long as your application allows users to specify the primary key you'll get these primary key violation conflicts. In a non-replicated environment the users would not be allowed to...
March 10, 2016 at 2:35 am
Yes, in real life you do use separate accounts not having sysadmin privileges. If you don't, you're at risk when your security is breached in any way. It's not even...
March 3, 2016 at 7:43 am
I haven't tried it, so it's just an idea. Have you tried scheduling a SQL Server Agent job at 'SQL Server Agent Startup'?
March 3, 2016 at 7:35 am
I know the OP probably doesn't need an answer any more, but for anyone who has a similar issue and ends up finding this question:
The message text 'An insufficient number...
November 26, 2015 at 8:15 am
These are queues generated for Query Notifications. They are dynamically created for each query notification requested by a client. There is no need to transfer these into your new database.
More...
November 2, 2015 at 2:53 am
Use getutcdate() not getdate() or you'll run into problems due to daylight savings time. Like last weekend, when the clock was reset back from 03:00 to 02:00.
October 27, 2015 at 12:06 am
Viewing 15 posts - 46 through 60 (of 427 total)