Viewing 15 posts - 4,231 through 4,245 (of 13,459 total)
no insults, just help with the logical rules of thumb for procedures and functions:
avoid loops whenever possible: that's cursor, while loops whatever;
like everything in SQL, there's more than one...
Lowell
December 11, 2012 at 1:33 pm
ok capn; you just need a function that expands the integers that should bebetween tow numbers as a comma delimited list, is that right?
here's both an ITVF and a scalar...
Lowell
December 11, 2012 at 12:47 pm
mpdillon (12/11/2012)
Lowell
December 11, 2012 at 11:37 am
bartvdc (12/11/2012)
I'm using it to (re)create tables from within a java app. I just have...
Lowell
December 11, 2012 at 10:14 am
the better question is do you REALLY need to install another instance in the first place, if you already have SQL installed?
Having a single instance provides a single centralized point...
Lowell
December 11, 2012 at 7:28 am
I would basically do it the same as anthony; they are already in a table, so not temp table or cursor required.
I kind of like some of the built in...
Lowell
December 11, 2012 at 5:34 am
the questions too vague for a solid answer; we have to see teh server side code, which is connecting/doing SQL stuff/disconnecting to be able to help at all.
any specific, exact...
Lowell
December 10, 2012 at 6:03 pm
it's just example WHERE statement for the data; your query which gathers the "right" emails would be very specific to your business logic, and especially the WHERE statement which...
Lowell
December 10, 2012 at 3:01 pm
a rough example of multiple recipients from a query, unique emails, same attachment:
declare
@isql varchar(2000),
@email varchar(64)
declare c1 cursor for select distinct email FROM...
Lowell
December 10, 2012 at 2:00 pm
so you want to send 100 individualized emails, each with the same (or different?) attachment?(hint: cursor)
or do you want to send a single email, with 100 To:/CC:/BCC:/ and the same...
Lowell
December 10, 2012 at 1:54 pm
try using a CASE statement to filter out the rows that have a zero denominator
something like this is my first guess:
CASE
WHEN DATEDIFF(SECOND,dr.startTime,dr.endTime) = 0
THEN 0
...
Lowell
December 10, 2012 at 12:07 pm
Alex, you posted the estimated execution plan, which shows a nice expected clustered index scan; i think we need the actual execution plan, where it's being returned slowly via SSMS...
Lowell
December 10, 2012 at 12:03 pm
in that case, baring slow network issues, i'd think the first thing is to look at the execution plan, and the real query;
anything from parameter sniffing, out of date statistics,...
Lowell
December 10, 2012 at 10:02 am
marlon i looked at this page, and osql @ the cmd prompt, and this is what i think:
i tried to put comments in, i hope the comment start chars are...
Lowell
December 10, 2012 at 9:59 am
I think SQLHeap has got the core issue. linked servers have performance issues you need to be aware of.
try these two things on the server witht eh linked server on...
Lowell
December 10, 2012 at 9:40 am
Viewing 15 posts - 4,231 through 4,245 (of 13,459 total)