Viewing 15 posts - 3,241 through 3,255 (of 13,461 total)
John Mitchell-245523 (6/25/2013)
Lowell (6/25/2013)
June 25, 2013 at 10:18 am
also, i see a scalar function in the selection, so that will substantially slow things down...it looks like it's just formatting the data as 6 chars, maybe 201306?
lose the function...
June 25, 2013 at 10:02 am
you could easily add a linked server and connect to that.
since you specifically mentioned 2012, you are probably running 64 bit, and so you need 64 bit progress drivers...
June 25, 2013 at 9:38 am
does the proc insert potentially multiple rows?
is the proc generating a unique key value? a bad join in a SELECT statement could pass the not exists, but make...
June 24, 2013 at 3:13 pm
Trainacomin (6/24/2013)
I have a production and an archive database. I want to create...
June 24, 2013 at 10:13 am
Matthew Darwin (6/24/2013)
SELECT IDXMRN, Problem, Code FROM Diagnosis
WHERE Code = '305.1'
OR LEFT(Code, 3) = '491'
Or have I completely missed the point, and you want the IDXMRN where there is...
June 24, 2013 at 10:11 am
Jose do you mean object creation/modification, like what is available in sys.objects?
SELECT
name,
create_date,
modify_date
FROM sys.objects
ORDER BY
modify_date DESC
June 24, 2013 at 7:17 am
mrrobsewell (6/24/2013)
I love Powershell[void][reflection.assembly]::LoadWithPartialName("Microsoft.SqlServer.Smo");
$Server = "ServerName";
$srv = New-Object -TypeName Microsoft.SqlServer.Management.SMO.Server $Server
$srv.Mail.Script();
That's interesting; i bet with some enhancements, that could do the same thing my script was;
i see quite a few...
June 24, 2013 at 6:49 am
I can certainly help here; my example here, at least for me, works fine, except i cannot get 4 part statemetns to work; i only see to get openquery stuff...
June 21, 2013 at 8:35 am
maybe like this?
With PossibleValues(ID,Val)
AS
(
SELECT 1,'-1' UNION ALL
SELECT 2,'0' UNION ALL
SELECT 3,'a' UNION ALL
SELECT 4,'b' UNION ALL
SELECT 5,'c' UNION ALL
SELECT 6,'d' UNION ALL
SELECT 7,'e' UNION ALL
SELECT 8,'f'
),ColumnLimits(ID,ColumnName)
AS
(
SELECT 1,'Column1' UNION ALL
SELECT 2,'Column2'...
June 21, 2013 at 7:48 am
the theoretical limit is 32767, but i think it has more to do with disk space and memory capacity.
http://msdn.microsoft.com/en-us/library/ms143432.aspx#Engine
June 20, 2013 at 2:10 pm
i think you could fix it easier with a design change;
each attempt to contact, whether successful or not, inserts into a new table; a view gets added that shows the...
June 20, 2013 at 2:06 pm
tnnelzo (6/20/2013)
and b.date_entered >=cast('2013-06-01 00:00:00.000' as datetime)
and b.date_entered < cast('2013-06-20 00:00:00.000'as datetime)
and when the month ends...
June 20, 2013 at 11:35 am
tnnelzo (6/20/2013)
Here is the querry i run everyday,
Select day(b.date_entered)Day_D, sum(a.despatched_qty), sum(a.val) from scheme.dgtable1 a, scheme.dntable3 b
where a.order_no = b.order_no
and a.product like 'Machines%'
and b.date_entered >=cast('2011-05-01 00:00:00.000' as datetime)
and b.date_entered...
June 20, 2013 at 9:53 am
tnnelzo (6/20/2013)
Thank you for your help...however i want to send this report in excel ..is there any way i can do that? thanks you so much.
well, it depends.
have you set...
June 20, 2013 at 9:21 am
Viewing 15 posts - 3,241 through 3,255 (of 13,461 total)