Viewing 15 posts - 4,576 through 4,590 (of 13,459 total)
where's the query you are refering to? did you forget to paste it so we can help you?
Lowell
October 16, 2012 at 1:37 pm
here's a tested example;
I've created a spreadsheet that has the contents of sys.servers.
you can grab a copy of it here:
and the code, assuming 64 bit SSQL 2008 with the 64...
Lowell
October 16, 2012 at 10:20 am
sqlrd22 (10/16/2012)[hr
Use SQL Server Agent job to run the query every night.
And try BCP (xp_cmdshell BCP if using SSMS) to output to an Excel file.
BCP only does raw text files,...
Lowell
October 16, 2012 at 10:02 am
here's an xp_cmdshell example, like John mentioned above.
the list of files, isntead of being a single file, can be a space delimited set uf multiple files.
--http://www.7-zip.org/download.html
--http://downloads.sourceforge.net/sevenzip/7za920.zip
--xp_cmdshell is limited to ONE...
Lowell
October 16, 2012 at 9:05 am
Hybrid DBA
Accidental DBA
😀
Lowell
October 16, 2012 at 8:28 am
ok, adding WITH SCHEMABINDING to my scalar function cuts half a second off of my performance, so it goes to 7.5 seconds or so instead of over 8 seconds.
DelimitedSplit8K...
Lowell
October 16, 2012 at 8:10 am
ok Dwain, I love these performance tests.
here's a setup comparing my crappy scalar function to your solution.
the DelimitedSplit8K pivot was roughly 4x faster on a million rows: 8 seconds vs...
Lowell
October 16, 2012 at 7:30 am
patelmohamad (10/16/2012)
This is my predication, not the actual data
, actual data is differ from my Example
in my data it gives me lot of no's 1,2,3.......n or...
Lowell
October 16, 2012 at 6:26 am
the trigger is using the base table, isntead of just the new rows that exist in the special virtual tables INSERTED AND DELETED
this will insert just the new rows:
CREATE TRIGGER...
Lowell
October 16, 2012 at 6:20 am
patel i see what you are asking, but i don't see the data reflecting something that allows it to beswitched like that;
about all i can suggest is a UNION and...
Lowell
October 16, 2012 at 5:50 am
it's a little tough with denormalized data;
ideally you'll want to change the schema if you can to store dates in date columns, and notes in a seperate column; but we...
Lowell
October 15, 2012 at 3:25 pm
where ISDATE(A) = 1
AND CONVERT(datetime,A) > DATEADD(dd,-7,Getdate()) --7 days? 8 days? what's minus one week for you?
--AND CONVERT(datetime,A) > DATEADD(ww,-1,Getdate()) --1 week?
Lowell
October 15, 2012 at 2:51 pm
you might want to buy a copy of developer so you can restore and test teh client backup, even if they are using enterprise only stuff like compression;
Lowell
October 15, 2012 at 2:01 pm
well it's a table of data now, so you can do your normal queries with group by and stuff like that.
here's a crappy group by example i just tested: like...
Lowell
October 15, 2012 at 12:40 pm
it's fairly easy.
first, doa SELECT * FROM sys.traces; you'll probably see traceid = 1(the default trace) plus any other traces you have created (2,3,4 etc)
select the trace id of...
Lowell
October 15, 2012 at 12:11 pm
Viewing 15 posts - 4,576 through 4,590 (of 13,459 total)