- Remove From My Forums
-
Question
-
I got an error message in backup job shown as below,
———————————————————————————————————————
Message
Executed as user: pxuser1. TESTDB: SQL Backup Failure: _DBA: Backup User Databases job failed. [SQLSTATE 42000] (Error 50000)———————————————————————————————————————
with the same time backup job error occured, I refered to related error message in SQL Server log,
———————————————————————————————————————
Date 5/26/2012 1:40:14 PM
Log SQL Server (Archive #4 — 5/27/2012 12:00:00 AM)Source spid56
Message
Error: 50000, Severity: 16, State: 1.———————————————————————————————————————
I tried to found the error info about ‘Error: 50000, Severity: 16, State: 1.’, but no related info found.
please help me, thanks.
Answers
-
Error 50000 is a user-defined error. Check your backup script to see if contains a RAISERROR statement like:
RAISERROR('',16,1) WITH LOG;
Dan Guzman, SQL Server MVP, http://weblogs.sqlteam.com/dang/
-
Proposed as answer by
Wednesday, May 30, 2012 3:55 AM
-
Marked as answer by
Maggie Luo
Wednesday, June 6, 2012 9:29 AM
-
Proposed as answer by
Permalink
Cannot retrieve contributors at this time
| title | description | ms.custom | ms.date | ms.service | ms.reviewer | ms.subservice | ms.topic | helpviewer_keywords | ms.assetid | author | ms.author | monikerRange |
|---|---|---|---|---|---|---|---|---|---|---|---|---|
|
MSSQLSERVER_50000 | Microsoft Docs |
An error from an attempt was made to install or update SQL Server Native Client. See an explanation of the error and possible resolutions. |
04/04/2017 |
sql |
supportability |
reference |
50000 [SQL Server Native Client setup error] |
5426d87a-d5d9-4984-b211-b07d69e834a2 |
MashaMSFT |
mathoma |
>=aps-pdw-2016||=azuresqldb-current||=azure-sqldw-latest||>=sql-server-2016||>=sql-server-linux-2017||=azuresqldb-mi-current |
Error MSSQLSERVER_50000 in SQL Server Native Client
[!INCLUDESQL Server Azure SQL Database Synapse Analytics PDW ]
Details
| Attribute | Value |
|---|---|
| Product Name | SQL Server |
| Product Version | 11.0 |
| Event ID | 50000 |
| Event Source | SETUP |
| Component | [!INCLUDEssNoVersion] Native Client |
| Symbolic Name | |
| Message Text | A network error occurred while attempting to read from the file ‘%.*ls’. |
Explanation
An attempt was made to install (or update) [!INCLUDEssNoVersion] Native Client on a computer where [!INCLUDEssNoVersion] Native Client is already installed, and where the existing installation was from an MSI file that was renamed from sqlncli.msi.
User Action
To resolve this error, uninstall the existing version of [!INCLUDEssNoVersion] Native Client. To prevent this error, do not install [!INCLUDEssNoVersion] Native Client from an MSI file that is not named sqlncli.msi.
Internal-Only
I notice when this error is triggered within the stored procedure it returns 50,000. Is there a way to modify this to say 50,999 so the front-end app can specifically pick the error up and not confuse it with anything else.
RAISERROR('Client already has an Active Visit!',16,1)
asked Jul 25, 2018 at 10:52
As per the documentation of RAISERROR (Transact-SQL):
The message is returned as a server error message to the calling
application or to an associatedCATCHblock of aTRY…CATCHconstruct.
New applications should useTHROWinstead.
Emphasis mine. (THROW (Transact-SQL))
I don’t know what your SQL statement looks like, but, instead you can therefore do something like:
BEGIN TRY
--Your INSERT statement
SELECT 0/0; --Causes an error
END TRY
BEGIN CATCH
THROW 50099, 'Client already has an Active Visit!',1;
END CATCH
answered Jul 25, 2018 at 11:01
LarnuLarnu
84.3k10 gold badges38 silver badges72 bronze badges
0
With RAISEERROR, if you use message as the first parameter then you can’t specify an error ID and it is implicitly 50000. However, you can create a custom message with parameters and pass your code there. ie:
RAISERROR('Client already has an Active Visit! - Specific Err.Number:[%d]',16,1, 50999)
Also TryCatch is the suggested method for new applications.
answered Jul 25, 2018 at 11:06
Cetin BasozCetin Basoz
21k2 gold badges28 silver badges38 bronze badges
You need to specify the first parameter of the raiseerror function, like so:
--configure the error message
sp_addmessage @msgnum = 50999,
@severity = 16,
@msgtext = N'Client %s already has an Active Visit!';
GO
-- throw error
RAISERROR (50999, -- Message id.
16, -- Severity,
1, -- State,
N'123456789'); -- First argument supplies the string.
GO
Output will be
Msg 50999, Level 16, State 1, Line 8
Client 123456789 already has an Active Visit!
If you don’t specify the error number, the raiserror will be assumed to be 50000. Documentation here…
answered Jul 25, 2018 at 11:05
bastos.sergiobastos.sergio
6,6344 gold badges26 silver badges36 bronze badges
1
Содержание
- Sql server 2008 r2 error 50000
- Вопрос
- Sql server 2008 r2 error 50000
- Answered by:
- Question
- Sql server 2008 r2 error 50000
- Answered by:
- Question
- SQL Error 50000 — Best method to fix
- Nature of SQL Error 50000
- [Need urgent help with SQL errors resolution? We are here for you . ]
- Conclusion
- Sql server 2008 r2 error 50000
- Вопрос
- Ответы
- Все ответы
Sql server 2008 r2 error 50000

Вопрос


We have a SQL 2008 R2 64-bit server that was housing many databases for multiple applications all under the same instance (bad practice I know). We’ve had some application upgrades where their SQL data was put on new instances of SQL on other (and updated) SQL servers. Therefore a lot of the databases on this old SQL server were just wasting space.
After doing a massive cleanup of dropping many databases on this SQL server, and their users, and any maintenance plans associated with those databases, we are receiving hundreds of errors a minute.
So much so that I had to remove our EventSentry monitoring application from this server so we would stop getting these errors emailed to us. The error shows up in Application Event log as Event 17063 Source: MSSQLSERVER. It just states Error: 50000 Severity: 16 State: 1.
The errors are eating 2GB of disk space a day in C:Program FilesMicrosoft SQL ServerMSSQL10_50.MSSQLSERVERMSSQLLogERRORLOG
I’ve logged into SQL Server Management Studio and I’ve expanded every single element in management studio down the left hand side and I see no remaining artifacts from the old databases we have dropped (and since copied off the server onto my workstation).
If I go into the Current SQL server logs I see these same Error: 50000, Severity: 16, State: 1 errors from source spid53. Before each of these is another line that states:
Log Viewer could not read information for this log entry. Cause: Data is Null. This method or property cannot be called on Null values.. Content:
I greatly appreciate any assistance you can provide! Existing applications on this SQL server do not seem to be affected. I already tried rebooting SQL server (its on Windows Server 2008 R2) and that did not correct this bug.
Источник
Sql server 2008 r2 error 50000
This forum has migrated to Microsoft Q&A. Visit Microsoft Q&A to post new questions.
Answered by:

Question


We have a SQL 2008 R2 64-bit server that was housing many databases for multiple applications all under the same instance (bad practice I know). We’ve had some application upgrades where their SQL data was put on new instances of SQL on other (and updated) SQL servers. Therefore a lot of the databases on this old SQL server were just wasting space.
After doing a massive cleanup of dropping many databases on this SQL server, and their users, and any maintenance plans associated with those databases, we are receiving hundreds of errors a minute.
So much so that I had to remove our EventSentry monitoring application from this server so we would stop getting these errors emailed to us. The error shows up in Application Event log as Event 17063 Source: MSSQLSERVER. It just states Error: 50000 Severity: 16 State: 1.
The errors are eating 2GB of disk space a day in C:Program FilesMicrosoft SQL ServerMSSQL10_50.MSSQLSERVERMSSQLLogERRORLOG
I’ve logged into SQL Server Management Studio and I’ve expanded every single element in management studio down the left hand side and I see no remaining artifacts from the old databases we have dropped (and since copied off the server onto my workstation).
If I go into the Current SQL server logs I see these same Error: 50000, Severity: 16, State: 1 errors from source spid53. Before each of these is another line that states:
Log Viewer could not read information for this log entry. Cause: Data is Null. This method or property cannot be called on Null values.. Content:
I greatly appreciate any assistance you can provide! Existing applications on this SQL server do not seem to be affected. I already tried rebooting SQL server (its on Windows Server 2008 R2) and that did not correct this bug.
Источник
Sql server 2008 r2 error 50000
This forum has migrated to Microsoft Q&A. Visit Microsoft Q&A to post new questions.
Answered by:

Question


We have a SQL 2008 R2 64-bit server that was housing many databases for multiple applications all under the same instance (bad practice I know). We’ve had some application upgrades where their SQL data was put on new instances of SQL on other (and updated) SQL servers. Therefore a lot of the databases on this old SQL server were just wasting space.
After doing a massive cleanup of dropping many databases on this SQL server, and their users, and any maintenance plans associated with those databases, we are receiving hundreds of errors a minute.
So much so that I had to remove our EventSentry monitoring application from this server so we would stop getting these errors emailed to us. The error shows up in Application Event log as Event 17063 Source: MSSQLSERVER. It just states Error: 50000 Severity: 16 State: 1.
The errors are eating 2GB of disk space a day in C:Program FilesMicrosoft SQL ServerMSSQL10_50.MSSQLSERVERMSSQLLogERRORLOG
I’ve logged into SQL Server Management Studio and I’ve expanded every single element in management studio down the left hand side and I see no remaining artifacts from the old databases we have dropped (and since copied off the server onto my workstation).
If I go into the Current SQL server logs I see these same Error: 50000, Severity: 16, State: 1 errors from source spid53. Before each of these is another line that states:
Log Viewer could not read information for this log entry. Cause: Data is Null. This method or property cannot be called on Null values.. Content:
I greatly appreciate any assistance you can provide! Existing applications on this SQL server do not seem to be affected. I already tried rebooting SQL server (its on Windows Server 2008 R2) and that did not correct this bug.
Источник
SQL Error 50000 — Best method to fix

This guide is for you.
To access data in a SQL Server database we can use SQL Server Native Client.
However, we need to consider several factors while deciding whether to use SQL Server Native client or some other data access technology.
Here at Ibmi Media , as part of our Server Management Services , we regularly help our Customers to perform related SQL queries.
In this context, we shall look into how to resolve SQL error 50000.
Nature of SQL Error 50000
While installing SQL Server Management Studio on one of the client machines we came across the error:
The causes of this can be the following:
1. Generally, we get the error while installing or updating native client software or a software component that uses SQL Server Native Client and the target machine already has this installed previously using some MSI file.
2. In addition, if SQL Server native client file sqlncli.msi is renamed after its installation when we try to update, we will end up with the error.
In order to solve this, we need to uninstall the installed version of the SQL Server native client from add/remove the program.
Then we can try to install SQL Server or its component again.
Since we perform the above step we will not get any error and our software or native client will be installed.
To avoid further issues, we can reboot the machine post uninstalling the native client tool.
If we install only SQL Server native client and not SQL Server then we can download it from the Microsoft website and then reinstall it again.
To prevent this error from happening again we can make sure to not install it using its MSI file sqlncli.msi.
If we had installed it using this file, make sure to never rename it as well.
[Need urgent help with SQL errors resolution? We are here for you . ]
Conclusion
This article covers method to fix SQL Error 50000.
This SQL error happens in the process of installing SQL Server Management Studio on one of the client machines.
If you receive SQL Server 50000 error on a SQL Agent Job, you need to Quit the job reporting failure.
To fix this SQL error, you can try the following queries:
1. Enable the SQL Broker on the Site database:
2. SET the Site Database as trustworthy:
USE master;
3. SET the Database to honor the HONOR_BROKER_PRIORITY:
Источник
Sql server 2008 r2 error 50000

Вопрос


I am new to SQLSERVER and one of the Log Backups didnt work got bellow, at the begining thought something to do with the (Error 50000)—is General inter-process communication (IPC) error.
Log Job History: (
FirstBU: «LOG» Backups)
Step ID 1
Job Name FirstBU: «LOG» Backups
Step Name LOG backups for all USER DBs
Duration 00:00:00
Sql Severity 16
Sql Message ID 50000
Operator Emailed
Operator Net sent
Operator Paged
Retries Attempted 0
Message
[SQLSTATE 01000] (Message 0) , [SQLSTATE 01000] (Message 0) Version 1.02 [SQLSTATE 01000] (Message 0) ===============================================================================
[SQLSTATE 01000] (Message 0) Error creating log file [SQLSTATE 42000] (Error 50000).
The step failed.
Ответы


- check sql server server error log & agent log for more details.
- Also share the query you are using to take backup.
- Run DBCC check DB on database
Regards,
Rohit Garg
(My Blog)
This posting is provided with no warranties and confers no rights.
Please remember to click Mark as Answer and Vote as Helpful on posts that help you. This can be beneficial to other community members reading the thread.
Все ответы


- check sql server server error log & agent log for more details.
- Also share the query you are using to take backup.
- Run DBCC check DB on database
Regards,
Rohit Garg
(My Blog)
This posting is provided with no warranties and confers no rights.
Please remember to click Mark as Answer and Vote as Helpful on posts that help you. This can be beneficial to other community members reading the thread.


Was this task working before, and just started failing now? If so, is the location (to where you are creating the log backups to) accessible to SQL server?
Stanley Johns K. MCTS/MCITP in SQL server 2008.


Please, could you tell us whether your backup is done thru a job executed thru the SQL Agent ? If yes, you have not posted in the good forum ( it is not easy to find which is the best forum for a thread especially when the original poster is creating his/her 1st thread ).
A move by a moderator has many advantages :
— no thread to recreate
— no lost useful posts ( both replies are interesting and useful )
— no thread let dying in a forum where it will not receive a good and full answer
— only a moderator can do a move ( and it is one of the most usual tasks )
We are waiting for your feedback to try to help you more efficiently.
Have a nice day
PS : please, could you tell us the full version ( 2000,2005,2008,2008 R2,2012 + last installed service pack ) and edition ( Express but surprising because of the SQL Agent,Web,Standard,Entreprise. ) ?
These informations are always useful and make easier to eliminate solutions which are not useable for your version or edition.
Источник
- Remove From My Forums
-
Question
-
I have a lengthy stored procedure that has been running fine for years. All of a sudden — one of my error traps catches error #50000 and goes to my rollback transaction line. So I isolated the part of the proc (which is near beginning)
and ran just that part in Query Analyzer — no errors/problems. I then create a new simple stored procedure with just this query — it runs but now it raises error # 50000.If @@Error <> 0
RaiseError(‘……..’, 16, 1)
@@Error always used to be 0, now I’m getting Error #50000. Something must have changed in our system. Who gets the blame? Our new IT guy for tweaking something or the gnomes and gremlins? (surely not me :). So what is
error 50000? How do I fix this?Thanks
Rich P
Answers
-
thank you all for replies. I think (I hope) I found the problem — If @@Error <> 0 GoTo Catch. Mysteriously, «All of a Sudden» I’m not telling it to go somewhere else if @@Error does equal 0 and so goes to the catch block anyway and raises
the raiserror thing which sends it to the rollback line. I’m blaming the gnomes and gremlins for this. What I will do for now isIf @@Error <> 0
Begin
RaiseError(…)
…
EndI will post back with the results of this trick.
Rich P
-
Proposed as answer by
Tuesday, November 20, 2012 3:20 PM
-
Marked as answer by
Iric Wen
Tuesday, November 27, 2012 9:25 AM
-
Proposed as answer by
-
So — mysteriously, some goto labels got added to this hefty sp I wrote several years ago (and maintain once every few years — like now). Maybe it was the gnomes and gremlins (or maybe it was me when I fell asleep at my desk and was sleep coding).
Not sure, but getting rid of them fixed the problem. Anyway, thank you all for your replies. I was in a tizzy for a while there. All OK now.
Rich P
-
Proposed as answer by
Naomi N
Monday, November 19, 2012 10:56 PM -
Marked as answer by
Iric Wen
Tuesday, November 27, 2012 9:25 AM
-
Proposed as answer by
- Remove From My Forums
-
Question
-
I have a lengthy stored procedure that has been running fine for years. All of a sudden — one of my error traps catches error #50000 and goes to my rollback transaction line. So I isolated the part of the proc (which is near beginning)
and ran just that part in Query Analyzer — no errors/problems. I then create a new simple stored procedure with just this query — it runs but now it raises error # 50000.If @@Error <> 0
RaiseError(‘……..’, 16, 1)
@@Error always used to be 0, now I’m getting Error #50000. Something must have changed in our system. Who gets the blame? Our new IT guy for tweaking something or the gnomes and gremlins? (surely not me :). So what is
error 50000? How do I fix this?Thanks
Rich P
Answers
-
thank you all for replies. I think (I hope) I found the problem — If @@Error <> 0 GoTo Catch. Mysteriously, «All of a Sudden» I’m not telling it to go somewhere else if @@Error does equal 0 and so goes to the catch block anyway and raises
the raiserror thing which sends it to the rollback line. I’m blaming the gnomes and gremlins for this. What I will do for now isIf @@Error <> 0
Begin
RaiseError(…)
…
EndI will post back with the results of this trick.
Rich P
-
Proposed as answer by
Tuesday, November 20, 2012 3:20 PM
-
Marked as answer by
Iric Wen
Tuesday, November 27, 2012 9:25 AM
-
Proposed as answer by
-
So — mysteriously, some goto labels got added to this hefty sp I wrote several years ago (and maintain once every few years — like now). Maybe it was the gnomes and gremlins (or maybe it was me when I fell asleep at my desk and was sleep coding).
Not sure, but getting rid of them fixed the problem. Anyway, thank you all for your replies. I was in a tizzy for a while there. All OK now.
Rich P
-
Proposed as answer by
Naomi N
Monday, November 19, 2012 10:56 PM -
Marked as answer by
Iric Wen
Tuesday, November 27, 2012 9:25 AM
-
Proposed as answer by
Yesterday i have received SQL Server Native Client Error 5000 while installing SQL Server Management Studio on one of the client machine. The description for this error code was given as “A network error occurred while attempting to read from the file <Filename>.” Here i will describe and explain about SQL Server Error 50000 and it’s fix to make SQL Server installation successful.

SQL Server Native Client Error 50000
Before explaining about SQL native client error 50000, i would like to describe about what is SQL Server native client. As per MSDN “SQL Server Native Client, is a term that has been used interchangeably to refer to ODBC and OLE DB drivers for SQL Server.”
SQL Server Native Client is a technology that we can use to access data in a SQL Server database. There are several factors you should consider while deciding whether to use SQL Server Native client or some other data access technology. You can read attached article about when to use SQL Server Native Client.
Generally, we get SQL Server native client error 50000 while installing or updating native client software or a software component that uses SQL Server Native Client and your target machine already have this installed previously using some msi file.
You can also get this issue if SQL Server native client file sqlncli.msi has been renamed after its installation and later today when you are trying to update it, you will end up with this SQL error 50000 . If somehow native client installation file has been renamed on your machine, setup will not find its file to update SQL Server native client and through below error.
A network error occurred while attempting to read from the file <Filename>.”
Solution
To fix this error, you should uninstall installed version of SQL Server native client from add/remove program and then you can try to install SQL Server or its component again. This time you will not get any error and your software or native client will be installed. To avoid further issue, you can reboot the machine post uninstalling the native client tool.
If you are installing only SQL Server native client and not SQL Server then you can download it from Microsoft website and then reinstall it again.
You can also prevent this error to not generate in future by not installing it using its msi file sqlncli.msi. If you had installed it using this file, make sure to never rename it as well.
Here, I have shown you how to fix SQL Server Native Client Error 50000, “A network error occurred while attempting to read from the file <Filename>.” I hope you like this article. Please follow our Facebook page and Twitter handle to get latest updates.
Read More:
- Fix SQL Server Error 5009: One or more files listed in the statement could not be found or could not be initialized
- Fix SQL Server Installation Error: Attributes do not match
- How to Fix SQL Server Installation Error 1639?
- SQL Server DBA Interview Questions & Answers
- Author
- Recent Posts
![]()
I am working as a Technical Architect in one of the top IT consulting firm. I have expertise on all versions of SQL Server since SQL Server 2000. I have lead multiple SQL Server projects like consolidation, upgrades, migrations, HA & DR. I love to share my knowledge. You can contact me on my social accounts for any consulting work.
![]()
Hi Mike,
Thank you for your reply… Its a typo mistake in hurry.. we are using microsoft SQL only. Below is the stored procedure we are using in our application. I have replcaed few names(only company related names ,not any key words) with»xxxx» for security reason ..
Could you guide us resolving this issue..
Thank you .
USE [Dev]
GO
/****** Object: StoredProcedure [dbo].[FileUpdate] Script Date: 07/25/2012 00:31:22 ******/
SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER ON
GO
ALTER PROCEDURE [dbo].[FileUpdate]
(
@key uniqueidentifier,
@FileID Varchar(80)
)
AS
set quoted_identifier OFF
DECLARE @CurrentDate DATETIME
DECLARE @BpUser varchar(20)
DECLARE @InvoiceFlowKey uniqueidentifier
DECLARE @PedigreeKey uniqueidentifier
DECLARE @ClockKey uniqueidentifier
DECLARE @ClockStatusCd varchar(20)
DECLARE @ClockEventKey uniqueidentifier
DECLARE @RetCode INTEGER
DECLARE @ReturnMessage VARCHAR(max)
SET @CurrentDate = getdate()
SET @BpUser = ‘BP’
set @RetCode = 0
SET @ReturnMessage = »
DECLARE @Debug INTEGER
SET @Debug = 0
/*
Environment
*/
IF @Debug = 1
BEGIN
SET NOCOUNT OFF
END
ELSE
BEGIN
SET NOCOUNT ON
END
IF @Debug = 1
PRINT ‘ Begin FileUpdate ‘
/*
1. Get the invoiceFlowKey for the given batch
*/
SELECT
@InvoiceFlowKey = invoiceFlowKey
FROM
tbBatch
WHERE
batchKey = @BatchKey
/*
2. Get pedigree key for the batch.
*/
SELECT
@PedigreeKey = pedigreeKey
FROM
tbBatch
WHERE
batchKey = @BatchKey
/*
3. Use the pedigree key to get the clock key for the pedigree.
*/
SELECT
@ClockKey = clockKey
FROM
tbPedigree
WHERE
pedigreeKey = @PedigreeKey
/*
4. Get the last clock event.
*/
SELECT TOP 1
@ClockStatusCd = clockStatusCd
FROM
tbClockEvent
WHERE
clockKey = @ClockKey
ORDER BY
clockEventEffectiveStartTS desc
IF @ClockStatusCd is null
SET @ClockStatusCd = »
IF @Debug = 1
BEGIN
PRINT ‘@InvoiceFlowKey = ‘ + CAST(@InvoiceFlowKey AS varchar(40))
PRINT ‘@PedigreeKey = ‘ + CAST( ISNULL(@PedigreeKey, ‘00000000-0000-0000-0000-000000000000’) AS varchar(40))
PRINT ‘@ClockKey = ‘ + CAST( ISNULL(@ClockKey, ‘00000000-0000-0000-0000-000000000000’) AS varchar(40))
PRINT ‘@ClockStatusCd = ‘ + @ClockStatusCd
END
BEGIN TRANSACTION;
BEGIN TRY
UPDATE
tbBatch
SET
batchStatusCd = ‘Ready’,
batchTypeCd = ‘Routed’,
rowAlteredTS = @CurrentDate,
rowAlteredID = @BpUser
WHERE
batchKey = @BatchKey
UPDATE
tbBatchFile
SET
fileReferenceID = @FileID
WHERE
batchKey = @BatchKey
IF @debug = 1
select * from tbBatchFile where batchKey = @BatchKey
— If the last clock event was a Hold, create a restart event.
IF @ClockStatusCd = ‘Hold’
BEGIN
SET @ClockEventKey = Newid()
INSERT INTO tbClockEvent
(
clockEventKey,
clockStatusCd,
clockKey,
clockEventCmmt,
clockEventEffectiveStartTS,
clockEventInitialStartTS,
clockEventLastChangedByID,
rowCreatedTS,
rowCreatedID,
rowAlteredTS,
rowAlteredID
)
VALUES
(
@ClockEventKey,
‘Restart’,
@ClockKey,
», — default to a blank comment
Getdate(),
Getdate(),
‘xxxxxxxxxSystem’,
Getdate(),
@BpUser,
Getdate(),
@BpUser
)
END
— If there is no last clock event, create a start event.
IF @ClockStatusCd = »
BEGIN
SET @ClockEventKey = Newid()
INSERT INTO tbClockEvent
(
clockEventKey,
clockStatusCd,
clockKey,
clockEventCmmt,
clockEventEffectiveStartTS,
clockEventInitialStartTS,
clockEventLastChangedByID,
rowCreatedTS,
rowCreatedID,
rowAlteredTS,
rowAlteredID
)
VALUES
(
@ClockEventKey,
‘Start’,
@ClockKey,
», — default to a blank comment
Getdate(),
Getdate(),
‘xxxxxxxxxSystem’,
Getdate(),
@BpUser,
Getdate(),
@BpUser
)
END
/*
7. Find all users associatated WHERE ith the invoice flow and send an e-mail.
*/
SELECT
inv.invoiceFlowKey,
ifc.tradingPartnerContactKey,
tradingPartnerRltMemberKey,
tpc.contactKey,
contactTypeCd,
tradingPartnerContactActiveInd
INTO
#temp_Contacts
FROM
tbInvoiceFlow inv
JOIN
tbInvoiceFlowContact ifc
ON
inv.invoiceFlowKey = ifc.invoiceFlowKey
JOIN
tbTradingPartnerContact tpc
ON
ifc.tradingPartnerContactKey = tpc.tradingPartnerContactKey
JOIN
tbContact con
ON
tpc.contactKey = con.contactKey
WHERE
contactTypeCd = ‘User’
AND
—tradingPartnerContactActiveInd = ‘Y’
—AND
inv.invoiceFlowKey = @InvoiceFlowKey
IF @Debug = 1
BEGIN
print ‘data from #temp_Contacts…’
select * from #temp_Contacts
END
—Get the sending trading partner name
Declare @SendPartnerName nvarchar(250)
select @SendPartnerName=tp.tradingPartnerNm from tbTradingPartner tp
join tbBatch b
on b.tradingPartnerID = tp.tradingPartnerID
where batchKey = @BatchKey
DECLARE @EmailBody VARCHAR(MAX)
set @EmailBody = dbo.EmailBodySelect( ‘RI’,1, dbo.fcnBatchFileListSelect(@BatchKey), @InvoiceFlowKey,@SendPartnerName)
— get invoice name using invoiceFlowKey
Declare @FlowName varchar(500)
select @FlowName = InvoiceFlowDesc from tbInvoiceFlow where InvoiceFlowKey = @InvoiceFlowKey
INSERT INTO tbInboxMessage
(
inboxMessageKey,
emailStatusCd,
inboxKey,
messageStatusCd,
messageTypeCd,
messageBodyTxt,
messageFromTxt,
messageForwardedInd,
messageRepliedToInd,
messageToTxt,
messageSentTS,
messageSubjectTxt,
rowCreatedTS,
rowCreatedID,
rowAlteredTS,
rowAlteredID
)
SELECT
newid() as inboxMessageKey,
‘Pending’,
inboxKey,
‘Active’,
‘System’,
@EmailBody,
‘xxxxxxxxxx.com’,
‘N’,
‘N’,
CAST(con.contactKey AS varchar(50)),
Getdate(),
‘ alert: Files sent from ‘+@SendPartnerName+’ for Flow ‘+@FlowName,
Getdate(),
@BpUser,
Getdate(),
@BpUser
FROM
#temp_Contacts con
JOIN
tbInbox ibx
ON
con.contactKey = ibx.contactKey
COMMIT TRANSACTION;
END TRY
BEGIN CATCH
IF @@TRANCOUNT > 0
ROLLBACK TRANSACTION;
EXECUTE ErrorHandler
RETURN 55555
END CATCH;
SELECT
@RetCode AS ReturnCode,
@ReturnMessage AS ReturnMessage
| description | title | ms.custom | ms.date | ms.service | ms.reviewer | ms.subservice | ms.topic | helpviewer_keywords | ms.assetid | author | ms.author | monikerRange |
|---|---|---|---|---|---|---|---|---|---|---|---|---|
|
SQL Server Native Client Error MSSQLSERVER_50000 |
MSSQLSERVER_50000 | Microsoft Docs |
03/14/2017 |
sql |
native-client |
reference |
50000 [SQL Server Native Client setup error] |
5426d87a-d5d9-4984-b211-b07d69e834a2 |
markingmyname |
maghan |
>=aps-pdw-2016||=azuresqldb-current||=azure-sqldw-latest||>=sql-server-2016||>=sql-server-linux-2017||=azuresqldb-mi-current |
SQL Server Native Client Error MSSQLSERVER_50000
[!INCLUDESQL Server Azure SQL Database Synapse Analytics PDW ]
[!IMPORTANT]
[!INCLUDEsnac-removed-oledb-and-odbc]
Details
| Attribute | Value |
|---|---|
| Product Name | SQL Server |
| Product Version | 11.0 |
| Event ID | 50000 |
| Event Source | SETUP |
| Component | [!INCLUDEssNoVersion] Native Client |
| Symbolic Name | |
| Message Text | A network error occurred while attempting to read from the file ‘%.*ls’. |
Explanation
An attempt was made to install (or update) [!INCLUDEssNoVersion] Native Client on a computer where [!INCLUDEssNoVersion] Native Client is already installed, and where the existing installation was from an MSI file that was renamed from sqlncli.msi.
User Action
To resolve this error, uninstall the existing version of [!INCLUDEssNoVersion] Native Client. To prevent this error, do not install [!INCLUDEssNoVersion] Native Client from an MSI file that is not named sqlncli.msi.