Viewing 15 posts - 46 through 60 (of 139 total)
Thanks Marks,
1: Any other possibility without CTE?
2: What if maximum date GAP required in each year? so that year will be a sort of group key and within each group...
February 27, 2012 at 7:42 am
here i am talking about user sessions and more specially sessions from SSMS, which people forgot to close and those remains there until they either close their SSMS OR restart...
February 24, 2012 at 6:07 am
Simple and quick.
Thanks Paul.
January 27, 2012 at 3:23 am
SELECT TOP 1 WITH TIES
SBBACLOAN
,[SBNAME1]
,[SBBRSSN]
,[SBNAME2]
,[SBCOBRSSN]
,APPRVLDTE
FROM [WarehouseStaging].[dbo].[AS400_ALSSLBACOUTP0] (nolock)
WHERE APPRVLDTE is not null and APPRVLDTE <> '0001-01-01'
ORDER BY row_number() over(partition by
SBBACLOAN
,[SBNAME1]
,[SBBRSSN]
order by APPRVLDTE desc)
January 26, 2012 at 4:56 pm
I would say, simply add "USE master" on top of your code in the job and it must work, provided your db options are correct as mentioned above.
if this is...
January 26, 2012 at 4:50 pm
Thanks GSquared and drew,
By checking the #temp table using RIGHT(), i can see the actual prepared string is complete, however, SSMS is not showing that entirely.
One more thing to note,...
December 14, 2011 at 6:09 am
I am trying the following
select 'EXEC sp_executesql @p1='+cast(xml_col as varchar(max)) OR convert(nvarchar(max), xml_col)
from xml_table
varchar, nvarchar are giving the same effect. Also tried cast and convert and of no use.
Getting the...
December 13, 2011 at 8:34 am
Hi Jeff,
Yes 8192 is the limit.
I want to read very long xmls from a table and concatenate in with a string to make dynamic SQL and later execute that.
Now is...
December 13, 2011 at 2:27 am
NO. varchar(max) and Nvarchar(max) are giving the same results.
if XML allow 2GB data then why its stopping at some specific number of characters.
This must be some limitation in settings.
Does someone...
December 12, 2011 at 4:51 pm
Thanks Jeffrey,
So ISO standard is the strongest reason of choosing this format i.e. "YYYYMMDD HHMMSS" which is widely adopted by most DBAs/Developers and easily understandable in most of DBMS including...
December 7, 2011 at 6:44 am
OK will we get any advantage in query performance if we write condition in select like this 2011-09-23 11:12:13
OR
can be any dis-advantage if we write like 23/sep/2011 111213?
"YYYY-MM-DD HH:MM:SS "...
December 6, 2011 at 9:40 am
Sorry if my question was not clear, as it was not about datatype date, time, datetime etc. However, question was about storage and retrieval of datetime values and which format...
December 6, 2011 at 4:00 am
Thanks Revenant,
But i want SSRS feature comparison by Version, if someone has seen somewhere.
Thanks.
November 23, 2011 at 5:45 am
Viewing 15 posts - 46 through 60 (of 139 total)