Viewing 15 posts - 11,926 through 11,940 (of 13,461 total)
can you change the way the data gets inserted? if an application is trying to do an INSERT, can you make it call a stored proc instead?
what happens if the...
November 4, 2008 at 6:25 am
the previous link was a 20+ page forum discussion here on SSC;When I used the Google tool, it did not find the thread; I grabbed what items I thought were...
November 4, 2008 at 6:15 am
maybe I'm missing something, but i do not see any reason for the looping construction to be in your procedure(which is the reason it is slow)
it looks like you load...
November 4, 2008 at 4:21 am
SELECT *
FROM CustomerMapping_Stage
LEFT OUTER JOIN CustomerMapping
ON CustomerMapping_Stage.ClientNo = CustomerMapping.ClientNo
AND CustomerMapping_Stage.Customer= CustomerMapping.Customer
--this finds what is NT in CustomerMapping YET:
--AND CustomerMapping.PKid IS NULL
martina.kenny (11/4/2008)
November 4, 2008 at 4:03 am
check the first link again, I re-edited it; the second link should be fine as well. they just open as a text file; the script is beyond the size limit...
November 3, 2008 at 3:56 pm
just realized that script does not handle things like varchar(max) gracefully.
here is a link to a 2005 version:
November 3, 2008 at 3:52 pm
i got what you are looking for;
there was a script submission that someone made; It creates an HTML document, which you just save and view.
I've enhanced it slightly, and you...
November 3, 2008 at 3:45 pm
you can try the isnumeric function:
WHERE ISNUMERIC(SOMEVARCHAR) = 1
but as others will tell you, it's not 100% reliable, because of the way it is structured; for exampel
select isnumeric('1E2')
select isnumeric('1d2')
all...
November 3, 2008 at 8:36 am
you need to change the isnsert so that it has your objnum in it, typcially by joining to the right table.
for example, if you have a lookup table that has...
November 3, 2008 at 7:02 am
in my experience, when the same query doesn't run right on two different servers, i check two items first thing: statistics and parameter sniffing.
statistics on one server might be up...
November 3, 2008 at 6:47 am
ok here's an example for you to play with to understand the concept:
create the two tables, and select from the two tables after every step;
this example says if columns 3,4,5,6,7...
October 31, 2008 at 10:03 am
all i meant was you are joining lots of tables in this query....if any two of the tables have a column named PARNT then you will get an error that...
October 30, 2008 at 11:54 am
first thing i notice is you declared 43 variables, but only use one of them; i guess there's more to this than you pasted?
next a minor thing is that your...
October 30, 2008 at 10:36 am
you could easily do this automatically in a trigger, especially by using the new COLUMNS_UPDATED() function that exists for triggers in SQL2005; if a change occurs, you could have a...
October 30, 2008 at 8:25 am
if your dev machine is running SQL Express or SQL Express Advanced, SQl Server Agenct does not exist; it's not part of the featureset, and i suspect that is what...
October 29, 2008 at 10:56 am
Viewing 15 posts - 11,926 through 11,940 (of 13,461 total)