Viewing 15 posts - 3,256 through 3,270 (of 13,469 total)
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
well, who in your company has a windows handheld device, vs having an android or iphone/ipad? in my shop of 30 developers, there are no windows based portable devices.
I would...
June 20, 2013 at 9:03 am
it depends on the "report"
Since you said it's a query, i assume you must be running it, copying it into an excel or something, and email it?
or formatting as HTML?
or...
June 20, 2013 at 8:57 am
here's a classic example of what J Good is talking about;
the proc below runs under elevated priviledges, so i can grant a normal user EXECUTE ont eh procedure to allow...
June 20, 2013 at 7:34 am
i have always converted IP's to big ints so that i could do cmparison and ranges;
something like this in your table setup can help:
DECLARE @IPInfo TABLE
(
MachineId int NOT NULL,
IPAddress varchar...
June 20, 2013 at 7:12 am
for a single table, i have this saved from Jason's website(the guy who posted before you
--http://jasonbrimhall.info/2011/07/11/foreign-key-hierarchy-update/
--SET XACT_ABORT ON
--BEGIN TRAN
DECLARE@StartParentTableVARCHAR(256)
SELECT @StartParentTable = 'GMACT'
;With Hierarchy (ParentTable,ParentColumn, ChildTable,ChildColumn, FKLevel, SortCol)...
June 19, 2013 at 3:28 pm
also, modify Kingstons' execellent example with this:
INSERTsalesorder
SELECT3 UNION
SELECT NULL
and the query will return nothing, because the IN() list must be all non null values, otherwise, nothing gets returned.
June 19, 2013 at 6:34 am
it depends on why the job fails i guess;
one possibility might be to have the job use SET XACT_ABORT ON, and put it in a transaction; then if an error...
June 19, 2013 at 5:44 am
well, the NOLOCKS bother me enormously, it is not a magic "go fast" button for SQL, it has a lot of dark ramifications like missing or duplicate data.
as far...
June 18, 2013 at 1:43 pm
RPSql (6/18/2013)
June 18, 2013 at 12:02 pm
if you know there is a maximum number of distributores, it's pretty easy; for example, this would assume a max of five distributora records:
WITH CTE AS (
SELECT customer#, customername,
...
June 18, 2013 at 10:39 am
Viewing 15 posts - 3,256 through 3,270 (of 13,469 total)