Click here to monitor SSC
SQLServerCentral is supported by Redgate
 
Log in  ::  Register  ::  Not logged in
 
 
 


sp_send_dbmail truncates when attaching query results.


sp_send_dbmail truncates when attaching query results.

Author
Message
Sean Pearce
Sean Pearce
Ten Centuries
Ten Centuries (1.2K reputation)Ten Centuries (1.2K reputation)Ten Centuries (1.2K reputation)Ten Centuries (1.2K reputation)Ten Centuries (1.2K reputation)Ten Centuries (1.2K reputation)Ten Centuries (1.2K reputation)Ten Centuries (1.2K reputation)

Group: General Forum Members
Points: 1172 Visits: 3432
I see a connect item has been logged

http://connect.microsoft.com/SQLServer/feedback/details/850260/sql-2014-sp-send-dbmail-64kb-query-result-limit



The SQL Guy @ blogspot

@SeanPearceSQL

About Me
Sean Pearce
Sean Pearce
Ten Centuries
Ten Centuries (1.2K reputation)Ten Centuries (1.2K reputation)Ten Centuries (1.2K reputation)Ten Centuries (1.2K reputation)Ten Centuries (1.2K reputation)Ten Centuries (1.2K reputation)Ten Centuries (1.2K reputation)Ten Centuries (1.2K reputation)

Group: General Forum Members
Points: 1172 Visits: 3432
I did some investigation and found the problem, XPStar.dll contains a bug.

File Version 2014.120.2000.8
Product Version 12.0.2000.8
Size 409 KB

As a workaround, and the method I used to prove my findings, was to copy XPStar.dll from my 2012 instance and replace the file on my 2014 instance (after backing up of course). After restarting SQL Server the issue was solved.

By default the 2012 location is:
C:\Program Files\Microsoft SQL Server\MSSQL11.MSSQLSERVER\MSSQL\Binn

and the 2014 location is:
C:\Program Files\Microsoft SQL Server\MSSQL12.SQL2014\MSSQL\Binn



The SQL Guy @ blogspot

@SeanPearceSQL

About Me
Eirikur Eiriksson
Eirikur Eiriksson
SSCertifiable
SSCertifiable (6.8K reputation)SSCertifiable (6.8K reputation)SSCertifiable (6.8K reputation)SSCertifiable (6.8K reputation)SSCertifiable (6.8K reputation)SSCertifiable (6.8K reputation)SSCertifiable (6.8K reputation)SSCertifiable (6.8K reputation)

Group: General Forum Members
Points: 6844 Visits: 17777
Sean Pearce (7/16/2014)
I did some investigation and found the problem, XPStar.dll contains a bug.

File Version 2014.120.2000.8
Product Version 12.0.2000.8
Size 409 KB

As a workaround, and the method I used to prove my findings, was to copy XPStar.dll from my 2012 instance and replace the file on my 2014 instance (after backing up of course). After restarting SQL Server the issue was solved.

By default the 2012 location is:
C:\Program Files\Microsoft SQL Server\MSSQL11.MSSQLSERVER\MSSQL\Binn

and the 2014 location is:
C:\Program Files\Microsoft SQL Server\MSSQL12.SQL2014\MSSQL\Binn

Good stuff, thanks for this.

XPStar.dll was my main suspect, other changes between the two versions looked irrelevant to the problem (discarding openxml, defaulting return values etc..)
Cool
Francis S. Mazeika
Francis S. Mazeika
Valued Member
Valued Member (57 reputation)Valued Member (57 reputation)Valued Member (57 reputation)Valued Member (57 reputation)Valued Member (57 reputation)Valued Member (57 reputation)Valued Member (57 reputation)Valued Member (57 reputation)

Group: General Forum Members
Points: 57 Visits: 369
file version 2014.120.2000.8
product version 12.0.2000.8
size 409k
Date modified 2/21/2014 5:20am

Thank you.
Francis S. Mazeika
MS SQL DBA
609-707-5207
fmazeika@isp.com
Eirikur Eiriksson
Eirikur Eiriksson
SSCertifiable
SSCertifiable (6.8K reputation)SSCertifiable (6.8K reputation)SSCertifiable (6.8K reputation)SSCertifiable (6.8K reputation)SSCertifiable (6.8K reputation)SSCertifiable (6.8K reputation)SSCertifiable (6.8K reputation)SSCertifiable (6.8K reputation)

Group: General Forum Members
Points: 6844 Visits: 17777
Francis S. Mazeika (7/22/2014)
file version 2014.120.2000.8
product version 12.0.2000.8
size 409k
Date modified 2/21/2014 5:20am

That is the flawed/bugged version.
Cool
Francis S. Mazeika
Francis S. Mazeika
Valued Member
Valued Member (57 reputation)Valued Member (57 reputation)Valued Member (57 reputation)Valued Member (57 reputation)Valued Member (57 reputation)Valued Member (57 reputation)Valued Member (57 reputation)Valued Member (57 reputation)

Group: General Forum Members
Points: 57 Visits: 369
no shit

Thank you.
Francis S. Mazeika
MS SQL DBA
609-707-5207
fmazeika@isp.com
Francis S. Mazeika
Francis S. Mazeika
Valued Member
Valued Member (57 reputation)Valued Member (57 reputation)Valued Member (57 reputation)Valued Member (57 reputation)Valued Member (57 reputation)Valued Member (57 reputation)Valued Member (57 reputation)Valued Member (57 reputation)

Group: General Forum Members
Points: 57 Visits: 369
What version works?
I tried to copy the dll from sql 2008 and 2012 into 2014 but it did not work.

Thank you.
Francis S. Mazeika
MS SQL DBA
609-707-5207
fmazeika@isp.com
Sean Pearce
Sean Pearce
Ten Centuries
Ten Centuries (1.2K reputation)Ten Centuries (1.2K reputation)Ten Centuries (1.2K reputation)Ten Centuries (1.2K reputation)Ten Centuries (1.2K reputation)Ten Centuries (1.2K reputation)Ten Centuries (1.2K reputation)Ten Centuries (1.2K reputation)

Group: General Forum Members
Points: 1172 Visits: 3432
Francis S. Mazeika (7/22/2014)
What version works?
I tried to copy the dll from sql 2008 and 2012 into 2014 but it did not work.
Did you restart SQL Server?



The SQL Guy @ blogspot

@SeanPearceSQL

About Me
Francis S. Mazeika
Francis S. Mazeika
Valued Member
Valued Member (57 reputation)Valued Member (57 reputation)Valued Member (57 reputation)Valued Member (57 reputation)Valued Member (57 reputation)Valued Member (57 reputation)Valued Member (57 reputation)Valued Member (57 reputation)

Group: General Forum Members
Points: 57 Visits: 369
Yes restarted sql. then restarted the server.


What version is the good version of XPStar.dll?

Thank you.
Francis S. Mazeika
MS SQL DBA
609-707-5207
fmazeika@isp.com
Sean Pearce
Sean Pearce
Ten Centuries
Ten Centuries (1.2K reputation)Ten Centuries (1.2K reputation)Ten Centuries (1.2K reputation)Ten Centuries (1.2K reputation)Ten Centuries (1.2K reputation)Ten Centuries (1.2K reputation)Ten Centuries (1.2K reputation)Ten Centuries (1.2K reputation)

Group: General Forum Members
Points: 1172 Visits: 3432
File Version 2011.110.5058.0
Product Version 11.0.5058.0
Size 438 KB



The SQL Guy @ blogspot

@SeanPearceSQL

About Me
Go


Permissions

You can't post new topics.
You can't post topic replies.
You can't post new polls.
You can't post replies to polls.
You can't edit your own topics.
You can't delete your own topics.
You can't edit other topics.
You can't delete other topics.
You can't edit your own posts.
You can't edit other posts.
You can't delete your own posts.
You can't delete other posts.
You can't post events.
You can't edit your own events.
You can't edit other events.
You can't delete your own events.
You can't delete other events.
You can't send private messages.
You can't send emails.
You can read topics.
You can't vote in polls.
You can't upload attachments.
You can download attachments.
You can't post HTML code.
You can't edit HTML code.
You can't post IFCode.
You can't post JavaScript.
You can post emoticons.
You can't post or upload images.

Select a forum

































































































































































SQLServerCentral


Search