Viewing 9 posts - 1 through 9 (of 9 total)
I use wmic for mount point
declare @table table (id int identity(1,1), textdata varchar(4000))
insert @table
exec xp_cmdshell 'wmic volume get capacity, drivetype, freespace, caption /format:csv'
; with cte as (
select Data.value('(/root/r/text())[1]','varchar(1000)')...
August 30, 2013 at 12:18 pm
If it's a heap then add clustered index and then drop it to reclaim unused space.
January 10, 2013 at 6:39 am
HI,
It may be agent SQL Server Agent Job History Log limit is being breached (default is 1000 rows) you can look at msdb..sysjobservers for last run date and time.
HTH -...
January 10, 2013 at 6:31 am
ah well, I have seen that before where you think removing the extra select will improve performance but it doesn't. Anyway I am working on a look ma no...
January 4, 2013 at 8:43 pm
hi sorry i haven't tested for performance or sure if this has been done but removed the ctelen
IF OBJECT_ID('dbo.DelimitedSplit8K') IS NOT NULL
DROP FUNCTION [dbo].[DelimitedSplit8K]
go
CREATE FUNCTION [dbo].[DelimitedSplit8K]
...
January 4, 2013 at 7:12 am
what about xml?
declare @table table (id int identity(1,1), textdata varchar(4000))
insert @table
exec xp_cmdshell 'wmic volume get capacity, drivetype, freespace, caption /format:csv'
; with cte as (
select Data.value('(/root/r/text())[1]','varchar(1000)') Node
, convert(bigint,Data.value('(/root/r/text())[2]','varchar(1000)')) / (1024...
December 28, 2012 at 7:02 am
if table was truncated before restart then the first insert after will be 0 instead of 1. This may not be desired so could you sys.identity_columns instead to get...
September 19, 2012 at 7:26 am
round trip of scope_identity()???? it's a return value of your method call. Please don't feed the bears.
September 15, 2011 at 4:06 pm
Isa related ?. I want to only update a table's columns where the data has changed, but columns_updated is limited to tables with 32 columns or less.
June 1, 2009 at 6:55 pm
Viewing 9 posts - 1 through 9 (of 9 total)
This website stores cookies on your computer.
These cookies are used to improve your website experience and provide more personalized services to you, both on this website and through other media.
To find out more about the cookies we use, see our Privacy Policy