Viewing 15 posts - 16 through 30 (of 48 total)
Thanks, I'm trying with WHERE but I'm just not getting the gist of it yet.
I want it to look at the Date to be unique and only to take through...
December 19, 2012 at 3:11 am
espanolanthony (10/16/2012)
Thanks you but Since I have no knowledge I need the exact statements with bcp if you can please..
If you're okay with it being a CSV file (which opens...
October 16, 2012 at 10:08 am
espanolanthony (10/16/2012)
I have this below script and need the output in excel in D:\Reports folder. Anyone can help me with this. I don't know much with queries and all...
October 16, 2012 at 9:55 am
Thanks, that worked.
We don't get three in a day, we only get two sent to us daily.
October 16, 2012 at 9:10 am
select distinct code from @T
October 16, 2012 at 8:59 am
Jeff Moden (10/15/2012)
So now if the job just stops running altogether, how will you know? 😉
I guess I won't! We do have a piece of software that also gives us...
October 16, 2012 at 2:05 am
I tested it with other data and it works great, thanks.
October 15, 2012 at 3:44 am
Abu Dina (10/15/2012)
IF (select count(*) from [e009]) > 0
begin
exec msdb.dbo.sp_send_dbmail
@profile_name = 'Default',
@recipients = 'me@example.com',
@subject = 'warning',
@query = 'select * from [e009]',
@attach_query_result_as_file...
October 15, 2012 at 3:27 am
Abu Dina (10/15/2012)
sqlrd22 (10/15/2012)
October 15, 2012 at 3:08 am
The code I'm running is
SELECT * FROM GATE.dbo.DATAFLOW WHERE RAW LIKE 'AAA|E0000000|_|'+CONVERT(VARCHAR(8),GETDATE(),112)+'%ECP%'
I'm currently trying to do this using BCP -
BCP
"SELECT * FROM GATE.dbo.DATAFLOW WHERE RAW LIKE 'AAA|E0000000|_|'+CONVERT(VARCHAR(8),GETDATE(),112)+'%ECP%'"
QUERYOUT "test.csv" -c...
October 12, 2012 at 5:10 am
durai nagarajan (10/11/2012)
are you getting the complete output in the email?can you mask the sensitive code and post a sample so that we can check.
Sorry I've only just managed to...
October 12, 2012 at 4:51 am
I don't really understand the question. Do I have to specify a limit? No. I did try the set textsize option but this did not change the output for me.
October 11, 2012 at 8:27 am
mahesh.dasoni (10/11/2012)
U can use SSIS PACKAGE for fetching data in csv format and save it to a location which u want
I don't have SSIS with my version of SQL, sadly.
October 11, 2012 at 8:10 am
Sorry, I didn't know what this stored proc was, I've looked more into it now and it's not what I want. I do not want the results emailed to me,...
October 11, 2012 at 7:33 am
Viewing 15 posts - 16 through 30 (of 48 total)