Viewing 15 posts - 631 through 645 (of 1,193 total)
rbrescia 21348 (2/2/2016)
Casting the rowId to something larger than 4, fixed the problem. Thanks for the help.
I'm glad we could help!
Having said that, now that cause of the error has...
February 2, 2016 at 12:40 pm
I'm going to go out on a limb and guess this is the error you're getting?
Conversion failed when converting the varchar value '*' to data type int.
If so, then most...
February 2, 2016 at 12:07 pm
silverbullettruck (2/2/2016)
I would like to just apologize right now for describing this poorly. I do appreciate whatever assistance you can provide. 🙂
No worries, it's a fairly involved requirement, so...
February 2, 2016 at 11:27 am
Not all the other values were repeated. There were also two distinct values for XLO for that LOB
Jacob Wilkins (2/2/2016)
In the earlier posted results for LOB='MNS', for example, there were...
February 2, 2016 at 10:58 am
A little late to the party, but unless I'm missing something (always possible :-))the desired results you gave for J Livingston's sample data seem inconsistent with the desired results from...
February 2, 2016 at 10:06 am
DamianC (2/2/2016)
Won't resizing down to 1MB then growing back to 80GB every night slow the process down (especially with 100MB autogrow) and, from what I have read, cause serious fragmentation?
Is...
February 2, 2016 at 7:35 am
It's not actually executing the code in that block. The USE statement is checked at compile time (see https://msdn.microsoft.com/en-us/library/ms188366.aspx), so you can't get around this sort of thing with control-of-flow...
February 1, 2016 at 4:53 pm
I've been through a few considerings. Went to undergrad planning on law school. Then I changed my mind and went to grad school studying formal logic, hoping to be a...
January 29, 2016 at 2:41 pm
You can nest CASE statements. You only have an END for one of them, though.
Cheers!
EDIT: Heh, looks like this got pounced on before I posted. That's what I get...
January 29, 2016 at 12:50 pm
abendigeri (1/29/2016)
Thanks and appreciate your help.
I have tried with eliminating the REPLACE function, but not much helpful.
Reason behind using REPLACE is Some are capturing Test Date time in different format...
January 29, 2016 at 11:07 am
According to the table definition, TestDTTM is already a datetime value, so the lowest-hanging fruit is to change the WHERE clause use the datetime values directly instead of converting to...
January 29, 2016 at 10:49 am
sqlnewbie17 (1/27/2016)
USE [master]
GO
EXEC xp_instance_regwrite N'HKEY_LOCAL_MACHINE', N'Software\Microsoft\MSSQLServer\MSSQLServer', N'NumErrorLogs', REG_DWORD, 9
GO
But how do I read the number of error logs.
I am trying to read...
January 29, 2016 at 9:02 am
Iulian -207023 (1/29/2016)
OK , but why is the Id incremented and Id = 3 skipped ?Ta,
Iulian
From https://msdn.microsoft.com/en-us/library/ms186775.aspx, under "Remarks":
For a given identity property with specific seed/increment, the identity...
January 29, 2016 at 8:16 am
Hmm...the problem with those last two values is that they can successfully be cast as DATETIME, which is why ISDATE is returning 1 for them. I don't know of any...
January 28, 2016 at 8:50 am
If I'm understanding the requirements correctly, this should be a bit simpler than all that. Maybe something like this?
CREATE TABLE #test (UniqID int,
...
January 27, 2016 at 4:07 pm
Viewing 15 posts - 631 through 645 (of 1,193 total)