Viewing 15 posts - 4,396 through 4,410 (of 10,144 total)
asifejaz (7/12/2013)
8 months.:angry:
Don't worry, you'll get the hang of it - quicker, if you can attract the attention of someone here on ssc who's in your time zone 😀
Any questions...
July 12, 2013 at 1:01 am
asifejaz (7/10/2013)
thanks. Sorry i didnt understand what you mean by thisWITH Updater AS (
pls let me know.
That's a Common Table Expression, a CTE[/url]. How long have you been...
July 11, 2013 at 7:48 am
puja63 (7/10/2013)
Thanks, but it's not just distinct customer, I need to count based on whether his response to survey was in the last 30 days. If he responded to...
July 11, 2013 at 2:46 am
hidayah (7/10/2013)
Attached is the result that I required (the line I highlighted in blue that contains the correct info that I need).
As you can see, I have tons of...
July 11, 2013 at 1:06 am
amit_pjoshi (7/10/2013)
amit_pjoshi (7/10/2013)
ChrisM@Work (7/10/2013)
Amit, do you have a BEGIN TRANSACTION / COMMIT TRANSACTION in your code?
Hi Gail,
No we are not using BEGIN TRANSACTION / COMMIT TRANSACTION.
we are executing the same...
July 10, 2013 at 7:08 am
Amit, do you have a BEGIN TRANSACTION / COMMIT TRANSACTION in your code?
July 10, 2013 at 6:55 am
hidayah (7/10/2013)
Hi,Yes, I do get that much of rows. So how do I permanently deleted those files that I do not want?
Confused...where exactly are you deleting files from? A windows...
July 10, 2013 at 5:03 am
amit_pjoshi (7/10/2013)
Lowell (7/10/2013)
EXEC sp_executesql @sql
use
EXEC(@sql)
which has no limits on the query size, since it's not parameterized. ou are not passing parameters via sp+executesql, so you'd be...
July 10, 2013 at 3:15 am
Lowell (7/10/2013)
EXEC sp_executesql @sql
use
EXEC(@sql)
which has no limits on the query size, since it's not parameterized. ou are not passing parameters via sp+executesql, so you'd be good...
July 10, 2013 at 2:59 am
nvarchar(max) holds one or two gb. It's not the problem. There are a number of possible issues here, the most likely is that you are using other variables in the...
July 9, 2013 at 7:24 am
asifejaz (7/8/2013)
I ran the script and the out put that appears...
July 9, 2013 at 6:57 am
Beautifully illustrated, well written and easy to follow. Even though the rCTE method has been shown more than once to be somewhat slower than FOR XML PATH, there are some...
July 9, 2013 at 5:06 am
July 8, 2013 at 9:15 am
DECLARE
@SQLsource VARCHAR(1000),
@ArchiveBatchID INT,
@ArchiveControlField VARCHAR(20),
@TableName VARCHAR(20),
@ArchiveSourceDateField VARCHAR(20),
@ArchiveCutOffDate DATETIME
SELECT
@ArchiveBatchID = 97,
@ArchiveControlField = 'ControlColumn',
@TableName = 'MyTable',
@ArchiveSourceDateField = 'SourceDate',
@ArchiveCutOffDate = GETDATE()
SET @SQLsource = 'SELECT '
+ CAST(@ArchiveBatchID AS varchar) + ',...
July 8, 2013 at 8:29 am
-- Extend the sample data set:
DROP table #tbl1
Create table #tbl1
(
ID INT identity primary key,
voucherno varchar(10),
modifieddate datetime
)
insert into #tbl1
values
('V00001','2013-07-07 11:32:44.810'),
('V00002','2013-07-07 11:32:44.810'),
('V00003','2013-07-08 12:32:44.810'),
('V00004','2013-07-08 12:32:44.810'),
('V00005','2013-07-07 11:32:44.810'),
('V00006','2013-07-07 11:32:44.810'),
('V00007','2013-07-09 11:32:44.810'),
('V00008','2013-07-09 11:32:44.810'),
('V00009','2013-07-08 11:32:44.810')
-- examine the result...
July 8, 2013 at 6:05 am
Viewing 15 posts - 4,396 through 4,410 (of 10,144 total)