Viewing 15 posts - 2,581 through 2,595 (of 14,953 total)
Probably that UDFs can't create temp tables, nor can they run dynamic SQL.
December 16, 2011 at 6:06 am
L' Eomot Inversé (12/15/2011)
WayneS (12/15/2011)
December 15, 2011 at 2:26 pm
Another possibility occurs to me:
Most "illegal XML character" errors I've run into have been ampersands ("&"). A few have been brackets. Since it's nvarchar(max), you can:
select *
from dbo.MyTable
where...
December 15, 2011 at 2:14 pm
Your table has multiple rows of nvarchar(max), and one or more of those have an illegal XML character in them. Correct?
Can you step through the table, assign that column...
December 15, 2011 at 2:12 pm
It does not use SQL Server Database Mail.
It does use SMTP. But so does Database Mail. SMTP is simply the mail transfer method ("Simple Mail Transfer Protocol" is...
December 15, 2011 at 2:10 pm
Definitely not an SQL Server issue. Code.
December 15, 2011 at 2:04 pm
That's exactly what Merge is for.
You re-write the stored procedure to use Merge instead of Insert, test it, and it should do exactly what you need.
Just make sure to do...
December 15, 2011 at 2:03 pm
I'm not clear enough on the data structure you're dealing with.
You don't have to link a table to every other table with a matching column. Are you trying to...
December 15, 2011 at 2:01 pm
What you're asking about is what's called an "upsert". In other words "update if existing, insert if not".
In SQL 2008, you can use the "Merge" command to do this....
December 15, 2011 at 1:48 pm
I'm not familiar enough with Dynamics databases specifically to say yes/no on what you're doing.
However, the basic practice of what you're doing looks sound. Do that in a CTE...
December 15, 2011 at 1:11 pm
It doesn't use sp_send_dbmail if that's what you mean.
December 15, 2011 at 1:09 pm
The first question, of course, is do you have access to the code to fix anything if you do find the problem?
Some proprietary, third-party software, even when you find a...
December 15, 2011 at 1:08 pm
PaulB-TheOneAndOnly (12/15/2011)
forumreg711 (9/30/2010)
There are different types of DBMS products: relational, network and hierarchical. The most widely commonly used type of DBMS today is the Relational Database Management Systems (RDBMS).
You are...
December 15, 2011 at 12:24 pm
Are you storing XML in a string datatype (varchar is the most common for that), and then trying to use an XML function on it or put it in an...
December 15, 2011 at 12:18 pm
You're going to want to break that up into smaller transactions no matter how you deal with it, or your transaction log is going to explode.
What form is the data...
December 15, 2011 at 11:47 am
Viewing 15 posts - 2,581 through 2,595 (of 14,953 total)