Viewing 15 posts - 9,976 through 9,990 (of 15,381 total)
Oh yeah...to check the retention period.
SELECT [retention]
FROM [msdb].[dbo].[cdc_jobs]
WHERE [database_id] = DB_ID()
AND [job_type] = 'cleanup'
November 26, 2012 at 1:45 pm
Mvs2k11 (11/26/2012)
Please let me know the calculation for the retention period for 365 days in...
November 26, 2012 at 1:43 pm
finnyol (11/26/2012)
November 26, 2012 at 1:25 pm
amar_kaur16 (11/26/2012)
So I have 2 rows, 1 for Math and 1 for Science if they...
November 26, 2012 at 1:18 pm
I am guessing this is a test or an interview based on the OP posting 3 very vague general questions all at roughly the same time.
November 26, 2012 at 12:16 pm
hydprasanna (11/26/2012)
What are the service packs is needed to install sql server 2005,2008
Not sure if you mean Windows service packs or sql server SP's. Either way there is checking within...
November 26, 2012 at 12:13 pm
You could also have a computed column that is similar to what G2 suggested.
As a side note, you should try to avoid goto's in your code like in that trigger....
November 26, 2012 at 12:09 pm
leesider (11/26/2012)
Sean Lange (11/26/2012)
For example, 2012-04-03 is in the fifteenth week of the year so if that date appears then the week number 15 should...
November 26, 2012 at 11:59 am
nfs_john (11/26/2012)
Sorry for the delay I was pulled off to another fire before coming back to this project. As for this question and answer I don't see where to...
November 26, 2012 at 11:55 am
I highly doubt you need a loop or cursor for this. This sounds like a simple insert from select type of scenario. If you want some help with coding you...
November 26, 2012 at 10:09 am
What you are trying to do here is called a cross tab query. You will likely need to use a dynamic version of this. There is a great article referenced...
November 26, 2012 at 10:07 am
You should look at datepart.
For example, 2012-04-03 is in the fifteenth week of the year so if that date appears then the week number 15 should appear along side...
November 26, 2012 at 10:05 am
Sony Francis @EY (11/26/2012)
November 26, 2012 at 9:17 am
This sounds like a poorly thought out requirement. How will you know if the column should be NULL because the value is unknown or if the actual value is 'unknown'....
November 26, 2012 at 9:11 am
You do NOT need a cursor for this. It is not totally clear what you want here but ROW_NUMBER should be able to provide you what you need. If you...
November 26, 2012 at 9:05 am
Viewing 15 posts - 9,976 through 9,990 (of 15,381 total)