Viewing 15 posts - 226 through 240 (of 898 total)
j.a.c (5/28/2013)
Ah well not quite. But it is still frustrating to have to point out shortcomings...
May 29, 2013 at 1:09 am
Your script is definitely valid. But how are you planning to use it?
Whether this is really useful depends on what you do next .
May 28, 2013 at 9:01 am
Lowell (5/28/2013)
The information_schema views don't have all the details needed to script out tables and columns completely.
I agree. But sometimes(when some specific information is not needed, like in this case)...
May 28, 2013 at 8:51 am
You can use CROSS TABS to achieve the results
SELECTRIGHT(CONVERT(VARCHAR, CCD.startDateTime , 106), 8) AS startmonth,
SUM( CASE WHEN CCD.contactDisposition = 1 THEN 1 ELSE 0 END ) AS 1
SUM( CASE...
May 28, 2013 at 8:42 am
You can use system tables like INFORMATION_SCHEMA.TABLES or sys.tables to create a DROP TABLE script.
May 28, 2013 at 8:35 am
Transaction log backups are scheduled based on how much data loss you can tolerate
If the transactions log backup is scheduled every night, it implies that they can tolerate data loss...
May 28, 2013 at 8:23 am
Good try creating the DDL and sample data, but there were a few mistakes when I tried to execute it in my SSMS.
I have rectified those and have copied it...
May 28, 2013 at 4:04 am
Please don't create more than one thread for the same topic. It just fragments replies and will delay resolution of your issue.
Direct all your future posts to the original thread
http://www.sqlservercentral.com/Forums/Topic1456981-392-1.aspx
May 28, 2013 at 3:56 am
Duplicate post. Please post your replies here.
http://www.sqlservercentral.com/Forums/Topic1457156-2799-1.aspx
May 28, 2013 at 12:27 am
Duplicate post. Please post your replies here which has more information about the problem.
http://www.sqlservercentral.com/Forums/Topic1457192-391-1.aspx
May 28, 2013 at 12:24 am
What is the expected result based on your sample data?
Also it would be easier for people to help you if you put all this in a ready to use format...
May 28, 2013 at 12:15 am
ravi01031986 (5/27/2013)
No..thats the only one I have....Thanks
You can try this, but I am not sure if this will give the same result all the time
You will need some column which...
May 27, 2013 at 6:52 am
Something like this..
SELECTt.ApplicationName AS ActivityName, t.ActivityDate AS LoginTime, L.ActivityDate AS LogOutTime
FROM#temp AS t
CROSS APPLY(
SELECTTOP 1 *
FROM#temp AS t1
WHEREt1.ID > t.ID
ANDt1.ApplicationName = 'Logout'
ORDER BY t1.ID
) AS L
WHEREt.ApplicationName NOT IN ( 'Login',...
May 27, 2013 at 6:35 am
Viewing 15 posts - 226 through 240 (of 898 total)