Showing posts with label message. Show all posts
Showing posts with label message. Show all posts

Sunday, March 25, 2012

ActiveX Script Running DTS Causes Error

Hello All,

I have an ActiveX script that runs DTS pachkages. In the event that a package fails I want to display the error message. I found the following code (in bold) for doing this but I keep getting an error message as follows.

Type mismatch 'oSoStep.GetExecutionErrorInfo'

All help appreciated.

Thanks, Gary

Could you post your code?
Jason
|||For Each oStep In oPkg.Steps
If oStep.ExecutionStatus = DTSStepExecStat_Completed Then
If oStep.ExecutionResult = DTSStepExecResult_Failure Then
oStep.GetExecutionErrorInfo lErrNum, sSource, sDescr
msgbox(sDescr)
End If
End If
Next

ActiveX Script

I ran this activeX script with my DTS package. For debugging purpose I included the message box. The message is showing the actual name of the file but the the file name is not changing to the name display in the message box.

Function Main()
ms_year = year(date())
ms_month = month(date())
ms_day = day(date())
ms_date = ms_year & "_" & ms_month &"_" & ms_day & "_"

dim objFSO, strFullNm

set objFSO = CreateObject("Scripting.FileSystemObject")
strFullNm = DTSGlobalVariables("FilePathRoot").value & "\IMS_ALL_DONATIONS.txt"

'check to see if file exist and then concatenate the file
if objFSO.FileExists(strFullNm) then
strFullNm = DTSGlobalVariables("FilePathRoot").value & "\ " & ms_date & "IMS_ALL_DONATIONS.txt"
MsgBox "This is the new filename: " & strFullNm
else MsgBox "File does not exist"
end if

set objFSO = nothing
Main = DTSTaskExecResult_Success
End FunctionUm, I'm not sure exactly what you are trying to achieve here.

You say the correct filename is being displayed but strFullNm is not being set to the right value, is that right??

After you display strFullNm what are you doing with it? Looking at the code you have there you aren't doing anything with it at all and it will be discarded. Are you trying to rename a file or move a file or something?

Tuesday, March 20, 2012

Active X Error

I get this error msg when I run my ActiveX script in a DTS package.

Err number: 429
Err Message: ActiveX component can't create object

When I Set crApplication = CreateObject("CrystalRuntime.Application.9")

if Err.Number <>0 then
'I get the message here

ne one know what this is about? I'm running this package on SQL server 2000 with Admistrative accessdo you have crystal object library installed on the box?|||Hi there,

I assume you have installed Crystal on your box! So, I can imagine two reasons:

1. No file type is associated with this application (had this kind of problem recently with Cognos Impromptu!) and the system doesn't "know" CrystalRuntime.Application.9.

2. Is CreateObject("CrystalRuntime.Application.9") the correct syntax? Is the ".9" correct there?

Greetings,
Carsten

Originally posted by vmlal
I get this error msg when I run my ActiveX script in a DTS package.

Err number: 429
Err Message: ActiveX component can't create object

When I Set crApplication = CreateObject("CrystalRuntime.Application.9")

if Err.Number <>0 then
'I get the message here

ne one know what this is about? I'm running this package on SQL server 2000 with Admistrative access|||hm, i don't think file association is required if the object library is properly registerd with all dependent components (i've seen dll's that cannot be registered without ocx's being registered first, etc.)|||Originally posted by ms_sql_dba
hm, i don't think file association is required if the object library is properly registerd with all dependent components (i've seen dll's that cannot be registered without ocx's being registered first, etc.)

If thats not the case where could i start resovling this issue? Any starting points? thanks.|||you need to make sure that you know exactly what components have been loaded on the server and that you have the required dll (-s) present. if the installation was done through windows installer you will see some footprint of it in controll panel/add/remove programs.sql

Sunday, March 11, 2012

Active Connections

Hello,
I got an message in MOM the I have more than 500 concurrent open connections on my sql server. So I checked this and saw that the number is about 200000. Nevertheless I can see only 80 connections in the activity monitor and the corresponding tables in the msdb.
So I restarted the server (it's a test server) and after an hour there already constantly 3000 user connections in the performance monitor and only 80 in the activity monitor.
Does anyone know how I can check what the other connections are or which process these connections create ?
Manfred
Did you compare:
EXEC sp_who2;
and
EXEC sp_who2 'active';
Do you have an application that perhaps does not release connections?
"Manfred Schopf" <manfred.schopf@.aon.at> wrote in message
news:newscache$vz4o8j$mg7$1@.news.sil.at...
> Hello,
> I got an message in MOM the I have more than 500 concurrent open
> connections on my sql server. So I checked this and saw that the number is
> about 200000. Nevertheless I can see only 80 connections in the activity
> monitor and the corresponding tables in the msdb.
> So I restarted the server (it's a test server) and after an hour there
> already constantly 3000 user connections in the performance monitor and
> only 80 in the activity monitor.
> Does anyone know how I can check what the other connections are or which
> process these connections create ?
> Manfred
|||Manfred Schopf wrote:
> Hello,
> I got an message in MOM the I have more than 500 concurrent open connections on my sql server. So I checked this and saw that the number is about 200000. Nevertheless I can see only 80 connections in the activity monitor and the corresponding tables in the msdb.
> So I restarted the server (it's a test server) and after an hour there already constantly 3000 user connections in the performance monitor and only 80 in the activity monitor.
> Does anyone know how I can check what the other connections are or which process these connections create ?
> Manfred
What counter are you monitoring in Performance Monitor? If you query
the sysprocesses table, you'll see exactly how many connections there are:
SELECT * FROM master.dbo.sysprocesses
Each row is a connection
Tracy McKibben
MCDBA
http://www.realsqlguy.com

Active Connections

Hello,
I got an message in MOM the I have more than 500 concurrent open connections
on my sql server. So I checked this and saw that the number is about 200000
. Nevertheless I can see only 80 connections in the activity monitor and the
corresponding tables in th
e msdb.
So I restarted the server (it's a test server) and after an hour there alrea
dy constantly 3000 user connections in the performance monitor and only 80 i
n the activity monitor.
Does anyone know how I can check what the other connections are or which pro
cess these connections create ?
ManfredDid you compare:
EXEC sp_who2;
and
EXEC sp_who2 'active';
Do you have an application that perhaps does not release connections?
"Manfred Schopf" <manfred.schopf@.aon.at> wrote in message
news:newscache$vz4o8j$mg7$1@.news.sil.at...
> Hello,
> I got an message in MOM the I have more than 500 concurrent open
> connections on my sql server. So I checked this and saw that the number is
> about 200000. Nevertheless I can see only 80 connections in the activity
> monitor and the corresponding tables in the msdb.
> So I restarted the server (it's a test server) and after an hour there
> already constantly 3000 user connections in the performance monitor and
> only 80 in the activity monitor.
> Does anyone know how I can check what the other connections are or which
> process these connections create ?
> Manfred|||Manfred Schopf wrote:
> Hello,
> I got an message in MOM the I have more than 500 concurrent open connections on my
sql server. So I checked this and saw that the number is about 200000. Nevertheless
I can see only 80 connections in the activity monitor and the corresponding tables
in
the msdb.
> So I restarted the server (it's a test server) and after an hour there alr
eady constantly 3000 user connections in the performance monitor and only 80
in the activity monitor.
> Does anyone know how I can check what the other connections are or which p
rocess these connections create ?
> Manfred
What counter are you monitoring in Performance Monitor? If you query
the sysprocesses table, you'll see exactly how many connections there are:
SELECT * FROM master.dbo.sysprocesses
Each row is a connection
Tracy McKibben
MCDBA
http://www.realsqlguy.com|||I think there might be a leaky application. I want to find out which one
this could be.
sp_who2 - 60 rows and with 'active' - 24 rows.
the perfmon counter tells me that I have about 44 logical connections
and 3000 user connections.
Manfred
Aaron Bertrand [SQL Server MVP] schrieb:
> Did you compare:
> EXEC sp_who2;
> and
> EXEC sp_who2 'active';
> Do you have an application that perhaps does not release connections?
>
>
> "Manfred Schopf" <manfred.schopf@.aon.at> wrote in message
> news:newscache$vz4o8j$mg7$1@.news.sil.at...
>|||Tracy McKibben schrieb:
> Manfred Schopf wrote:
> What counter are you monitoring in Performance Monitor? If you query
> the sysprocesses table, you'll see exactly how many connections there are:
> SELECT * FROM master.dbo.sysprocesses
> Each row is a connection
>
>
I got 64 rows.
I am monitoring 4 values in the perfmon:
user connections - 3089
logical connections - about 40
logins/sec, logouts/sec - I have much more logins than logouts per
seconds (about twice as much)
Manfred

Active Connections

Hello,
I got an message in MOM the I have more than 500 concurrent open connections on my sql server. So I checked this and saw that the number is about 200000. Nevertheless I can see only 80 connections in the activity monitor and the corresponding tables in the msdb.
So I restarted the server (it's a test server) and after an hour there already constantly 3000 user connections in the performance monitor and only 80 in the activity monitor.
Does anyone know how I can check what the other connections are or which process these connections create ?
ManfredDid you compare:
EXEC sp_who2;
and
EXEC sp_who2 'active';
Do you have an application that perhaps does not release connections?
"Manfred Schopf" <manfred.schopf@.aon.at> wrote in message
news:newscache$vz4o8j$mg7$1@.news.sil.at...
> Hello,
> I got an message in MOM the I have more than 500 concurrent open
> connections on my sql server. So I checked this and saw that the number is
> about 200000. Nevertheless I can see only 80 connections in the activity
> monitor and the corresponding tables in the msdb.
> So I restarted the server (it's a test server) and after an hour there
> already constantly 3000 user connections in the performance monitor and
> only 80 in the activity monitor.
> Does anyone know how I can check what the other connections are or which
> process these connections create ?
> Manfred|||Manfred Schopf wrote:
> Hello,
> I got an message in MOM the I have more than 500 concurrent open connections on my sql server. So I checked this and saw that the number is about 200000. Nevertheless I can see only 80 connections in the activity monitor and the corresponding tables in the msdb.
> So I restarted the server (it's a test server) and after an hour there already constantly 3000 user connections in the performance monitor and only 80 in the activity monitor.
> Does anyone know how I can check what the other connections are or which process these connections create ?
> Manfred
What counter are you monitoring in Performance Monitor? If you query
the sysprocesses table, you'll see exactly how many connections there are:
SELECT * FROM master.dbo.sysprocesses
Each row is a connection
Tracy McKibben
MCDBA
http://www.realsqlguy.com|||I think there might be a leaky application. I want to find out which one
this could be.
sp_who2 - 60 rows and with 'active' - 24 rows.
the perfmon counter tells me that I have about 44 logical connections
and 3000 user connections.
Manfred
Aaron Bertrand [SQL Server MVP] schrieb:
> Did you compare:
> EXEC sp_who2;
> and
> EXEC sp_who2 'active';
> Do you have an application that perhaps does not release connections?
>
>
> "Manfred Schopf" <manfred.schopf@.aon.at> wrote in message
> news:newscache$vz4o8j$mg7$1@.news.sil.at...
>> Hello,
>> I got an message in MOM the I have more than 500 concurrent open
>> connections on my sql server. So I checked this and saw that the number is
>> about 200000. Nevertheless I can see only 80 connections in the activity
>> monitor and the corresponding tables in the msdb.
>> So I restarted the server (it's a test server) and after an hour there
>> already constantly 3000 user connections in the performance monitor and
>> only 80 in the activity monitor.
>> Does anyone know how I can check what the other connections are or which
>> process these connections create ?
>> Manfred
>|||Tracy McKibben schrieb:
> Manfred Schopf wrote:
>> Hello,
>> I got an message in MOM the I have more than 500 concurrent open
>> connections on my sql server. So I checked this and saw that the
>> number is about 200000. Nevertheless I can see only 80 connections in
>> the activity monitor and the corresponding tables in the msdb.
>> So I restarted the server (it's a test server) and after an hour there
>> already constantly 3000 user connections in the performance monitor
>> and only 80 in the activity monitor.
>> Does anyone know how I can check what the other connections are or
>> which process these connections create ?
>> Manfred
> What counter are you monitoring in Performance Monitor? If you query
> the sysprocesses table, you'll see exactly how many connections there are:
> SELECT * FROM master.dbo.sysprocesses
> Each row is a connection
>
>
I got 64 rows.
I am monitoring 4 values in the perfmon:
user connections - 3089
logical connections - about 40
logins/sec, logouts/sec - I have much more logins than logouts per
seconds (about twice as much)
Manfred

Activation Failure

We recently upgraded SQL Server 2005 to SP 2 and now cannot implement Database mail. The message given is "Activation Failure" in the log. I have looked at the stored procedure "sp_sysmail_activate" and there is apparently a failure due to an invalid parameter. Can someone provide some direction regarding how to proceed?

Thanks.

could u pse post back the exact error from error log

Madhu

|||

Date 5/30/2007 9:36:02 AM
Log Database Mail (Database Mail Log)

Log ID 516
Last Modified 5/30/2007 9:36:02 AM
Last Modified By sa

Message
Activation failure.

I hope this helps.

Thank you.

|||

We have also recently upgraded to sql 2005 sp2 and are experiencing the same error.

Log Database Mail (Database Mail Log)

Log ID 139
Last Modified 6/7/2007 12:50:06 PM
Last Modified By sa

Message
Activation failure.

Does anyone have any suggestions on what be causing this problem and potential solutions.

Thanks

|||

FYI - I was trying to make this work on SQL Server Express and was getting the same error message.

This might be because it's not supported, according to: http://msdn2.microsoft.com/en-us/library/ms165636.aspx

I don't know, but thought I would share.

Cheers,

-Richard

|||

DBMail is not supported on the Express edition. Let me know if you're receiving this error for a !Express edition.

Cheers,

Dan

|||Did you have any luck with your database mail issue. I'm experiencing the same thing.|||

Hi,

I'm also having this issue - See here for my problem:

http://forums.microsoft.com/TechNet/ShowPost.aspx?PostID=1890943&SiteID=17

Wonder if anyone has a solution ?

Cheers

|||

We just upgraded to SQL2005 SP2 and since database mail will not function here as well. Any solutions to this issue?

Database Mail Logs:

Date 8/3/2007 7:00:07 PM
Log Database Mail (Database Mail Log)

Log ID 1646
Last Modified 8/3/2007 7:00:07 PM
Last Modified By sa

Message
Activation failure.

EventVwr Logs:

Event Type: Information

Event Source: MSSQLSERVER

Event Category: (2)

Event ID: 9724

Date: 8/6/2007

Time: 8:00:06 AM

User: N/A

Computer: SERVERNAME

Description:

The activated proc [dbo].[sp_sysmail_activate] running on queue msdb.dbo.ExternalMailQueue output the following: 'Error executing extended stored procedure: Invalid Parameter'

|||same problem here, anyone any ideas please?
|||

Same to...

Additional information: after runnig DatabaseMail90.exe manualy, at DataBaseMailLog I have 2 errors:

Code Snippet

Date 21.09.2007 15:04:58
Log Database Mail (Database Mail Log)

Log ID 224
Last Modified 21.09.2007 15:04:58
Last Modified By WEST\freeman

Message
Invalid XML message format received on the ExternalMailQueue. conversation_handle: 408F6968-3268-DC11-8ADE-0015171170E8. message_type_name: {//www.microsoft.com/databasemail/messages}SendMailStatus. message body:
http://schemas.microsoft.com/databasemail/responses ResponseTypes.xsd" xmlns:responses="http://schemas.microsoft.com/databasemail/responses">

Code Snippet

Date 21.09.2007 15:04:58
Log Database Mail (Database Mail Log)

Log ID 225
Process ID 2032
Last Modified 21.09.2007 15:04:58
Last Modified By WEST\freeman

Message
1) Exception Information
===================
Exception Type: System.Data.SqlClient.SqlException
Errors: System.Data.SqlClient.SqlErrorCollection
Class: 16
LineNumber: 1
Number: 6602
Procedure: sp_xml_preparedocument
Server: .
State: 2
Source: .Net SqlClient Data Provider
ErrorCode: -2146232060
Message: The error description is 'Switch from current encoding to specified encoding not supported.'.
The XML parse error 0xc00ce56f occurred on line number 1, near the XML text "<?xml version="1.0" encoding="utf-16"?>".
Data: System.Collections.ListDictionaryInternal
TargetSite: Void OnError(System.Data.SqlClient.SqlException, Boolean)
HelpLink: NULL

StackTrace Information
===================
at System.Data.SqlClient.SqlConnection.OnError(SqlException exception, Boolean breakConnection)
at System.Data.SqlClient.TdsParser.ThrowExceptionAndWarning(TdsParserStateObject stateObj)
at System.Data.SqlClient.TdsParser.Run(RunBehavior runBehavior, SqlCommand cmdHandler, SqlDataReader dataStream, BulkCopySimpleResultSet bulkCopyHandler, TdsParserStateObject stateObj)
at System.Data.SqlClient.SqlCommand.FinishExecuteReader(SqlDataReader ds, RunBehavior runBehavior, String resetOptionsString)
at System.Data.SqlClient.SqlCommand.RunExecuteReaderTds(CommandBehavior cmdBehavior, RunBehavior runBehavior, Boolean returnStream, Boolean async)
at System.Data.SqlClient.SqlCommand.RunExecuteReader(CommandBehavior cmdBehavior, RunBehavior runBehavior, Boolean returnStream, String method, DbAsyncResult result)
at System.Data.SqlClient.SqlCommand.InternalExecuteNonQuery(DbAsyncResult result, String methodName, Boolean sendToPipe)
at System.Data.SqlClient.SqlCommand.ExecuteNonQuery()
at Microsoft.SqlServer.Management.SqlIMail.Server.DataAccess.DataAccessAdapter.PostResponse(Response r, Guid convHandle)
at Microsoft.SqlServer.Management.SqlIMail.IMailProcess.ThreadCallBack.PostResponseIfNeeded(MailInfo mi, Response r)
at Microsoft.SqlServer.Management.SqlIMail.IMailProcess.ThreadCallBack.MailOperation(Object o)

|||

Forgot Smile

After runnig DatabaseMail90.exe manual leters from DatabaseMail query will sent.

Activation Failure

We recently upgraded SQL Server 2005 to SP 2 and now cannot implement Database mail. The message given is "Activation Failure" in the log. I have looked at the stored procedure "sp_sysmail_activate" and there is apparently a failure due to an invalid parameter. Can someone provide some direction regarding how to proceed?

Thanks.

could u pse post back the exact error from error log

Madhu

|||

Date 5/30/2007 9:36:02 AM
Log Database Mail (Database Mail Log)

Log ID 516
Last Modified 5/30/2007 9:36:02 AM
Last Modified By sa

Message
Activation failure.

I hope this helps.

Thank you.

|||

We have also recently upgraded to sql 2005 sp2 and are experiencing the same error.

Log Database Mail (Database Mail Log)

Log ID 139
Last Modified 6/7/2007 12:50:06 PM
Last Modified By sa

Message
Activation failure.

Does anyone have any suggestions on what be causing this problem and potential solutions.

Thanks

|||

FYI - I was trying to make this work on SQL Server Express and was getting the same error message.

This might be because it's not supported, according to: http://msdn2.microsoft.com/en-us/library/ms165636.aspx

I don't know, but thought I would share.

Cheers,

-Richard

|||

DBMail is not supported on the Express edition. Let me know if you're receiving this error for a !Express edition.

Cheers,

Dan

|||Did you have any luck with your database mail issue. I'm experiencing the same thing.|||

Hi,

I'm also having this issue - See here for my problem:

http://forums.microsoft.com/TechNet/ShowPost.aspx?PostID=1890943&SiteID=17

Wonder if anyone has a solution ?

Cheers

|||

We just upgraded to SQL2005 SP2 and since database mail will not function here as well. Any solutions to this issue?

Database Mail Logs:

Date 8/3/2007 7:00:07 PM
Log Database Mail (Database Mail Log)

Log ID 1646
Last Modified 8/3/2007 7:00:07 PM
Last Modified By sa

Message
Activation failure.

EventVwr Logs:

Event Type: Information

Event Source: MSSQLSERVER

Event Category: (2)

Event ID: 9724

Date: 8/6/2007

Time: 8:00:06 AM

User: N/A

Computer: SERVERNAME

Description:

The activated proc [dbo].[sp_sysmail_activate] running on queue msdb.dbo.ExternalMailQueue output the following: 'Error executing extended stored procedure: Invalid Parameter'

|||same problem here, anyone any ideas please?
|||

Same to...

Additional information: after runnig DatabaseMail90.exe manualy, at DataBaseMailLog I have 2 errors:

Code Snippet

Date 21.09.2007 15:04:58
Log Database Mail (Database Mail Log)

Log ID 224
Last Modified 21.09.2007 15:04:58
Last Modified By WEST\freeman

Message
Invalid XML message format received on the ExternalMailQueue. conversation_handle: 408F6968-3268-DC11-8ADE-0015171170E8. message_type_name: {//www.microsoft.com/databasemail/messages}SendMailStatus. message body:
http://schemas.microsoft.com/databasemail/responses ResponseTypes.xsd" xmlns:responses="http://schemas.microsoft.com/databasemail/responses">

Code Snippet

Date 21.09.2007 15:04:58
Log Database Mail (Database Mail Log)

Log ID 225
Process ID 2032
Last Modified 21.09.2007 15:04:58
Last Modified By WEST\freeman

Message
1) Exception Information
===================
Exception Type: System.Data.SqlClient.SqlException
Errors: System.Data.SqlClient.SqlErrorCollection
Class: 16
LineNumber: 1
Number: 6602
Procedure: sp_xml_preparedocument
Server: .
State: 2
Source: .Net SqlClient Data Provider
ErrorCode: -2146232060
Message: The error description is 'Switch from current encoding to specified encoding not supported.'.
The XML parse error 0xc00ce56f occurred on line number 1, near the XML text "<?xml version="1.0" encoding="utf-16"?>".
Data: System.Collections.ListDictionaryInternal
TargetSite: Void OnError(System.Data.SqlClient.SqlException, Boolean)
HelpLink: NULL

StackTrace Information
===================
at System.Data.SqlClient.SqlConnection.OnError(SqlException exception, Boolean breakConnection)
at System.Data.SqlClient.TdsParser.ThrowExceptionAndWarning(TdsParserStateObject stateObj)
at System.Data.SqlClient.TdsParser.Run(RunBehavior runBehavior, SqlCommand cmdHandler, SqlDataReader dataStream, BulkCopySimpleResultSet bulkCopyHandler, TdsParserStateObject stateObj)
at System.Data.SqlClient.SqlCommand.FinishExecuteReader(SqlDataReader ds, RunBehavior runBehavior, String resetOptionsString)
at System.Data.SqlClient.SqlCommand.RunExecuteReaderTds(CommandBehavior cmdBehavior, RunBehavior runBehavior, Boolean returnStream, Boolean async)
at System.Data.SqlClient.SqlCommand.RunExecuteReader(CommandBehavior cmdBehavior, RunBehavior runBehavior, Boolean returnStream, String method, DbAsyncResult result)
at System.Data.SqlClient.SqlCommand.InternalExecuteNonQuery(DbAsyncResult result, String methodName, Boolean sendToPipe)
at System.Data.SqlClient.SqlCommand.ExecuteNonQuery()
at Microsoft.SqlServer.Management.SqlIMail.Server.DataAccess.DataAccessAdapter.PostResponse(Response r, Guid convHandle)
at Microsoft.SqlServer.Management.SqlIMail.IMailProcess.ThreadCallBack.PostResponseIfNeeded(MailInfo mi, Response r)
at Microsoft.SqlServer.Management.SqlIMail.IMailProcess.ThreadCallBack.MailOperation(Object o)

|||

Forgot Smile

After runnig DatabaseMail90.exe manual leters from DatabaseMail query will sent.

|||

Why this happndes, i don't now. But solution is found/

This hapend, couse you stored proc msdb.dbo.sp_sysmail_activate is older, and mismatches procedure xp_sysmail_activate in databe master.

Run this code to update the sp_sysmail_activate proc.

sp_sysmail_activate

USE [msdb]

GO

/****** Object: StoredProcedure [dbo].[sp_sysmail_activate] Script Date: 09/27/2007 15:46:33 ******/

SET ANSI_NULLS ON

GO

SET QUOTED_IDENTIFIER ON

GO

-- sp_sysmail_activate : Starts the DatabaseMail process if it isn't already running

--

ALTER PROCEDURE [dbo].[sp_sysmail_activate]

AS

BEGIN

DECLARE @.mailDbName sysname

DECLARE @.mailDbId INT

DECLARE @.mailEngineLifeMin INT

DECLARE @.loggingLevel nvarchar(256)

DECLARE @.loggingLevelInt int

DECLARE @.parameter_value nvarchar(256)

DECLARE @.localmessage nvarchar(max)

DECLARE @.readFromConfigFile INT

DECLARE @.rc INT

SET NOCOUNT ON

EXEC sp_executesql @.statement = N'RECEIVE TOP(0) * FROM msdb.dbo.ExternalMailQueue'

EXEC @.rc = msdb.dbo.sysmail_help_configure_value_sp @.parameter_name = N'DatabaseMailExeMinimumLifeTime',

@.parameter_value = @.parameter_value OUTPUT

IF(@.rc <> 0)

RETURN (1)

--ConvertToInt will return the default if @.parameter_value is null or config value can't be converted

--Setting max exe lifetime is 1 week (604800 secs). Can't see a reason for it to ever run longer that this

SET @.mailEngineLifeMin = dbo.ConvertToInt(@.parameter_value, 604800, 600)

EXEC msdb.dbo.sysmail_help_configure_value_sp @.parameter_name = N'ReadFromConfigurationFile',

@.parameter_value = @.parameter_value OUTPUT

--Try to read the optional read from configuration file:

SET @.readFromConfigFile = dbo.ConvertToInt(@.parameter_value, 1, 0)

--Try and get the optional logging level for the DatabaseMail process

EXEC msdb.dbo.sysmail_help_configure_value_sp @.parameter_name = N'LoggingLevel',

@.parameter_value = @.loggingLevel OUTPUT

--Convert logging level into string value for passing into XP

SET @.loggingLevelInt = dbo.ConvertToInt(@.loggingLevel, 3, 2)

IF @.loggingLevelInt = 1

SET @.loggingLevel = 'Normal'

ELSE IF @.loggingLevelInt = 3

SET @.loggingLevel = 'Verbose'

ELSE -- default

SET @.loggingLevel = 'Extended'

SET @.mailDbName = DB_NAME()

SET @.mailDbId = DB_ID()

EXEC @.rc = master..xp_sysmail_activate @.mailDbId, @.mailDbName, @.readFromConfigFile,

@.mailEngineLifeMin, @.loggingLevel

IF(@.rc <> 0)

BEGIN

SET @.localmessage = FORMATMESSAGE(14637)

exec msdb.dbo.sysmail_logmailevent_sp @.event_type=3, @.description=@.localmessage

END

ELSE

BEGIN

SET @.localmessage = FORMATMESSAGE(14638)

exec msdb.dbo.sysmail_logmailevent_sp @.event_type=0, @.description=@.localmessage

END

RETURN @.rc

END

|||

Also you must change this stored/procs:

msdb.dbo.sp_send_dbmail

msdb.dbo.sp_ExternalMailQueueListener

msdb.dbo.RunMailQuery

msdb.dbo.sysmail_verify_account_sp

msdb.dbo.sp_validate_user

Take it from worked server.

|||

I get this error too on standard edition SP2.

Has anyone reported this as a bug?

Activation Failure

We recently upgraded SQL Server 2005 to SP 2 and now cannot implement Database mail. The message given is "Activation Failure" in the log. I have looked at the stored procedure "sp_sysmail_activate" and there is apparently a failure due to an invalid parameter. Can someone provide some direction regarding how to proceed?

Thanks.

could u pse post back the exact error from error log

Madhu

|||

Date 5/30/2007 9:36:02 AM
Log Database Mail (Database Mail Log)

Log ID 516
Last Modified 5/30/2007 9:36:02 AM
Last Modified By sa

Message
Activation failure.

I hope this helps.

Thank you.

|||

We have also recently upgraded to sql 2005 sp2 and are experiencing the same error.

Log Database Mail (Database Mail Log)

Log ID 139
Last Modified 6/7/2007 12:50:06 PM
Last Modified By sa

Message
Activation failure.

Does anyone have any suggestions on what be causing this problem and potential solutions.

Thanks

|||

FYI - I was trying to make this work on SQL Server Express and was getting the same error message.

This might be because it's not supported, according to: http://msdn2.microsoft.com/en-us/library/ms165636.aspx

I don't know, but thought I would share.

Cheers,

-Richard

|||

DBMail is not supported on the Express edition. Let me know if you're receiving this error for a !Express edition.

Cheers,

Dan

|||Did you have any luck with your database mail issue. I'm experiencing the same thing.|||

Hi,

I'm also having this issue - See here for my problem:

http://forums.microsoft.com/TechNet/ShowPost.aspx?PostID=1890943&SiteID=17

Wonder if anyone has a solution ?

Cheers

|||

We just upgraded to SQL2005 SP2 and since database mail will not function here as well. Any solutions to this issue?

Database Mail Logs:

Date 8/3/2007 7:00:07 PM
Log Database Mail (Database Mail Log)

Log ID 1646
Last Modified 8/3/2007 7:00:07 PM
Last Modified By sa

Message
Activation failure.

EventVwr Logs:

Event Type: Information

Event Source: MSSQLSERVER

Event Category: (2)

Event ID: 9724

Date: 8/6/2007

Time: 8:00:06 AM

User: N/A

Computer: SERVERNAME

Description:

The activated proc [dbo].[sp_sysmail_activate] running on queue msdb.dbo.ExternalMailQueue output the following: 'Error executing extended stored procedure: Invalid Parameter'

|||same problem here, anyone any ideas please?

Activation Failure

We recently upgraded SQL Server 2005 to SP 2 and now cannot implement Database mail. The message given is "Activation Failure" in the log. I have looked at the stored procedure "sp_sysmail_activate" and there is apparently a failure due to an invalid parameter. Can someone provide some direction regarding how to proceed?

Thanks.

could u pse post back the exact error from error log

Madhu

|||

Date 5/30/2007 9:36:02 AM
Log Database Mail (Database Mail Log)

Log ID 516
Last Modified 5/30/2007 9:36:02 AM
Last Modified By sa

Message
Activation failure.

I hope this helps.

Thank you.

|||

We have also recently upgraded to sql 2005 sp2 and are experiencing the same error.

Log Database Mail (Database Mail Log)

Log ID 139
Last Modified 6/7/2007 12:50:06 PM
Last Modified By sa

Message
Activation failure.

Does anyone have any suggestions on what be causing this problem and potential solutions.

Thanks

|||

FYI - I was trying to make this work on SQL Server Express and was getting the same error message.

This might be because it's not supported, according to: http://msdn2.microsoft.com/en-us/library/ms165636.aspx

I don't know, but thought I would share.

Cheers,

-Richard

|||

DBMail is not supported on the Express edition. Let me know if you're receiving this error for a !Express edition.

Cheers,

Dan

|||Did you have any luck with your database mail issue. I'm experiencing the same thing.|||

Hi,

I'm also having this issue - See here for my problem:

http://forums.microsoft.com/TechNet/ShowPost.aspx?PostID=1890943&SiteID=17

Wonder if anyone has a solution ?

Cheers

|||

We just upgraded to SQL2005 SP2 and since database mail will not function here as well. Any solutions to this issue?

Database Mail Logs:

Date 8/3/2007 7:00:07 PM
Log Database Mail (Database Mail Log)

Log ID 1646
Last Modified 8/3/2007 7:00:07 PM
Last Modified By sa

Message
Activation failure.

EventVwr Logs:

Event Type: Information

Event Source: MSSQLSERVER

Event Category: (2)

Event ID: 9724

Date: 8/6/2007

Time: 8:00:06 AM

User: N/A

Computer: SERVERNAME

Description:

The activated proc [dbo].[sp_sysmail_activate] running on queue msdb.dbo.ExternalMailQueue output the following: 'Error executing extended stored procedure: Invalid Parameter'

|||same problem here, anyone any ideas please?
|||

Same to...

Additional information: after runnig DatabaseMail90.exe manualy, at DataBaseMailLog I have 2 errors:

Code Snippet

Date 21.09.2007 15:04:58
Log Database Mail (Database Mail Log)

Log ID 224
Last Modified 21.09.2007 15:04:58
Last Modified By WEST\freeman

Message
Invalid XML message format received on the ExternalMailQueue. conversation_handle: 408F6968-3268-DC11-8ADE-0015171170E8. message_type_name: {//www.microsoft.com/databasemail/messages}SendMailStatus. message body:
http://schemas.microsoft.com/databasemail/responses ResponseTypes.xsd" xmlns:responses="http://schemas.microsoft.com/databasemail/responses">

Code Snippet

Date 21.09.2007 15:04:58
Log Database Mail (Database Mail Log)

Log ID 225
Process ID 2032
Last Modified 21.09.2007 15:04:58
Last Modified By WEST\freeman

Message
1) Exception Information
===================
Exception Type: System.Data.SqlClient.SqlException
Errors: System.Data.SqlClient.SqlErrorCollection
Class: 16
LineNumber: 1
Number: 6602
Procedure: sp_xml_preparedocument
Server: .
State: 2
Source: .Net SqlClient Data Provider
ErrorCode: -2146232060
Message: The error description is 'Switch from current encoding to specified encoding not supported.'.
The XML parse error 0xc00ce56f occurred on line number 1, near the XML text "<?xml version="1.0" encoding="utf-16"?>".
Data: System.Collections.ListDictionaryInternal
TargetSite: Void OnError(System.Data.SqlClient.SqlException, Boolean)
HelpLink: NULL

StackTrace Information
===================
at System.Data.SqlClient.SqlConnection.OnError(SqlException exception, Boolean breakConnection)
at System.Data.SqlClient.TdsParser.ThrowExceptionAndWarning(TdsParserStateObject stateObj)
at System.Data.SqlClient.TdsParser.Run(RunBehavior runBehavior, SqlCommand cmdHandler, SqlDataReader dataStream, BulkCopySimpleResultSet bulkCopyHandler, TdsParserStateObject stateObj)
at System.Data.SqlClient.SqlCommand.FinishExecuteReader(SqlDataReader ds, RunBehavior runBehavior, String resetOptionsString)
at System.Data.SqlClient.SqlCommand.RunExecuteReaderTds(CommandBehavior cmdBehavior, RunBehavior runBehavior, Boolean returnStream, Boolean async)
at System.Data.SqlClient.SqlCommand.RunExecuteReader(CommandBehavior cmdBehavior, RunBehavior runBehavior, Boolean returnStream, String method, DbAsyncResult result)
at System.Data.SqlClient.SqlCommand.InternalExecuteNonQuery(DbAsyncResult result, String methodName, Boolean sendToPipe)
at System.Data.SqlClient.SqlCommand.ExecuteNonQuery()
at Microsoft.SqlServer.Management.SqlIMail.Server.DataAccess.DataAccessAdapter.PostResponse(Response r, Guid convHandle)
at Microsoft.SqlServer.Management.SqlIMail.IMailProcess.ThreadCallBack.PostResponseIfNeeded(MailInfo mi, Response r)
at Microsoft.SqlServer.Management.SqlIMail.IMailProcess.ThreadCallBack.MailOperation(Object o)

|||

Forgot Smile

After runnig DatabaseMail90.exe manual leters from DatabaseMail query will sent.

|||

Why this happndes, i don't now. But solution is found/

This hapend, couse you stored proc msdb.dbo.sp_sysmail_activate is older, and mismatches procedure xp_sysmail_activate in databe master.

Run this code to update the sp_sysmail_activate proc.

sp_sysmail_activate

USE [msdb]

GO

/****** Object: StoredProcedure [dbo].[sp_sysmail_activate] Script Date: 09/27/2007 15:46:33 ******/

SET ANSI_NULLS ON

GO

SET QUOTED_IDENTIFIER ON

GO

-- sp_sysmail_activate : Starts the DatabaseMail process if it isn't already running

--

ALTER PROCEDURE [dbo].[sp_sysmail_activate]

AS

BEGIN

DECLARE @.mailDbName sysname

DECLARE @.mailDbId INT

DECLARE @.mailEngineLifeMin INT

DECLARE @.loggingLevel nvarchar(256)

DECLARE @.loggingLevelInt int

DECLARE @.parameter_value nvarchar(256)

DECLARE @.localmessage nvarchar(max)

DECLARE @.readFromConfigFile INT

DECLARE @.rc INT

SET NOCOUNT ON

EXEC sp_executesql @.statement = N'RECEIVE TOP(0) * FROM msdb.dbo.ExternalMailQueue'

EXEC @.rc = msdb.dbo.sysmail_help_configure_value_sp @.parameter_name = N'DatabaseMailExeMinimumLifeTime',

@.parameter_value = @.parameter_value OUTPUT

IF(@.rc <> 0)

RETURN (1)

--ConvertToInt will return the default if @.parameter_value is null or config value can't be converted

--Setting max exe lifetime is 1 week (604800 secs). Can't see a reason for it to ever run longer that this

SET @.mailEngineLifeMin = dbo.ConvertToInt(@.parameter_value, 604800, 600)

EXEC msdb.dbo.sysmail_help_configure_value_sp @.parameter_name = N'ReadFromConfigurationFile',

@.parameter_value = @.parameter_value OUTPUT

--Try to read the optional read from configuration file:

SET @.readFromConfigFile = dbo.ConvertToInt(@.parameter_value, 1, 0)

--Try and get the optional logging level for the DatabaseMail process

EXEC msdb.dbo.sysmail_help_configure_value_sp @.parameter_name = N'LoggingLevel',

@.parameter_value = @.loggingLevel OUTPUT

--Convert logging level into string value for passing into XP

SET @.loggingLevelInt = dbo.ConvertToInt(@.loggingLevel, 3, 2)

IF @.loggingLevelInt = 1

SET @.loggingLevel = 'Normal'

ELSE IF @.loggingLevelInt = 3

SET @.loggingLevel = 'Verbose'

ELSE -- default

SET @.loggingLevel = 'Extended'

SET @.mailDbName = DB_NAME()

SET @.mailDbId = DB_ID()

EXEC @.rc = master..xp_sysmail_activate @.mailDbId, @.mailDbName, @.readFromConfigFile,

@.mailEngineLifeMin, @.loggingLevel

IF(@.rc <> 0)

BEGIN

SET @.localmessage = FORMATMESSAGE(14637)

exec msdb.dbo.sysmail_logmailevent_sp @.event_type=3, @.description=@.localmessage

END

ELSE

BEGIN

SET @.localmessage = FORMATMESSAGE(14638)

exec msdb.dbo.sysmail_logmailevent_sp @.event_type=0, @.description=@.localmessage

END

RETURN @.rc

END

|||

Also you must change this stored/procs:

msdb.dbo.sp_send_dbmail

msdb.dbo.sp_ExternalMailQueueListener

msdb.dbo.RunMailQuery

msdb.dbo.sysmail_verify_account_sp

msdb.dbo.sp_validate_user

Take it from worked server.

|||

I get this error too on standard edition SP2.

Has anyone reported this as a bug?

Activation Failure

We recently upgraded SQL Server 2005 to SP 2 and now cannot implement Database mail. The message given is "Activation Failure" in the log. I have looked at the stored procedure "sp_sysmail_activate" and there is apparently a failure due to an invalid parameter. Can someone provide some direction regarding how to proceed?

Thanks.

could u pse post back the exact error from error log

Madhu

|||

Date 5/30/2007 9:36:02 AM
Log Database Mail (Database Mail Log)

Log ID 516
Last Modified 5/30/2007 9:36:02 AM
Last Modified By sa

Message
Activation failure.

I hope this helps.

Thank you.

|||

We have also recently upgraded to sql 2005 sp2 and are experiencing the same error.

Log Database Mail (Database Mail Log)

Log ID 139
Last Modified 6/7/2007 12:50:06 PM
Last Modified By sa

Message
Activation failure.

Does anyone have any suggestions on what be causing this problem and potential solutions.

Thanks

|||

FYI - I was trying to make this work on SQL Server Express and was getting the same error message.

This might be because it's not supported, according to: http://msdn2.microsoft.com/en-us/library/ms165636.aspx

I don't know, but thought I would share.

Cheers,

-Richard

|||

DBMail is not supported on the Express edition. Let me know if you're receiving this error for a !Express edition.

Cheers,

Dan

|||Did you have any luck with your database mail issue. I'm experiencing the same thing.|||

Hi,

I'm also having this issue - See here for my problem:

http://forums.microsoft.com/TechNet/ShowPost.aspx?PostID=1890943&SiteID=17

Wonder if anyone has a solution ?

Cheers

|||

We just upgraded to SQL2005 SP2 and since database mail will not function here as well. Any solutions to this issue?

Database Mail Logs:

Date 8/3/2007 7:00:07 PM
Log Database Mail (Database Mail Log)

Log ID 1646
Last Modified 8/3/2007 7:00:07 PM
Last Modified By sa

Message
Activation failure.

EventVwr Logs:

Event Type: Information

Event Source: MSSQLSERVER

Event Category: (2)

Event ID: 9724

Date: 8/6/2007

Time: 8:00:06 AM

User: N/A

Computer: SERVERNAME

Description:

The activated proc [dbo].[sp_sysmail_activate] running on queue msdb.dbo.ExternalMailQueue output the following: 'Error executing extended stored procedure: Invalid Parameter'

|||same problem here, anyone any ideas please?
|||

Same to...

Additional information: after runnig DatabaseMail90.exe manualy, at DataBaseMailLog I have 2 errors:

Code Snippet

Date 21.09.2007 15:04:58
Log Database Mail (Database Mail Log)

Log ID 224
Last Modified 21.09.2007 15:04:58
Last Modified By WEST\freeman

Message
Invalid XML message format received on the ExternalMailQueue. conversation_handle: 408F6968-3268-DC11-8ADE-0015171170E8. message_type_name: {//www.microsoft.com/databasemail/messages}SendMailStatus. message body:
http://schemas.microsoft.com/databasemail/responses ResponseTypes.xsd" xmlns:responses="http://schemas.microsoft.com/databasemail/responses">

Code Snippet

Date 21.09.2007 15:04:58
Log Database Mail (Database Mail Log)

Log ID 225
Process ID 2032
Last Modified 21.09.2007 15:04:58
Last Modified By WEST\freeman

Message
1) Exception Information
===================
Exception Type: System.Data.SqlClient.SqlException
Errors: System.Data.SqlClient.SqlErrorCollection
Class: 16
LineNumber: 1
Number: 6602
Procedure: sp_xml_preparedocument
Server: .
State: 2
Source: .Net SqlClient Data Provider
ErrorCode: -2146232060
Message: The error description is 'Switch from current encoding to specified encoding not supported.'.
The XML parse error 0xc00ce56f occurred on line number 1, near the XML text "<?xml version="1.0" encoding="utf-16"?>".
Data: System.Collections.ListDictionaryInternal
TargetSite: Void OnError(System.Data.SqlClient.SqlException, Boolean)
HelpLink: NULL

StackTrace Information
===================
at System.Data.SqlClient.SqlConnection.OnError(SqlException exception, Boolean breakConnection)
at System.Data.SqlClient.TdsParser.ThrowExceptionAndWarning(TdsParserStateObject stateObj)
at System.Data.SqlClient.TdsParser.Run(RunBehavior runBehavior, SqlCommand cmdHandler, SqlDataReader dataStream, BulkCopySimpleResultSet bulkCopyHandler, TdsParserStateObject stateObj)
at System.Data.SqlClient.SqlCommand.FinishExecuteReader(SqlDataReader ds, RunBehavior runBehavior, String resetOptionsString)
at System.Data.SqlClient.SqlCommand.RunExecuteReaderTds(CommandBehavior cmdBehavior, RunBehavior runBehavior, Boolean returnStream, Boolean async)
at System.Data.SqlClient.SqlCommand.RunExecuteReader(CommandBehavior cmdBehavior, RunBehavior runBehavior, Boolean returnStream, String method, DbAsyncResult result)
at System.Data.SqlClient.SqlCommand.InternalExecuteNonQuery(DbAsyncResult result, String methodName, Boolean sendToPipe)
at System.Data.SqlClient.SqlCommand.ExecuteNonQuery()
at Microsoft.SqlServer.Management.SqlIMail.Server.DataAccess.DataAccessAdapter.PostResponse(Response r, Guid convHandle)
at Microsoft.SqlServer.Management.SqlIMail.IMailProcess.ThreadCallBack.PostResponseIfNeeded(MailInfo mi, Response r)
at Microsoft.SqlServer.Management.SqlIMail.IMailProcess.ThreadCallBack.MailOperation(Object o)

|||

Forgot Smile

After runnig DatabaseMail90.exe manual leters from DatabaseMail query will sent.

|||

Why this happndes, i don't now. But solution is found/

This hapend, couse you stored proc msdb.dbo.sp_sysmail_activate is older, and mismatches procedure xp_sysmail_activate in databe master.

Run this code to update the sp_sysmail_activate proc.

sp_sysmail_activate

USE [msdb]

GO

/****** Object: StoredProcedure [dbo].[sp_sysmail_activate] Script Date: 09/27/2007 15:46:33 ******/

SET ANSI_NULLS ON

GO

SET QUOTED_IDENTIFIER ON

GO

-- sp_sysmail_activate : Starts the DatabaseMail process if it isn't already running

--

ALTER PROCEDURE [dbo].[sp_sysmail_activate]

AS

BEGIN

DECLARE @.mailDbName sysname

DECLARE @.mailDbId INT

DECLARE @.mailEngineLifeMin INT

DECLARE @.loggingLevel nvarchar(256)

DECLARE @.loggingLevelInt int

DECLARE @.parameter_value nvarchar(256)

DECLARE @.localmessage nvarchar(max)

DECLARE @.readFromConfigFile INT

DECLARE @.rc INT

SET NOCOUNT ON

EXEC sp_executesql @.statement = N'RECEIVE TOP(0) * FROM msdb.dbo.ExternalMailQueue'

EXEC @.rc = msdb.dbo.sysmail_help_configure_value_sp @.parameter_name = N'DatabaseMailExeMinimumLifeTime',

@.parameter_value = @.parameter_value OUTPUT

IF(@.rc <> 0)

RETURN (1)

--ConvertToInt will return the default if @.parameter_value is null or config value can't be converted

--Setting max exe lifetime is 1 week (604800 secs). Can't see a reason for it to ever run longer that this

SET @.mailEngineLifeMin = dbo.ConvertToInt(@.parameter_value, 604800, 600)

EXEC msdb.dbo.sysmail_help_configure_value_sp @.parameter_name = N'ReadFromConfigurationFile',

@.parameter_value = @.parameter_value OUTPUT

--Try to read the optional read from configuration file:

SET @.readFromConfigFile = dbo.ConvertToInt(@.parameter_value, 1, 0)

--Try and get the optional logging level for the DatabaseMail process

EXEC msdb.dbo.sysmail_help_configure_value_sp @.parameter_name = N'LoggingLevel',

@.parameter_value = @.loggingLevel OUTPUT

--Convert logging level into string value for passing into XP

SET @.loggingLevelInt = dbo.ConvertToInt(@.loggingLevel, 3, 2)

IF @.loggingLevelInt = 1

SET @.loggingLevel = 'Normal'

ELSE IF @.loggingLevelInt = 3

SET @.loggingLevel = 'Verbose'

ELSE -- default

SET @.loggingLevel = 'Extended'

SET @.mailDbName = DB_NAME()

SET @.mailDbId = DB_ID()

EXEC @.rc = master..xp_sysmail_activate @.mailDbId, @.mailDbName, @.readFromConfigFile,

@.mailEngineLifeMin, @.loggingLevel

IF(@.rc <> 0)

BEGIN

SET @.localmessage = FORMATMESSAGE(14637)

exec msdb.dbo.sysmail_logmailevent_sp @.event_type=3, @.description=@.localmessage

END

ELSE

BEGIN

SET @.localmessage = FORMATMESSAGE(14638)

exec msdb.dbo.sysmail_logmailevent_sp @.event_type=0, @.description=@.localmessage

END

RETURN @.rc

END

|||

Also you must change this stored/procs:

msdb.dbo.sp_send_dbmail

msdb.dbo.sp_ExternalMailQueueListener

msdb.dbo.RunMailQuery

msdb.dbo.sysmail_verify_account_sp

msdb.dbo.sp_validate_user

Take it from worked server.

|||

I get this error too on standard edition SP2.

Has anyone reported this as a bug?

Activation Failure

We recently upgraded SQL Server 2005 to SP 2 and now cannot implement Database mail. The message given is "Activation Failure" in the log. I have looked at the stored procedure "sp_sysmail_activate" and there is apparently a failure due to an invalid parameter. Can someone provide some direction regarding how to proceed?

Thanks.

could u pse post back the exact error from error log

Madhu

|||

Date 5/30/2007 9:36:02 AM
Log Database Mail (Database Mail Log)

Log ID 516
Last Modified 5/30/2007 9:36:02 AM
Last Modified By sa

Message
Activation failure.

I hope this helps.

Thank you.

|||

We have also recently upgraded to sql 2005 sp2 and are experiencing the same error.

Log Database Mail (Database Mail Log)

Log ID 139
Last Modified 6/7/2007 12:50:06 PM
Last Modified By sa

Message
Activation failure.

Does anyone have any suggestions on what be causing this problem and potential solutions.

Thanks

|||

FYI - I was trying to make this work on SQL Server Express and was getting the same error message.

This might be because it's not supported, according to: http://msdn2.microsoft.com/en-us/library/ms165636.aspx

I don't know, but thought I would share.

Cheers,

-Richard

|||

DBMail is not supported on the Express edition. Let me know if you're receiving this error for a !Express edition.

Cheers,

Dan

|||Did you have any luck with your database mail issue. I'm experiencing the same thing.|||

Hi,

I'm also having this issue - See here for my problem:

http://forums.microsoft.com/TechNet/ShowPost.aspx?PostID=1890943&SiteID=17

Wonder if anyone has a solution ?

Cheers

|||

We just upgraded to SQL2005 SP2 and since database mail will not function here as well. Any solutions to this issue?

Database Mail Logs:

Date 8/3/2007 7:00:07 PM
Log Database Mail (Database Mail Log)

Log ID 1646
Last Modified 8/3/2007 7:00:07 PM
Last Modified By sa

Message
Activation failure.

EventVwr Logs:

Event Type: Information

Event Source: MSSQLSERVER

Event Category: (2)

Event ID: 9724

Date: 8/6/2007

Time: 8:00:06 AM

User: N/A

Computer: SERVERNAME

Description:

The activated proc [dbo].[sp_sysmail_activate] running on queue msdb.dbo.ExternalMailQueue output the following: 'Error executing extended stored procedure: Invalid Parameter'

|||same problem here, anyone any ideas please?
|||

Same to...

Additional information: after runnig DatabaseMail90.exe manualy, at DataBaseMailLog I have 2 errors:

Code Snippet

Date 21.09.2007 15:04:58
Log Database Mail (Database Mail Log)

Log ID 224
Last Modified 21.09.2007 15:04:58
Last Modified By WEST\freeman

Message
Invalid XML message format received on the ExternalMailQueue. conversation_handle: 408F6968-3268-DC11-8ADE-0015171170E8. message_type_name: {//www.microsoft.com/databasemail/messages}SendMailStatus. message body:
http://schemas.microsoft.com/databasemail/responses ResponseTypes.xsd" xmlns:responses="http://schemas.microsoft.com/databasemail/responses">

Code Snippet

Date 21.09.2007 15:04:58
Log Database Mail (Database Mail Log)

Log ID 225
Process ID 2032
Last Modified 21.09.2007 15:04:58
Last Modified By WEST\freeman

Message
1) Exception Information
===================
Exception Type: System.Data.SqlClient.SqlException
Errors: System.Data.SqlClient.SqlErrorCollection
Class: 16
LineNumber: 1
Number: 6602
Procedure: sp_xml_preparedocument
Server: .
State: 2
Source: .Net SqlClient Data Provider
ErrorCode: -2146232060
Message: The error description is 'Switch from current encoding to specified encoding not supported.'.
The XML parse error 0xc00ce56f occurred on line number 1, near the XML text "<?xml version="1.0" encoding="utf-16"?>".
Data: System.Collections.ListDictionaryInternal
TargetSite: Void OnError(System.Data.SqlClient.SqlException, Boolean)
HelpLink: NULL

StackTrace Information
===================
at System.Data.SqlClient.SqlConnection.OnError(SqlException exception, Boolean breakConnection)
at System.Data.SqlClient.TdsParser.ThrowExceptionAndWarning(TdsParserStateObject stateObj)
at System.Data.SqlClient.TdsParser.Run(RunBehavior runBehavior, SqlCommand cmdHandler, SqlDataReader dataStream, BulkCopySimpleResultSet bulkCopyHandler, TdsParserStateObject stateObj)
at System.Data.SqlClient.SqlCommand.FinishExecuteReader(SqlDataReader ds, RunBehavior runBehavior, String resetOptionsString)
at System.Data.SqlClient.SqlCommand.RunExecuteReaderTds(CommandBehavior cmdBehavior, RunBehavior runBehavior, Boolean returnStream, Boolean async)
at System.Data.SqlClient.SqlCommand.RunExecuteReader(CommandBehavior cmdBehavior, RunBehavior runBehavior, Boolean returnStream, String method, DbAsyncResult result)
at System.Data.SqlClient.SqlCommand.InternalExecuteNonQuery(DbAsyncResult result, String methodName, Boolean sendToPipe)
at System.Data.SqlClient.SqlCommand.ExecuteNonQuery()
at Microsoft.SqlServer.Management.SqlIMail.Server.DataAccess.DataAccessAdapter.PostResponse(Response r, Guid convHandle)
at Microsoft.SqlServer.Management.SqlIMail.IMailProcess.ThreadCallBack.PostResponseIfNeeded(MailInfo mi, Response r)
at Microsoft.SqlServer.Management.SqlIMail.IMailProcess.ThreadCallBack.MailOperation(Object o)

|||

Forgot Smile

After runnig DatabaseMail90.exe manual leters from DatabaseMail query will sent.

|||

Why this happndes, i don't now. But solution is found/

This hapend, couse you stored proc msdb.dbo.sp_sysmail_activate is older, and mismatches procedure xp_sysmail_activate in databe master.

Run this code to update the sp_sysmail_activate proc.

sp_sysmail_activate

USE [msdb]

GO

/****** Object: StoredProcedure [dbo].[sp_sysmail_activate] Script Date: 09/27/2007 15:46:33 ******/

SET ANSI_NULLS ON

GO

SET QUOTED_IDENTIFIER ON

GO

-- sp_sysmail_activate : Starts the DatabaseMail process if it isn't already running

--

ALTER PROCEDURE [dbo].[sp_sysmail_activate]

AS

BEGIN

DECLARE @.mailDbName sysname

DECLARE @.mailDbId INT

DECLARE @.mailEngineLifeMin INT

DECLARE @.loggingLevel nvarchar(256)

DECLARE @.loggingLevelInt int

DECLARE @.parameter_value nvarchar(256)

DECLARE @.localmessage nvarchar(max)

DECLARE @.readFromConfigFile INT

DECLARE @.rc INT

SET NOCOUNT ON

EXEC sp_executesql @.statement = N'RECEIVE TOP(0) * FROM msdb.dbo.ExternalMailQueue'

EXEC @.rc = msdb.dbo.sysmail_help_configure_value_sp @.parameter_name = N'DatabaseMailExeMinimumLifeTime',

@.parameter_value = @.parameter_value OUTPUT

IF(@.rc <> 0)

RETURN (1)

--ConvertToInt will return the default if @.parameter_value is null or config value can't be converted

--Setting max exe lifetime is 1 week (604800 secs). Can't see a reason for it to ever run longer that this

SET @.mailEngineLifeMin = dbo.ConvertToInt(@.parameter_value, 604800, 600)

EXEC msdb.dbo.sysmail_help_configure_value_sp @.parameter_name = N'ReadFromConfigurationFile',

@.parameter_value = @.parameter_value OUTPUT

--Try to read the optional read from configuration file:

SET @.readFromConfigFile = dbo.ConvertToInt(@.parameter_value, 1, 0)

--Try and get the optional logging level for the DatabaseMail process

EXEC msdb.dbo.sysmail_help_configure_value_sp @.parameter_name = N'LoggingLevel',

@.parameter_value = @.loggingLevel OUTPUT

--Convert logging level into string value for passing into XP

SET @.loggingLevelInt = dbo.ConvertToInt(@.loggingLevel, 3, 2)

IF @.loggingLevelInt = 1

SET @.loggingLevel = 'Normal'

ELSE IF @.loggingLevelInt = 3

SET @.loggingLevel = 'Verbose'

ELSE -- default

SET @.loggingLevel = 'Extended'

SET @.mailDbName = DB_NAME()

SET @.mailDbId = DB_ID()

EXEC @.rc = master..xp_sysmail_activate @.mailDbId, @.mailDbName, @.readFromConfigFile,

@.mailEngineLifeMin, @.loggingLevel

IF(@.rc <> 0)

BEGIN

SET @.localmessage = FORMATMESSAGE(14637)

exec msdb.dbo.sysmail_logmailevent_sp @.event_type=3, @.description=@.localmessage

END

ELSE

BEGIN

SET @.localmessage = FORMATMESSAGE(14638)

exec msdb.dbo.sysmail_logmailevent_sp @.event_type=0, @.description=@.localmessage

END

RETURN @.rc

END

|||

Also you must change this stored/procs:

msdb.dbo.sp_send_dbmail

msdb.dbo.sp_ExternalMailQueueListener

msdb.dbo.RunMailQuery

msdb.dbo.sysmail_verify_account_sp

msdb.dbo.sp_validate_user

Take it from worked server.

|||

I get this error too on standard edition SP2.

Has anyone reported this as a bug?

Activation Failure

We recently upgraded SQL Server 2005 to SP 2 and now cannot implement Database mail. The message given is "Activation Failure" in the log. I have looked at the stored procedure "sp_sysmail_activate" and there is apparently a failure due to an invalid parameter. Can someone provide some direction regarding how to proceed?

Thanks.

could u pse post back the exact error from error log

Madhu

|||

Date 5/30/2007 9:36:02 AM
Log Database Mail (Database Mail Log)

Log ID 516
Last Modified 5/30/2007 9:36:02 AM
Last Modified By sa

Message
Activation failure.

I hope this helps.

Thank you.

|||

We have also recently upgraded to sql 2005 sp2 and are experiencing the same error.

Log Database Mail (Database Mail Log)

Log ID 139
Last Modified 6/7/2007 12:50:06 PM
Last Modified By sa

Message
Activation failure.

Does anyone have any suggestions on what be causing this problem and potential solutions.

Thanks

|||

FYI - I was trying to make this work on SQL Server Express and was getting the same error message.

This might be because it's not supported, according to: http://msdn2.microsoft.com/en-us/library/ms165636.aspx

I don't know, but thought I would share.

Cheers,

-Richard

|||

DBMail is not supported on the Express edition. Let me know if you're receiving this error for a !Express edition.

Cheers,

Dan

|||Did you have any luck with your database mail issue. I'm experiencing the same thing.|||

Hi,

I'm also having this issue - See here for my problem:

http://forums.microsoft.com/TechNet/ShowPost.aspx?PostID=1890943&SiteID=17

Wonder if anyone has a solution ?

Cheers

|||

We just upgraded to SQL2005 SP2 and since database mail will not function here as well. Any solutions to this issue?

Database Mail Logs:

Date 8/3/2007 7:00:07 PM
Log Database Mail (Database Mail Log)

Log ID 1646
Last Modified 8/3/2007 7:00:07 PM
Last Modified By sa

Message
Activation failure.

EventVwr Logs:

Event Type: Information

Event Source: MSSQLSERVER

Event Category: (2)

Event ID: 9724

Date: 8/6/2007

Time: 8:00:06 AM

User: N/A

Computer: SERVERNAME

Description:

The activated proc [dbo].[sp_sysmail_activate] running on queue msdb.dbo.ExternalMailQueue output the following: 'Error executing extended stored procedure: Invalid Parameter'

|||same problem here, anyone any ideas please?
|||

Same to...

Additional information: after runnig DatabaseMail90.exe manualy, at DataBaseMailLog I have 2 errors:

Code Snippet

Date 21.09.2007 15:04:58
Log Database Mail (Database Mail Log)

Log ID 224
Last Modified 21.09.2007 15:04:58
Last Modified By WEST\freeman

Message
Invalid XML message format received on the ExternalMailQueue. conversation_handle: 408F6968-3268-DC11-8ADE-0015171170E8. message_type_name: {//www.microsoft.com/databasemail/messages}SendMailStatus. message body:
http://schemas.microsoft.com/databasemail/responses ResponseTypes.xsd" xmlns:responses="http://schemas.microsoft.com/databasemail/responses">

Code Snippet

Date 21.09.2007 15:04:58
Log Database Mail (Database Mail Log)

Log ID 225
Process ID 2032
Last Modified 21.09.2007 15:04:58
Last Modified By WEST\freeman

Message
1) Exception Information
===================
Exception Type: System.Data.SqlClient.SqlException
Errors: System.Data.SqlClient.SqlErrorCollection
Class: 16
LineNumber: 1
Number: 6602
Procedure: sp_xml_preparedocument
Server: .
State: 2
Source: .Net SqlClient Data Provider
ErrorCode: -2146232060
Message: The error description is 'Switch from current encoding to specified encoding not supported.'.
The XML parse error 0xc00ce56f occurred on line number 1, near the XML text "<?xml version="1.0" encoding="utf-16"?>".
Data: System.Collections.ListDictionaryInternal
TargetSite: Void OnError(System.Data.SqlClient.SqlException, Boolean)
HelpLink: NULL

StackTrace Information
===================
at System.Data.SqlClient.SqlConnection.OnError(SqlException exception, Boolean breakConnection)
at System.Data.SqlClient.TdsParser.ThrowExceptionAndWarning(TdsParserStateObject stateObj)
at System.Data.SqlClient.TdsParser.Run(RunBehavior runBehavior, SqlCommand cmdHandler, SqlDataReader dataStream, BulkCopySimpleResultSet bulkCopyHandler, TdsParserStateObject stateObj)
at System.Data.SqlClient.SqlCommand.FinishExecuteReader(SqlDataReader ds, RunBehavior runBehavior, String resetOptionsString)
at System.Data.SqlClient.SqlCommand.RunExecuteReaderTds(CommandBehavior cmdBehavior, RunBehavior runBehavior, Boolean returnStream, Boolean async)
at System.Data.SqlClient.SqlCommand.RunExecuteReader(CommandBehavior cmdBehavior, RunBehavior runBehavior, Boolean returnStream, String method, DbAsyncResult result)
at System.Data.SqlClient.SqlCommand.InternalExecuteNonQuery(DbAsyncResult result, String methodName, Boolean sendToPipe)
at System.Data.SqlClient.SqlCommand.ExecuteNonQuery()
at Microsoft.SqlServer.Management.SqlIMail.Server.DataAccess.DataAccessAdapter.PostResponse(Response r, Guid convHandle)
at Microsoft.SqlServer.Management.SqlIMail.IMailProcess.ThreadCallBack.PostResponseIfNeeded(MailInfo mi, Response r)
at Microsoft.SqlServer.Management.SqlIMail.IMailProcess.ThreadCallBack.MailOperation(Object o)

|||

Forgot Smile

After runnig DatabaseMail90.exe manual leters from DatabaseMail query will sent.

Thursday, March 8, 2012

ACT7 instance of Microsoft SQL server 2000

Alright; here is my problem. I recently bought ACT 2006 and tried to install. I had no such luck. I keep getting an error message that says need to unistall an ACT7 instance of Microsoft SQL server 2000. Now, I looked at downloading a service pack for the server, but I don't know what server I have. I would guess the 2000 edition. I am running Windows XP office edition and it is on a fairly new laptop. Can anybody help me. If I knew what server I have I could get the updates for it and from what I have read on other forums, that should fix the problem.Hi tyler9953 and welcome to TSDN,

If you go start -> control panel and select add / remove programs, you should find Microsoft SQL server in the list, you sould be able to discern which version you have installed.

If you want to install a service pack for server 2000, you can get service pack 4 here.

Hope this helps

Kind Regards

Purple

Tuesday, March 6, 2012

ack message not picked up by stored procs

Hi

I setup a message between 2 database on a local instance. The message is send to the target and the target did send a reply. However, the reply is not picked up by the initiator. I did a try but there was nothing telling me why it did not pick up the reply. there is nothing in the textdata of the brokerclassify event. I query the queue on the initiator, the message is there, but the stored proc attached to the queue is not doing anything it seems. What else can I check here,

thanks

P

If you're positive the reply is in the initiator's queue but activation does not kick in, I'd look at the following:
- activation is not turned on. Check the is_activation_enabled column of sys.service_queues. If is 0, ALTER QUEUE <queueName> WITH ACTIVATION (STATUS = ON);
- the procedure has a bug and it runs, but has no effects. Check in Profiler if the Broker:Activation (Strat/Stop) events are being traced.

HTH,
~ Remus

Acess Denied SQL Server doesnot Exist

Hi I recently installed a copy of SQL Server 2000 and was unable to connect
as my SQL server gives me the message "Acess Denied SQL Server doesnot
Exist". I did use all the trouble shooting help but couldnot rectify it. The
probelm seems to be with my logon. I am starting it with a single user mode.
It listens to TCP/IP, shared memory and named pipes. Even I have allowed the
1433 port on the firewall. But the error message it gives is Error: 15457,
Severity: 0, State: 1. Could someone please help?Where are you seeing the error and what is the message?
Error 15457 in SQL Server wouldn't have anything to do with
it and would actually indicate the someone is connecting.
What tool are you using to connect?
How are you starting in single user mode and is there any
reason why you need to do this?
What login are you using?
Can you ping the server?
Can you log onto the server and connect with one of the
tools - Query Analyzer, Enterprise Manager.
-Sue
On Tue, 28 Jun 2005 16:43:03 -0700, "Shiv"
<Shiv@.discussions.microsoft.com> wrote:

>Hi I recently installed a copy of SQL Server 2000 and was unable to connect
>as my SQL server gives me the message "Acess Denied SQL Server doesnot
>Exist". I did use all the trouble shooting help but couldnot rectify it. Th
e
>probelm seems to be with my logon. I am starting it with a single user mode
.
>It listens to TCP/IP, shared memory and named pipes. Even I have allowed th
e
>1433 port on the firewall. But the error message it gives is Error: 15457,
>Severity: 0, State: 1. Could someone please help?|||Hi! I am getting the error logon message with the comments "Acess Denied SQL
Server doesnot Exist". I am trying to connect through the service manager. I
have installed the evaluation version of SQL server on an XP professional
edition with both clients and server on the same machine. But it is not
connecting to the server. I have already pinged the server and it is
returning me the port numbers and ip addresses. I cannot connect to any of
the services. Does SQL server not runs on an XP professional edition?
"Sue Hoegemeier" wrote:

> Where are you seeing the error and what is the message?
> Error 15457 in SQL Server wouldn't have anything to do with
> it and would actually indicate the someone is connecting.
> What tool are you using to connect?
> How are you starting in single user mode and is there any
> reason why you need to do this?
> What login are you using?
> Can you ping the server?
> Can you log onto the server and connect with one of the
> tools - Query Analyzer, Enterprise Manager.
> -Sue
> On Tue, 28 Jun 2005 16:43:03 -0700, "Shiv"
> <Shiv@.discussions.microsoft.com> wrote:
>
>|||Hi,
Go to Control Panel -> Administrative Tools -> Services and make sure the
Sql Server service is running. This is one of the many possibilities that
might have happened.
"Shiv" wrote:
[vbcol=seagreen]
> Hi! I am getting the error logon message with the comments "Acess Denied S
QL
> Server doesnot Exist". I am trying to connect through the service manager.
I
> have installed the evaluation version of SQL server on an XP professional
> edition with both clients and server on the same machine. But it is not
> connecting to the server. I have already pinged the server and it is
> returning me the port numbers and ip addresses. I cannot connect to any of
> the services. Does SQL server not runs on an XP professional edition?
> "Sue Hoegemeier" wrote:
>

Acess Denied SQL Server doesnot Exist

Hi I recently installed a copy of SQL Server 2000 and was unable to connect
as my SQL server gives me the message "Acess Denied SQL Server doesnot
Exist". I did use all the trouble shooting help but couldnot rectify it. The
probelm seems to be with my logon. I am starting it with a single user mode.
It listens to TCP/IP, shared memory and named pipes. Even I have allowed the
1433 port on the firewall. But the error message it gives is Error: 15457,
Severity: 0, State: 1. Could someone please help?
Where are you seeing the error and what is the message?
Error 15457 in SQL Server wouldn't have anything to do with
it and would actually indicate the someone is connecting.
What tool are you using to connect?
How are you starting in single user mode and is there any
reason why you need to do this?
What login are you using?
Can you ping the server?
Can you log onto the server and connect with one of the
tools - Query Analyzer, Enterprise Manager.
-Sue
On Tue, 28 Jun 2005 16:43:03 -0700, "Shiv"
<Shiv@.discussions.microsoft.com> wrote:

>Hi I recently installed a copy of SQL Server 2000 and was unable to connect
>as my SQL server gives me the message "Acess Denied SQL Server doesnot
>Exist". I did use all the trouble shooting help but couldnot rectify it. The
>probelm seems to be with my logon. I am starting it with a single user mode.
>It listens to TCP/IP, shared memory and named pipes. Even I have allowed the
>1433 port on the firewall. But the error message it gives is Error: 15457,
>Severity: 0, State: 1. Could someone please help?
|||Hi! I am getting the error logon message with the comments "Acess Denied SQL
Server doesnot Exist". I am trying to connect through the service manager. I
have installed the evaluation version of SQL server on an XP professional
edition with both clients and server on the same machine. But it is not
connecting to the server. I have already pinged the server and it is
returning me the port numbers and ip addresses. I cannot connect to any of
the services. Does SQL server not runs on an XP professional edition?
"Sue Hoegemeier" wrote:

> Where are you seeing the error and what is the message?
> Error 15457 in SQL Server wouldn't have anything to do with
> it and would actually indicate the someone is connecting.
> What tool are you using to connect?
> How are you starting in single user mode and is there any
> reason why you need to do this?
> What login are you using?
> Can you ping the server?
> Can you log onto the server and connect with one of the
> tools - Query Analyzer, Enterprise Manager.
> -Sue
> On Tue, 28 Jun 2005 16:43:03 -0700, "Shiv"
> <Shiv@.discussions.microsoft.com> wrote:
>
>
|||Hi,
Go to Control Panel -> Administrative Tools -> Services and make sure the
Sql Server service is running. This is one of the many possibilities that
might have happened.
"Shiv" wrote:
[vbcol=seagreen]
> Hi! I am getting the error logon message with the comments "Acess Denied SQL
> Server doesnot Exist". I am trying to connect through the service manager. I
> have installed the evaluation version of SQL server on an XP professional
> edition with both clients and server on the same machine. But it is not
> connecting to the server. I have already pinged the server and it is
> returning me the port numbers and ip addresses. I cannot connect to any of
> the services. Does SQL server not runs on an XP professional edition?
> "Sue Hoegemeier" wrote:

Thursday, February 16, 2012

accessing SQL Server behind a firewall

I am trying to get to an instance of SQL Server behind a
firewall via port 1450, but I get an error message : "Not
associated with a trusted SQL Server Connection". Do I
need to use a different port? Somehow register port 1450?
Port 1433 is being used for a SQL Server instance on
another machine.
sounds like you're trying to use windows authentication and it can't get
through the firewall.
jjjjj wrote:
> I am trying to get to an instance of SQL Server behind a
> firewall via port 1450, but I get an error message : "Not
> associated with a trusted SQL Server Connection". Do I
> need to use a different port? Somehow register port 1450?
> Port 1433 is being used for a SQL Server instance on
> another machine.
|||No, I'm using SQL Server authentication. I can get to the
default database fine. There seems to be an issue with
using port 1450.
>--Original Message--
>sounds like you're trying to use windows authentication
and it can't get[vbcol=seagreen]
>through the firewall.
>
>jjjjj wrote:
message : "Not[vbcol=seagreen]
1450?
>.
>
|||Is it a named or default instance? Use Server Network Utility to check port numbers.
Tibor Karaszi, SQL Server MVP
http://www.karaszi.com/sqlserver/default.asp
http://www.solidqualitylearning.com/
"jjjjj" <anonymous@.discussions.microsoft.com> wrote in message
news:4a0301c4a186$995460f0$a501280a@.phx.gbl...
>I am trying to get to an instance of SQL Server behind a
> firewall via port 1450, but I get an error message : "Not
> associated with a trusted SQL Server Connection". Do I
> need to use a different port? Somehow register port 1450?
> Port 1433 is being used for a SQL Server instance on
> another machine.
|||It is a default instance on the machine but not the
firewall default instance.
>--Original Message--
>Is it a named or default instance? Use Server Network
Utility to check port numbers.
>--
>Tibor Karaszi, SQL Server MVP
>http://www.karaszi.com/sqlserver/default.asp
>http://www.solidqualitylearning.com/
>
>"jjjjj" <anonymous@.discussions.microsoft.com> wrote in
message[vbcol=seagreen]
>news:4a0301c4a186$995460f0$a501280a@.phx.gbl...
message : "Not[vbcol=seagreen]
1450?
>
>.
>
|||Hi
It should not make an difference if there is another instance on another
server.
Ports are opened with a IP address:Port combination. You can have a 1000 SQL
servers, all using the same port number, as long as each server has a
different IP address.
Regards
Mike
"jjjjj" wrote:

> I am trying to get to an instance of SQL Server behind a
> firewall via port 1450, but I get an error message : "Not
> associated with a trusted SQL Server Connection". Do I
> need to use a different port? Somehow register port 1450?
> Port 1433 is being used for a SQL Server instance on
> another machine.
>
|||> It is a default instance on the machine but not the
> firewall default instance.
I'm sorry, but I didn't get that. What is a "firewall default instance"?
I think Mike's post gives you the information you need. Find out what port number your SQL server
uses (again, use Server Network Utility). Then open in the firewall for that IP Address and port
number combination.
Tibor Karaszi, SQL Server MVP
http://www.karaszi.com/sqlserver/default.asp
http://www.solidqualitylearning.com/
"jjjjj" <anonymous@.discussions.microsoft.com> wrote in message
news:19da01c4a18e$a365eb10$a401280a@.phx.gbl...[vbcol=seagreen]
> It is a default instance on the machine but not the
> firewall default instance.
> Utility to check port numbers.
> message
> message : "Not
> 1450?

accessing SQL Server behind a firewall

I am trying to get to an instance of SQL Server behind a
firewall via port 1450, but I get an error message : "Not
associated with a trusted SQL Server Connection". Do I
need to use a different port? Somehow register port 1450?
Port 1433 is being used for a SQL Server instance on
another machine.sounds like you're trying to use windows authentication and it can't get
through the firewall.
jjjjj wrote:
> I am trying to get to an instance of SQL Server behind a
> firewall via port 1450, but I get an error message : "Not
> associated with a trusted SQL Server Connection". Do I
> need to use a different port? Somehow register port 1450?
> Port 1433 is being used for a SQL Server instance on
> another machine.|||No, I'm using SQL Server authentication. I can get to the
default database fine. There seems to be an issue with
using port 1450.
>--Original Message--
>sounds like you're trying to use windows authentication
and it can't get
>through the firewall.
>
>jjjjj wrote:
>> I am trying to get to an instance of SQL Server behind a
>> firewall via port 1450, but I get an error
message : "Not
>> associated with a trusted SQL Server Connection". Do I
>> need to use a different port? Somehow register port
1450?
>> Port 1433 is being used for a SQL Server instance on
>> another machine.
>.
>|||Is it a named or default instance? Use Server Network Utility to check port numbers.
--
Tibor Karaszi, SQL Server MVP
http://www.karaszi.com/sqlserver/default.asp
http://www.solidqualitylearning.com/
"jjjjj" <anonymous@.discussions.microsoft.com> wrote in message
news:4a0301c4a186$995460f0$a501280a@.phx.gbl...
>I am trying to get to an instance of SQL Server behind a
> firewall via port 1450, but I get an error message : "Not
> associated with a trusted SQL Server Connection". Do I
> need to use a different port? Somehow register port 1450?
> Port 1433 is being used for a SQL Server instance on
> another machine.|||It is a default instance on the machine but not the
firewall default instance.
>--Original Message--
>Is it a named or default instance? Use Server Network
Utility to check port numbers.
>--
>Tibor Karaszi, SQL Server MVP
>http://www.karaszi.com/sqlserver/default.asp
>http://www.solidqualitylearning.com/
>
>"jjjjj" <anonymous@.discussions.microsoft.com> wrote in
message
>news:4a0301c4a186$995460f0$a501280a@.phx.gbl...
>>I am trying to get to an instance of SQL Server behind a
>> firewall via port 1450, but I get an error
message : "Not
>> associated with a trusted SQL Server Connection". Do I
>> need to use a different port? Somehow register port
1450?
>> Port 1433 is being used for a SQL Server instance on
>> another machine.
>
>.
>|||Hi
It should not make an difference if there is another instance on another
server.
Ports are opened with a IP address:Port combination. You can have a 1000 SQL
servers, all using the same port number, as long as each server has a
different IP address.
Regards
Mike
"jjjjj" wrote:
> I am trying to get to an instance of SQL Server behind a
> firewall via port 1450, but I get an error message : "Not
> associated with a trusted SQL Server Connection". Do I
> need to use a different port? Somehow register port 1450?
> Port 1433 is being used for a SQL Server instance on
> another machine.
>|||> It is a default instance on the machine but not the
> firewall default instance.
I'm sorry, but I didn't get that. What is a "firewall default instance"?
I think Mike's post gives you the information you need. Find out what port number your SQL server
uses (again, use Server Network Utility). Then open in the firewall for that IP Address and port
number combination.
--
Tibor Karaszi, SQL Server MVP
http://www.karaszi.com/sqlserver/default.asp
http://www.solidqualitylearning.com/
"jjjjj" <anonymous@.discussions.microsoft.com> wrote in message
news:19da01c4a18e$a365eb10$a401280a@.phx.gbl...
> It is a default instance on the machine but not the
> firewall default instance.
> >--Original Message--
> >Is it a named or default instance? Use Server Network
> Utility to check port numbers.
> >
> >--
> >Tibor Karaszi, SQL Server MVP
> >http://www.karaszi.com/sqlserver/default.asp
> >http://www.solidqualitylearning.com/
> >
> >
> >"jjjjj" <anonymous@.discussions.microsoft.com> wrote in
> message
> >news:4a0301c4a186$995460f0$a501280a@.phx.gbl...
> >>I am trying to get to an instance of SQL Server behind a
> >> firewall via port 1450, but I get an error
> message : "Not
> >> associated with a trusted SQL Server Connection". Do I
> >> need to use a different port? Somehow register port
> 1450?
> >> Port 1433 is being used for a SQL Server instance on
> >> another machine.
> >
> >
> >.
> >

Thursday, February 9, 2012

accessing msde from another terminal

Need Help!!!
I am accessing MSDE from another terminal running another
service of MSDE. Error message: Access Denied
How can I do this
That not much information, could you post the whole message it displays ?
Acces mean, that you either entered the wrong username or the wrong
associatet password.
HTH, Jens Suessmeyer.
http://www.sqlserver2005.de
"jesst" <anonymous@.discussions.microsoft.com> schrieb im Newsbeitrag
news:0d4401c54cab$8f836a00$a401280a@.phx.gbl...
> Need Help!!!
> I am accessing MSDE from another terminal running another
> service of MSDE. Error message: Access Denied
> How can I do this