Viewing 15 posts - 481 through 495 (of 598 total)
I didn't see that...thank you..
but when I remove the rem I get
I get zero byte files!!!
Can't understand why they are zero byte!
here's the output:
NULL
Starting copy...
NULL
0 rows copied.
Network packet size (bytes):...
October 20, 2009 at 6:34 am
here's the whole proc -
USE [MASTER]
GO
DECLARE@DBNVARCHAR(10)
DECLARE@SQLNVARCHAR(4000)
DECLARE@COMPNVARCHAR(75)
DECLARE@YRSMALLINT
DECLARE@MONTHTINYINT
SELECT@YR=2009
DECLARE DBS CURSOR FAST_FORWARD FOR
SELECT LTRIM(RTRIM([NAME]))
FROM SYS.[DATABASES]
WHERE NAME NOT IN ('MASTER','MODEL','MSDB','TEMPDB','DYNAMICS','DYNAMICSGP_UTILITIES','LPB_GREATPLAINSUTILS','SETUP')
ORDER BY NAME
OPEN DBS
FETCH NEXT FROM DBS INTO @DB
WHILE @@FETCH_STATUS = 0
BEGIN
SELECT@COMP=SUBSTRING(LTRIM([CMPNYNAM]),1,2) + '_'...
October 19, 2009 at 3:27 pm
You rock
Thank you sooo much
Good karma to you and have a nice weekend.
October 16, 2009 at 12:18 pm
Thanks Mark..
where do i put in the account numbers?
October 16, 2009 at 11:50 am
Very Interesting...and informative
Thanks guys....good karma to you all.
October 15, 2009 at 12:04 pm
Unless you are passing the decrypting key when selecting - it should be encrypted when viewed from Enterprise Manager / Management Studio.
So there is no other form of SQL...
October 15, 2009 at 10:58 am
This is customer sensitive data, SSN#, etc....
I was told my predecessor had configured encryption, but all the data I have seen in all the databases..none of that is encrypted..
Wouldn't I...
October 15, 2009 at 6:35 am
I love this method only because I can leave it in place and it will always get the previous month.
but
when I use
WHERE ld.delq_dt >= DATEADD(month, DATEDIFF(month, 0, CURRENT_TIMESTAMP) -...
October 14, 2009 at 7:26 am
I didn't mean to upset anyone.
I was just trying to understand why it didn't work, now I do understand.
I really appreciate you guys taking the time to help.
Good karma to...
October 14, 2009 at 7:23 am
is this wrong?
original way:
WHERE
isnull(datediff(dd,ld.delq_dt,getdate()),0) < 30
this:
WHERE
isnull(datediff(dd,ld.delq_dt,'2009-09-30'),0) < 30
October 13, 2009 at 2:02 pm
I'm not getting the same results
could it have something to do with not using the 'isnull' ?
October 13, 2009 at 1:21 pm
thanks so much for helping me out...
I need the month of september
October 13, 2009 at 12:31 pm
So...if I want to only see last months (september) then I would change it to
WHERE ld.delq_dt < dateadd(mm, datediff(mm, 0, '2009-09-30'), 0)
or
WHERE ld.delq_dt < dateadd(mm, datediff(mm, 0, '2009-30-09'), 0)
October 13, 2009 at 12:10 pm
Viewing 15 posts - 481 through 495 (of 598 total)