Tracking Forums, Newsgroups, Maling Lists
Home Scripts Tutorials Tracker Forums
  Advanced Search
  HOME    TRACKER    MS SQL Server






SuperbHosting.net & Arvixe.com have generously sponsored dedicated servers and web hosting to ensure a reliable and scalable dedicated hosting solution for BigResource.com.







Error 41 Broken Pipe - Any Ideas


Hi guys,

Running a clustered webserver, windows 2000, IIS v5, and a sql server, v2000. Using OLE Db as connection, running stored procedures, no sql created on the fly. The website handles about 5000 transaction a day.

Every now and again, we get a problem whereby an error 41 - Broken Pipe is reported. I can't find any info on this error on Technet, MSDN, etc. Google returns info, but only really affecting solaris, unix, linux, etc.

Anyone ever come across this error before? or know what might cause it? and possible resolutions?


View Complete Forum Thread with Replies
Sponsored Links:

Related Messages:
Error: 0 - No Process Is On The Other End Of The Pipe
I can use SQL Server Management Studio Express to connect to my local database SQL 2005 database on bknjisqlexpress.

I am also able to connect to the database from Visual Studio, and this is where I copied the following connection string to be used in my C# code

string myConnectString = "Data Source=BKFNJI\SQLEXPRESS;" +

 "Initial Catalog=cmiCompatibilityDataBase" +

"Integrated Security=True;Pooling=False";

// specify SQL Server Specific Connection string

SqlConnection cmiDBCompConnection = new SqlConnection(myConnectString);

cmiDBCompConnection.Open();

 

when I attempt to run the apps, I get the

"System.Data.SqlClient.SqlException was unhandled
  Message="A connection was successfully established with the server, but then an error occurred during the login process. (provider: Shared Memory Provider, error: 0 - No process is on the other end of the pipe.)".....


any idea what I am doing wrong, given that the connection string works using other means?  I am using Windows authentication.

To add, the error in my log shows:

2007-03-17 21:10:55.82 Logon       Login failed for user ''. The user is not associated with a trusted SQL Server connection. [CLIENT: <local machine>]

Thanks,

Klaus

View Replies !   View Related
Shared Memory No Process Other End Of Pipe Error
There appear to be a number of users who have encountered the "SQL Native Client Shared Memory Provider No Process at the Other End of the Pipe" error. We encountered a problem in which the error was consistantly cleared only with a clean install of the operating system and SQL Server. Removing SQL Server, cleaning the registry and a variety of other procedures did not resolve the problem.

KB309398 describes a Certificate problem that can cause the Pipe error.
See: http://support.microsoft.com/kb/309398

The kb article describes the problem as follows:

Quote
SQL Server 2000 introduces Secure Sockets Layer (SSL) encryption through the use of certificates. If SQL Server finds certificates on the local computer, SQL Server attempts to use the certificates. If the certificate is not issued to the fully qualified domain name of the computer, SQL Server considers the certificate invalid. If there are multiple certificates on the computer, there is no way to pick which certificate SQL Server must use.

You must identify the source of the certificates on the computer before you proceed. For the SQL Server 2000 installation to be successful, you must use the Microsoft Management Console (MMC) snap-in to view the certificates on your computer.
End Quote

I was astonished to find out that a Certificate that is unrelated to SQL Server can cause a Server connection failure. We temporarily removed all of the Personal Certificates and the Pipe Error was gone. This fix may not work for everyone, but it did solve our problem.

View Replies !   View Related
Named Pipe Provider/Linked Server Connection Error
Hello, everyone!

I'm currently having an issue with a linked server. Here's the surrounding information:
 
A) I have a clustered SQL Server 2005 Instance (A) and a SQL Server 2000 instance (B).
B) There is a linked server on A to B. When I set it up, I did run the fix to ensure A could talk to B (There was an issue with communication between 2005 and 2000 servers). It has been there since I installed A, and has worked fine.. Until last week.
C) This linked server uses static credentials to connect to B.
D) Named Pipes are enabled on both servers to listen to both connections on both A and B in cliconfg. So A has a named pipe listening for B, and B has a named pipe listening for A.
E) A has a view  that looks at a table on B - It's a table view, very simple, just pulls in all the data from the table on B.
 
 
So, I go to do a select statement from the view, connected as a user other then 'sa'.  I then get the error:
 
Named Pipes Provider: Could not open a connection to SQL Server Linked Server
Error Source: ncli Client (Paraphrasing, didn't copy that down, but it was the ODBC connector)
 
Well, that's odd. It's been working fine for months now..

I then go and connect as sa on A to query B. It works! Mind you, absolutely NO QUERY from A to B will run again until I run SOME kind of query has been run as sa on A.
 
Mind you, this is not a credential issue. Every user who connects to the linked server to B uses a stored credential that is DBO to the database on B. The same User Name and Password exists on both A and B.
 
Also of note, I check the activity monitor. There's a process that is "dormant" every time I run a query against the view. The details of this connection are:

sp_reset_connection;1
 
My question is, why is it resetting the connection on B when being queried from A? Why is it "all of a sudden" a problem? Are there any changes that coudl ahve been made that would cause this?

Any help with this confusing issue would be appreciated.

Thanks!
 
 

View Replies !   View Related
Error Connection Broken
Hi,
we want to replicate the server.I took the backup of all databases.
I started the other server in a single user mode (sqlservr.exe -m).when
i try to restore the master database using other server backup file, it was giving error ( SQL-DMO , Connection broken GetOverlaped()).Is it possible
to restore the master database from other server backup file? Give me some
ideas about replicating entire server.Both servers are in SQL 7.0.If i don't
restore the master database, I won't get all logins.Is there any other way?

Any help appreciated

Thanks
Siva

View Replies !   View Related
Getting A SQL Database Error...any Ideas SQL Experts?
 I am trying to insert a value into a field in a database named ASPNETDB.MDF.  The table name is "profiles_BasicProperties" and the field name is "UserID".  I get an error when I attempt to do this.  See the code I am using to try to do this below...and then the error that I get which is further down in this post.  Note...both the code and the database are on my laptop.  I can connect to the database just fine using Server Explorer in MS VS 2005.  Thanks in advance for any help anybody can offer...
 Here is the code I am using:
<%@ Page Language="VB" MasterPageFile="~/Master02.master" Title="Create Your Free Account" Debug="true"%><%@ Import Namespace="System.Data.SqlClient" %><%@ Import Namespace="System.Web.Configuration" %>
<asp:Content ID="Content1" ContentPlaceHolderID="ContentPlaceHolder_Main" Runat="Server">
<script runat="server">        Sub CreateUserWizard_CreatedUser(ByVal sender As Object, ByVal e As EventArgs)                Dim CWZ As CreateUserWizard        CWZ = CType(Me.LoginView1.FindControl("CreateUserWizard"), Wizard)
        CreateUserProfile(CWZ.UserName)
    Private Sub CreateUserProfile(ByVal UserName As String)            Dim conString As String = WebConfigurationManager.ConnectionStrings("Main").ConnectionString        Dim con As New SqlConnection(conString)        Dim cmd As New SqlCommand("INSERT profiles_BasicProperties (UserName) VALUES (@UserID)", con)        cmd.Parameters.AddWithValue("@UserID", UserName)        Using con            con.Open()            cmd.ExecuteNonQuery()        End Using            End Sub
</script>
 ...and here is the error and stack trace (the offending Line 49 is in bold):
 Server Error in '/Site_Dev' Application.--------------------------------------------------------------------------------
An attempt to attach an auto-named database for file ~App_DataASPNETDB.MDF failed. A database with the same name exists, or specified file cannot be opened, or it is located on UNC share. Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code.
Exception Details: System.Data.SqlClient.SqlException: An attempt to attach an auto-named database for file ~App_DataASPNETDB.MDF failed. A database with the same name exists, or specified file cannot be opened, or it is located on UNC share.
Source Error:
Line 47:         cmd.Parameters.AddWithValue("@UserID", UserName)Line 48:         Using conLine 49:             con.Open()Line 50:             cmd.ExecuteNonQuery()Line 51:         End Using 
Source File: C:UsersmdcraggDocumentsWebsiteSite_DevUser_Create.aspx    Line: 49
Stack Trace:
[SqlException (0x80131904): An attempt to attach an auto-named database for file ~App_DataASPNETDB.MDF failed. A database with the same name exists, or specified file cannot be opened, or it is located on UNC share.]   System.Data.SqlClient.SqlInternalConnection.OnError(SqlException exception, Boolean breakConnection) +736211   System.Data.SqlClient.TdsParser.ThrowExceptionAndWarning(TdsParserStateObject stateObj) +188   System.Data.SqlClient.TdsParser.Run(RunBehavior runBehavior, SqlCommand cmdHandler, SqlDataReader dataStream, BulkCopySimpleResultSet bulkCopyHandler, TdsParserStateObject stateObj) +1959   System.Data.SqlClient.SqlInternalConnectionTds.CompleteLogin(Boolean enlistOK) +33   System.Data.SqlClient.SqlInternalConnectionTds.AttemptOneLogin(ServerInfo serverInfo, String newPassword, Boolean ignoreSniOpenTimeout, Int64 timerExpire, SqlConnection owningObject) +237   System.Data.SqlClient.SqlInternalConnectionTds.LoginNoFailover(String host, String newPassword, Boolean redirectedUserInstance, SqlConnection owningObject, SqlConnectionString connectionOptions, Int64 timerStart) +374   System.Data.SqlClient.SqlInternalConnectionTds.OpenLoginEnlist(SqlConnection owningObject, SqlConnectionString connectionOptions, String newPassword, Boolean redirectedUserInstance) +192   System.Data.SqlClient.SqlInternalConnectionTds..ctor(DbConnectionPoolIdentity identity, SqlConnectionString connectionOptions, Object providerInfo, String newPassword, SqlConnection owningObject, Boolean redirectedUserInstance) +170   System.Data.SqlClient.SqlConnectionFactory.CreateConnection(DbConnectionOptions options, Object poolGroupProviderInfo, DbConnectionPool pool, DbConnection owningConnection) +359   System.Data.ProviderBase.DbConnectionFactory.CreatePooledConnection(DbConnection owningConnection, DbConnectionPool pool, DbConnectionOptions options) +28   System.Data.ProviderBase.DbConnectionPool.CreateObject(DbConnection owningObject) +424   System.Data.ProviderBase.DbConnectionPool.UserCreateRequest(DbConnection owningObject) +66   System.Data.ProviderBase.DbConnectionPool.GetConnection(DbConnection owningObject) +496   System.Data.ProviderBase.DbConnectionFactory.GetConnection(DbConnection owningConnection) +82   System.Data.ProviderBase.DbConnectionClosed.OpenConnection(DbConnection outerConnection, DbConnectionFactory connectionFactory) +105   System.Data.SqlClient.SqlConnection.Open() +111   ASP.user_create_aspx.CreateUserProfile(String UserName) in C:UsersMatthewDocumentsGroup 02 - PoliticoreSite_DevUser_Create.aspx:49   ASP.user_create_aspx.CreateUserWizard_CreatedUser(Object sender, EventArgs e) in C:UsersMatthewDocumentsGroup 02 - PoliticoreSite_DevUser_Create.aspx:30   System.Web.UI.WebControls.CreateUserWizard.OnCreatedUser(EventArgs e) +105   System.Web.UI.WebControls.CreateUserWizard.AttemptCreateUser() +341   System.Web.UI.WebControls.CreateUserWizard.OnNextButtonClick(WizardNavigationEventArgs e) +105   System.Web.UI.WebControls.Wizard.OnBubbleEvent(Object source, EventArgs e) +453   System.Web.UI.WebControls.CreateUserWizard.OnBubbleEvent(Object source, EventArgs e) +149   System.Web.UI.WebControls.WizardChildTable.OnBubbleEvent(Object source, EventArgs args) +17   System.Web.UI.Control.RaiseBubbleEvent(Object source, EventArgs args) +35   System.Web.UI.WebControls.Button.OnCommand(CommandEventArgs e) +115   System.Web.UI.WebControls.Button.RaisePostBackEvent(String eventArgument) +163   System.Web.UI.WebControls.Button.System.Web.UI.IPostBackEventHandler.RaisePostBackEvent(String eventArgument) +7   System.Web.UI.Page.RaisePostBackEvent(IPostBackEventHandler sourceControl, String eventArgument) +11   System.Web.UI.Page.RaisePostBackEvent(NameValueCollection postData) +33   System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +5102
 
--------------------------------------------------------------------------------Version Information: Microsoft .NET Framework Version:2.0.50727.312; ASP.NET Version:2.0.50727.312

View Replies !   View Related
ODBC Error 80004005; Connection Broken
I get the following message after loading an ASP page a few times that hits an SQL Server db.

Microsoft OLE DB Provider for ODBC Drivers error '80004005'

[Microsoft][ODBC SQL Server Driver][Named Pipes]Connection broken.

This will occur on an earlier line each time I load the page. Any thoughts as to why this would happen? I have scoured the Microsoft Knowledge (HA!)
Base, and, surprise surprise, I was unable to find anything related to my problem.

View Replies !   View Related
A Connection Was Successfully Established With The Server, But Then An Error Occurred During The Login Process. (provider: Shared Memory Provider, Error: 0 - No Process Is On The Other End Of The Pipe.)
i'm going nuts with SQL server notification thing. I have gone throigh this artical which tells how to set user http://www.codeproject.com/KB/database/SqlDependencyPermissions.aspx. This article show how to create new user and setup for sql server notification.But In my case user was alredy existing in database. which is very common senario in most cases. So i did following( check the SQL script below) but then i get this error
"A connection was successfully established with the server, but then an error occurred during the login process. (provider: Shared Memory Provider, error: 0 - No process is on the other end of the pipe.)"
this my sql script
use [master]Go
-- Ensuring that Service Broker is enabled ALTER DATABASE [DatabaseName] SET ENABLE_BROKERGO
-- Switching to our databaseuse [DatabaseName]GO
CREATE SCHEMA schemaname AUTHORIZATION usernameGO
ALTER USER username WITH DEFAULT_SCHEMA = schemaname GO
/* * Creating two new roles. We're not going to set the necessary permissions  * on the user-accounts, but we're going to set them on these two new roles. * At the end of this script, we're simply going to make our two users  * members of these roles. */EXEC sp_addrole 'sql_dependency_subscriber' EXEC sp_addrole 'sql_dependency_starter'
-- Permissions needed for [sql_dependency_starter]GRANT CREATE PROCEDURE to [sql_dependency_starter] GRANT CREATE QUEUE to [sql_dependency_starter]GRANT CREATE SERVICE to [sql_dependency_starter]GRANT REFERENCES on CONTRACT::[http://schemas.microsoft.com/SQL/Notifications/PostQueryNotification]  to [sql_dependency_starter] GRANT VIEW DEFINITION TO [sql_dependency_starter]
-- Permissions needed for [sql_dependency_subscriber] GRANT SELECT to [sql_dependency_subscriber] GRANT SUBSCRIBE QUERY NOTIFICATIONS TO [sql_dependency_subscriber] GRANT RECEIVE ON QueryNotificationErrorsQueue TO [sql_dependency_subscriber] GRANT REFERENCES on CONTRACT::[http://schemas.microsoft.com/SQL/Notifications/PostQueryNotification]  to [sql_dependency_subscriber]
-- Making sure that my users are member of the correct role.EXEC sp_addrolemember 'sql_dependency_starter', 'username'EXEC sp_addrolemember 'sql_dependency_subscriber', 'username'

View Replies !   View Related
Linked Server W/ Text Field Gets Connection Broken Error
We have a stored proc on Server B called:

my_sp_server_b it takes 1 parameter a text field as a parameter, with default set to NULL

this proc calls:

my_sp_server_a through a linked server (which happens to be the same server, different DB), it has two parameters: my_id int, my_text text w/ my_text having a default set to NULL

This second stored procedure just selects back an ID that is passed to it (to keep things simple).

If we pass any string value to my_sp_server_b we get the appropriate hardcoded ID passed to my_sp_server_a. If we pass NULL to my_sp_server_b we get the following error:

[Microsoft][ODBC SQL Server Driver][DBNETLIB]ConnectionCheckForData (CheckforData()).
Server: Msg 11, Level 16, State 1, Line 0
General network error. Check your network documentation.

Connection Broken

If we remove the linked server, and just reference my_sp_server_a via the scoped DB, we do not get an error. If we change the data type in both procs to varchar(50) we do not get an error. If we change the data type to nText we still get an error. If we put IF logic into stored procedure: my_sp_server_b to check for NULL in the input parameter and if it true then to pass NULL explicitly to my_sp_server_a we do not get an error.

It seems to be a combination of using a linked server and trying to pass a text (or nText variable) with a NULL value to stored procedure. Sometimes the error changes based on which scenario I described above - but we consistantly receive an error unless we do some of the workarounds described above.

Any ideas?

View Replies !   View Related
Provider: Named Pipe Provider, Error: 40 - Could Not Open Connection To SQL Server
After I installed the various service packs via Windows Update, my WindowsForms application can no longer connect to the server.

 

The error message is:

 

provider: Named Pipe Provider, error: 40 - Could not open connection to SQL server.

 

However, the Reporting Services work just fine.

 

Please help.

View Replies !   View Related
(provider: Shared Memory Provider, Error: 0 - No Process Is On The Other End Of The Pipe.)
 I am getting the following error when i try to connect to the my web site using froma different server.  A connection was successfully established with the server, but then an error occurred during the login process. (provider: Shared Memory Provider, error: 0 - No process is on the other end of the pipe.)  i am using sql express and i attach the database through the connection string in the web config. Any ideas

View Replies !   View Related
When Trying To Connect I Get The Following Error: &&"No Process Is On The Other End Of The Pipe&&"
I had to un-install and re-install SQL Server 2005 for a different problem which has been resolved.
 
But now when I try to make a connection to the database I get the following error:
 
"...No process is on the other end of the pipe"
 
I have verified that the server allows named pipeing which seems to be the common answer I found after searching.  I have also verified that the account I use is setup and has all the proper permissions.
 
Can someone help me in resolving this issue noting what I have verified above???
 
Thanks...

View Replies !   View Related
No Process Is On The Other End Of The Pipe
Hello all, I have question regarding the error message that I'm getting above. I have a program written in .NET that is suppose to traverse through a database and retrieve various records and then write a summary record. The code worked without issue. The database the used to hold the data was a SQL 7.0. However, recently I moved the server over to SQL 2005. Since that time I have been getting the following error:
       
Description: [Microsoft][SQL Native Client]Named Pipes Provider: No process is on the other end of the pipe.
       
ramdomly throughout the execution of the program. It doesn't happen on record and is intermittent when it occurs.
      
Here is the code that is having issues any help would be appreciated.
       
Thanks
Mike Gisonda
       
       
       
       Dim mreleaseqty As Double
        Dim mmakeqty As Double
        Dim k As Integer
        Dim mbackorderqty As Double
        Dim mOnOrder As Double
        Dim mOnHand As Double
        Dim mMaximumqty As Double
        Dim mMinimumQty As Double
        Dim muomfactor As Double
        Dim mSafetyStockQty As Double
        Dim mQtyInTransit As Double
        Dim mQtyAllocatedWip As Double
        Dim mQtyAllocated As Double

        Dim cnLean As New ADODB.Connection
        Dim cnSyspro As New ADODB.Connection
        Dim cnLean2 As New ADODB.Connection


        Dim cmdPullItems As New ADODB.Command 'command to retrieve pull items
        Dim cmdWHTotals As New ADODB.Command 'command to get combined warehouse totals
        Dim cmdUpdatePull As New ADODB.Command
        Dim cmdBkOrd As New ADODB.Command
        Dim cmdInvMst As New ADODB.Command
        Dim cmdInitPull As New ADODB.Command 'command to clean our old pull data

        Dim prmStockCode As New ADODB.Parameter 'parameter to supply stockcode.

        Dim rsPullItems As New ADODB.Recordset 'recordset to hold pull items.
        Dim rsWHTotals As New ADODB.Recordset 'recordset to hold warehouse records
        Dim rsBkOrd As New ADODB.Recordset
        Dim rsInvMst As New ADODB.Recordset
        Dim rsSalesOrders As New ADODB.Recordset
        Dim rsWipMaster As New ADODB.Recordset



        Dim mPullSQL As String
        Dim mWHSql As String
        Dim mBackOrderStr As String
        Dim mInvSQL As String
        Dim mStockCode As String
        Dim mSalesSQL As String
        Dim aBackOrderRec As Array
        Dim mReqDate
        Dim mShipDate As Date
        Dim mcol As Integer
        Dim mNewVal As Double
        Dim mWipSql As String
        Dim mAdjAmt As Double
        Dim mStockStatus As Integer
        Dim mBackOrder As Double
        Dim mBackLate1 As Double
        Dim mBackLate2 As Double
        Dim mBackLate3 As Double
        Dim mBackLate4 As Double
        Dim mWeeklyStDev As Double
        Dim mWeeklyUsage As Double

        Dim mBackLog1 As Double
        Dim mBackLog2 As Double
        Dim mBackLog3 As Double
        Dim mBackLog4 As Double
        Dim mBackLog5 As Double
        Dim mBackLog6 As Double
        Dim mBackLog7 As Double
        Dim mBackLog8 As Double
        Dim mBackLog9 As Double
        Dim mBackLog10 As Double
        Dim mBackLog11 As Double
        Dim mBackLog12 As Double

        Dim mLEAN_BACKORDER_BFLAG As Integer
        Dim mLEAN_LATE1_BFLAG As Integer
        Dim mLEAN_LATE2_BFLAG As Integer
        Dim mLEAN_LATE3_BFLAG As Integer
        Dim mLEAN_LATE4_BFLAG As Integer
        Dim mLEAN_BACKLOG1_BFLAG As Integer
        Dim mLEAN_BACKLOG2_BFLAG As Integer
        Dim mLEAN_BACKLOG3_BFLAG As Integer
        Dim mLEAN_BACKLOG4_BFLAG As Integer
        Dim mLEAN_BACKLOG5_BFLAG As Integer
        Dim mLEAN_BACKLOG6_BFLAG As Integer
        Dim mLEAN_BACKLOG7_BFLAG As Integer
        Dim mLEAN_BACKLOG8_BFLAG As Integer
        Dim mLEAN_BACKLOG9_BFLAG As Integer
        Dim mLEAN_BACKLOG10_BFLAG As Integer
        Dim mLEAN_BACKLOG11_BFLAG As Integer
        Dim mLEAN_BACKLOG12_BFLAG As Integer

        Dim mBFlagValue As Integer
        Dim mFileNum As Integer
        Dim mTrnFileNum As Integer
        Dim mtest As String
        Dim mCountOfRecords As Long
        Dim mPullCount As String
        Dim rsPullcount As ADODB.Recordset
        Dim mCurRecordCount As Long

        Dim mWipAllSQL As String
        Dim rsWipAll As New ADODB.Recordset


        'On Error GoTo ehbtnUpdateLean_Click
        'open connection to springdesign
        With cnLean
            .ConnectionString = "DSN=SPRINGDESIGN;UID=sa;PWD="
            .Open()
        End With
        With cnLean2
            .ConnectionString = "DSN=SPRINGDESIGN;UID=sa;PWD="
            .Open()
        End With

        'open connection to syspro
        With cnSyspro
            .ConnectionString = "DSN=COMPANYM;UID=sa;pwd="
            .CommandTimeout = 300
            .Open()
        End With
        btnUpdateLean.Enabled = False
        Me.Cursor = Cursors.WaitCursor

    **
    Bunch of code to set up commands and select statements
    **
        'Initial command that will update the pull records as they are being processed.
        With cmdUpdatePull
            .let_ActiveConnection(cnLean)
            .CommandType = ADODB.CommandTypeEnum.adCmdStoredProc
            .CommandText = "sp_MX_Daily_UpdateMRPData"
            .CommandTimeout = 300
            .Parameters.Refresh()
        End With

    **
    More Code
    **

        Try
            rsPullItems.CursorLocation = ADODB.CursorLocationEnum.adUseClient
            'Get all the pull items.
            'rsPullItems = cmdPullItems.Execute
            rsPullItems.Open(mPullSQL, cnLean2)
            rsPullItems.ActiveConnection = Nothing

        Catch ex As Exception
            mtest = "Exception Message: " & ex.Message & vbCrLf & "SQLStatement: " & cmdPullItems.CommandText
            LogError("", mtest)
            rsPullItems = Nothing

        End Try

        Try
            'Initialize debugging and transaction files.
            mFileNum = FreeFile()
            FileOpen(mFileNum, "MXtestdebug.txt", OpenMode.Output, OpenAccess.Default, OpenShare.Shared)
            PrintLine(mFileNum, "Start " + Format(Now, "hh:mms"))
            mTrnFileNum = FreeFile()
            FileOpen(mTrnFileNum, "MXTrndebug.txt", OpenMode.Output, OpenAccess.Default, OpenShare.Shared)
        Catch ex As Exception
        End Try


        mCurRecordCount = 0
        'Start working.
        If IsNothing(rsPullItems) = False Then
            Do While rsPullItems.EOF = False
                mCurRecordCount += 1


                'Initialize parameter values
                cmdUpdatePull.Parameters("@stock_code").Value = mStockCode
                cmdUpdatePull.Parameters("@MINIMUM_QTY").Value = 0
                cmdUpdatePull.Parameters("@MAXIMUM_QTY").Value = 0
                cmdUpdatePull.Parameters("@SAFETYSTOCKQTY").Value = 0

                cmdUpdatePull.Parameters("@ON_HAND").Value = 0
                cmdUpdatePull.Parameters("@ON_ORDER").Value = 0
                cmdUpdatePull.Parameters("@BACKORDER_QTY").Value = 0
                cmdUpdatePull.Parameters("@MAKE_QTY").Value = 0
                cmdUpdatePull.Parameters("@RELEASE_QTY").Value = 0

                cmdUpdatePull.Parameters("@LEAN_BACKORDER").Value = 0.0
                cmdUpdatePull.Parameters("@LEAN_LATE1").Value = 0.0
                cmdUpdatePull.Parameters("@LEAN_LATE2").Value = 0.0
                cmdUpdatePull.Parameters("@LEAN_LATE3").Value = 0.0
                cmdUpdatePull.Parameters("@LEAN_LATE4").Value = 0.0

                cmdUpdatePull.Parameters("@LEAN_BACKLOG1").Value = 0.0
                cmdUpdatePull.Parameters("@LEAN_BACKLOG2").Value = 0.0
                cmdUpdatePull.Parameters("@LEAN_BACKLOG3").Value = 0.0
                cmdUpdatePull.Parameters("@LEAN_BACKLOG4").Value = 0.0
                cmdUpdatePull.Parameters("@LEAN_BACKLOG5").Value = 0.0
                cmdUpdatePull.Parameters("@LEAN_BACKLOG6").Value = 0.0
                cmdUpdatePull.Parameters("@LEAN_BACKLOG7").Value = 0.0
                cmdUpdatePull.Parameters("@LEAN_BACKLOG8").Value = 0.0
                cmdUpdatePull.Parameters("@LEAN_BACKLOG9").Value = 0.0
                cmdUpdatePull.Parameters("@LEAN_BACKLOG10").Value = 0.0
                cmdUpdatePull.Parameters("@LEAN_BACKLOG11").Value = 0.0
                cmdUpdatePull.Parameters("@LEAN_BACKLOG12").Value = 0.0

                'Initial flags used to determine if the individual sales order dates are
                'before or after the request date.
                cmdUpdatePull.Parameters("@LEAN_BACKORDER_BFLAG").Value = 0
                cmdUpdatePull.Parameters("@LEAN_LATE1_BFLAG").Value = 0
                cmdUpdatePull.Parameters("@LEAN_LATE2_BFLAG").Value = 0
                cmdUpdatePull.Parameters("@LEAN_LATE3_BFLAG").Value = 0
                cmdUpdatePull.Parameters("@LEAN_LATE4_BFLAG").Value = 0

                cmdUpdatePull.Parameters("@LEAN_BACKLOG1_BFLAG").Value = 0
                cmdUpdatePull.Parameters("@LEAN_BACKLOG2_BFLAG").Value = 0
                cmdUpdatePull.Parameters("@LEAN_BACKLOG3_BFLAG").Value = 0
                cmdUpdatePull.Parameters("@LEAN_BACKLOG4_BFLAG").Value = 0
                cmdUpdatePull.Parameters("@LEAN_BACKLOG5_BFLAG").Value = 0
                cmdUpdatePull.Parameters("@LEAN_BACKLOG6_BFLAG").Value = 0
                cmdUpdatePull.Parameters("@LEAN_BACKLOG7_BFLAG").Value = 0
                cmdUpdatePull.Parameters("@LEAN_BACKLOG8_BFLAG").Value = 0
                cmdUpdatePull.Parameters("@LEAN_BACKLOG9_BFLAG").Value = 0
                cmdUpdatePull.Parameters("@LEAN_BACKLOG10_BFLAG").Value = 0
                cmdUpdatePull.Parameters("@LEAN_BACKLOG11_BFLAG").Value = 0
                cmdUpdatePull.Parameters("@LEAN_BACKLOG12_BFLAG").Value = 0


                cmdUpdatePull.Parameters("@LEANMFG_STOCKSTATUS").Value = 0

        **
        **
                Try
                    'Get warehouse totals
                    rsWHTotals = New ADODB.Recordset
                    rsWHTotals = cmdWHTotals.Execute
                Catch ex As Exception
                    mtest = "Exception Message: " & ex.Message & vbCrLf & "SQLStatement: " & cmdWHTotals.CommandText
                    LogError(mStockCode, mtest)
                    rsWHTotals = Nothing

                End Try

        **
        **
                If IsNothing(rsWHTotals) = False Then
                    If rsWHTotals.EOF = False Then          'If there are values in the warehouse query.
                        **
                        BUNCH MORE CODE
                        **
                        cmdUpdatePull.Parameters("@stock_code").Value = mStockCode
                        cmdUpdatePull.Parameters("@MINIMUM_QTY").Value = mMinimumQty
                        cmdUpdatePull.Parameters("@MAXIMUM_QTY").Value = mMaximumqty
                        cmdUpdatePull.Parameters("@SAFETYSTOCKQTY").Value = mSafetyStockQty

                        cmdUpdatePull.Parameters("@ON_HAND").Value = mOnHand
                        cmdUpdatePull.Parameters("@ON_ORDER").Value = mOnOrder
            **
                        cmdUpdatePull.Parameters("@BACKORDER_QTY").Value = mbackorderqty
                        mmakeqty = (mMaximumqty - mOnHand)
                        If mmakeqty > 0 Then
                            cmdUpdatePull.Parameters("@MAKE_QTY").Value = mmakeqty
                        Else
                            cmdUpdatePull.Parameters("@MAKE_QTY").Value = 0
                        End If



                        'init varables.

                        cmdUpdatePull.Parameters("@LEAN_BACKORDER").Value = 0.0
                        cmdUpdatePull.Parameters("@LEAN_LATE1").Value = 0.0
                        cmdUpdatePull.Parameters("@LEAN_LATE2").Value = 0.0
                        cmdUpdatePull.Parameters("@LEAN_LATE3").Value = 0.0
                        cmdUpdatePull.Parameters("@LEAN_LATE4").Value = 0.0

                        cmdUpdatePull.Parameters("@LEAN_BACKLOG1").Value = 0.0
                        cmdUpdatePull.Parameters("@LEAN_BACKLOG2").Value = 0.0
                        cmdUpdatePull.Parameters("@LEAN_BACKLOG3").Value = 0.0
                        cmdUpdatePull.Parameters("@LEAN_BACKLOG4").Value = 0.0
                        cmdUpdatePull.Parameters("@LEAN_BACKLOG5").Value = 0.0
                        cmdUpdatePull.Parameters("@LEAN_BACKLOG6").Value = 0.0
                        cmdUpdatePull.Parameters("@LEAN_BACKLOG7").Value = 0.0
                        cmdUpdatePull.Parameters("@LEAN_BACKLOG8").Value = 0.0
                        cmdUpdatePull.Parameters("@LEAN_BACKLOG9").Value = 0.0
                        cmdUpdatePull.Parameters("@LEAN_BACKLOG10").Value = 0.0
                        cmdUpdatePull.Parameters("@LEAN_BACKLOG11").Value = 0.0
                        cmdUpdatePull.Parameters("@LEAN_BACKLOG12").Value = 0.0
                        mBackOrder = 0.0
                        mBackLate1 = 0.0
                        mBackLate2 = 0.0
                        mBackLate3 = 0.0
                        mBackLate4 = 0.0
                        mBackLog1 = 0.0
                        mBackLog2 = 0.0
                        mBackLog3 = 0.0
                        mBackLog4 = 0.0
                        mBackLog5 = 0.0
                        mBackLog6 = 0.0
                        mBackLog7 = 0.0
                        mBackLog8 = 0.0
                        mBackLog9 = 0.0
                        mBackLog10 = 0.0
                        mBackLog11 = 0.0
                        mBackLog12 = 0.0

                        'Initiale Binary flags that represent if the ship date is
                        'before or after the request date.
                        cmdUpdatePull.Parameters("@LEAN_BACKORDER_BFLAG").Value = 0
                        cmdUpdatePull.Parameters("@LEAN_LATE1_BFLAG").Value = 0
                        cmdUpdatePull.Parameters("@LEAN_LATE2_BFLAG").Value = 0
                        cmdUpdatePull.Parameters("@LEAN_LATE3_BFLAG").Value = 0
                        cmdUpdatePull.Parameters("@LEAN_LATE4_BFLAG").Value = 0

                        cmdUpdatePull.Parameters("@LEAN_BACKLOG1_BFLAG").Value = 0
                        cmdUpdatePull.Parameters("@LEAN_BACKLOG2_BFLAG").Value = 0
                        cmdUpdatePull.Parameters("@LEAN_BACKLOG3_BFLAG").Value = 0
                        cmdUpdatePull.Parameters("@LEAN_BACKLOG4_BFLAG").Value = 0
                        cmdUpdatePull.Parameters("@LEAN_BACKLOG5_BFLAG").Value = 0
                        cmdUpdatePull.Parameters("@LEAN_BACKLOG6_BFLAG").Value = 0
                        cmdUpdatePull.Parameters("@LEAN_BACKLOG7_BFLAG").Value = 0
                        cmdUpdatePull.Parameters("@LEAN_BACKLOG8_BFLAG").Value = 0
                        cmdUpdatePull.Parameters("@LEAN_BACKLOG9_BFLAG").Value = 0
                        cmdUpdatePull.Parameters("@LEAN_BACKLOG10_BFLAG").Value = 0
                        cmdUpdatePull.Parameters("@LEAN_BACKLOG11_BFLAG").Value = 0
                        cmdUpdatePull.Parameters("@LEAN_BACKLOG12_BFLAG").Value = 0

                        mBackOrder = 0.0
                        mBackLate1 = 0.0
                        mBackLate2 = 0.0
                        mBackLate3 = 0.0
                        mBackLate4 = 0.0
                        mBackLog1 = 0.0
                        mBackLog2 = 0.0
                        mBackLog3 = 0.0
                        mBackLog4 = 0.0
                        mBackLog5 = 0.0
                        mBackLog6 = 0.0
                        mBackLog7 = 0.0
                        mBackLog8 = 0.0
                        mBackLog9 = 0.0
                        mBackLog10 = 0.0
                        mBackLog11 = 0.0
                        mBackLog12 = 0.0

                        mLEAN_BACKORDER_BFLAG = 0
                        mLEAN_LATE1_BFLAG = 0
                        mLEAN_LATE2_BFLAG = 0
                        mLEAN_LATE3_BFLAG = 0
                        mLEAN_LATE4_BFLAG = 0
                        mLEAN_BACKLOG1_BFLAG = 0
                        mLEAN_BACKLOG2_BFLAG = 0
                        mLEAN_BACKLOG3_BFLAG = 0
                        mLEAN_BACKLOG4_BFLAG = 0
                        mLEAN_BACKLOG5_BFLAG = 0
                        mLEAN_BACKLOG6_BFLAG = 0
                        mLEAN_BACKLOG7_BFLAG = 0
                        mLEAN_BACKLOG8_BFLAG = 0
                        mLEAN_BACKLOG9_BFLAG = 0
                        mLEAN_BACKLOG10_BFLAG = 0
                        mLEAN_BACKLOG11_BFLAG = 0
                        mLEAN_BACKLOG12_BFLAG = 0

                        mBFlagValue = 0


            **
            more Code
            **
                        Try
                            rsSalesOrders = New ADODB.Recordset
                            rsSalesOrders.Open(mSalesSQL, cnSyspro)
                        Catch ex As Exception
                            mtest = "Exception Message: " & ex.Message & vbCrLf & "SQLStatement: " & mSalesSQL
                            LogError(mStockCode, mtest)
                            rsSalesOrders = Nothing
                        End Try

                        
                        If IsNothing(rsSalesOrders) = False Then
                            Do While rsSalesOrders.EOF = False
                            **
                            More Code
                            **
                                    Select Case mcol
                                        Case Is <= -5
                                            cmdUpdatePull.Parameters("@LEAN_BACKORDER").Value = cmdUpdatePull.Parameters("@LEAN_BACKORDER").Value + mNewVal
                                            'Check to see if the bit is marked. If not then mark it.
                                            If mBFlagValue <> (cmdUpdatePull.Parameters("@LEAN_BACKORDER_BFLAG").Value And mBFlagValue) Then
                                                cmdUpdatePull.Parameters("@LEAN_BACKORDER_BFLAG").Value = cmdUpdatePull.Parameters("@LEAN_BACKORDER_BFLAG").Value + mBFlagValue
                                            End If

                                            mBackOrder = mBackOrder + mNewVal

                                        Case Is = -4
                                            cmdUpdatePull.Parameters("@LEAN_LATE4").Value = cmdUpdatePull.Parameters("@LEAN_LATE4").Value + mNewVal
                                            'Check to see if the bit is marked. If not then mark it.
                                            If mBFlagValue <> (cmdUpdatePull.Parameters("@LEAN_LATE4_BFLAG").Value And mBFlagValue) Then
                                                cmdUpdatePull.Parameters("@LEAN_LATE4_BFLAG").Value = cmdUpdatePull.Parameters("@LEAN_LATE4_BFLAG").Value + mBFlagValue
                                            End If

                                            mBackLate4 = mBackLate4 + mNewVal

                                        Case Is = -3
                                            cmdUpdatePull.Parameters("@LEAN_LATE3").Value = cmdUpdatePull.Parameters("@LEAN_LATE3").Value + mNewVal
                                            'Check to see if the bit is marked. If not then mark it.
                                            If mBFlagValue <> (cmdUpdatePull.Parameters("@LEAN_LATE3_BFLAG").Value And mBFlagValue) Then
                                                cmdUpdatePull.Parameters("@LEAN_LATE3_BFLAG").Value = (cmdUpdatePull.Parameters("@LEAN_LATE3_BFLAG").Value + mBFlagValue)
                                            End If

                                            mBackLate3 = mBackLate3 + mNewVal

                                        Case Is = -2
                                            cmdUpdatePull.Parameters("@LEAN_LATE2").Value = cmdUpdatePull.Parameters("@LEAN_LATE2").Value + mNewVal
                                            'Check to see if the bit is marked. If not then mark it.
                                            If mBFlagValue <> (cmdUpdatePull.Parameters("@LEAN_LATE2_BFLAG").Value And mBFlagValue) Then
                                                cmdUpdatePull.Parameters("@LEAN_LATE2_BFLAG").Value = (cmdUpdatePull.Parameters("@LEAN_LATE2_BFLAG").Value + mBFlagValue)
                                            End If

                                            mBackLate2 = mBackLate2 + mNewVal

                                        Case -1 To 0
                                            cmdUpdatePull.Parameters("@LEAN_LATE1").Value = cmdUpdatePull.Parameters("@LEAN_LATE1").Value + mNewVal
                                            'Check to see if the bit is marked. If not then mark it.
                                            If mBFlagValue <> (cmdUpdatePull.Parameters("@LEAN_LATE1_BFLAG").Value And mBFlagValue) Then
                                                cmdUpdatePull.Parameters("@LEAN_LATE1_BFLAG").Value = (cmdUpdatePull.Parameters("@LEAN_LATE1_BFLAG").Value + mBFlagValue)
                                            End If

                                            mBackLate1 = mBackLate1 + mNewVal

                                        Case Is = 1
                                            cmdUpdatePull.Parameters("@LEAN_BACKLOG1").Value = cmdUpdatePull.Parameters("@LEAN_BACKLOG1").Value + mNewVal
                                            'Check to see if the bit is marked. If not then mark it.
                                            If mBFlagValue <> (cmdUpdatePull.Parameters("@LEAN_BACKLOG1_BFLAG").Value And mBFlagValue) Then
                                                cmdUpdatePull.Parameters("@LEAN_BACKLOG1_BFLAG").Value = (cmdUpdatePull.Parameters("@LEAN_BACKLOG1_BFLAG").Value + mBFlagValue)
                                            End If

                                            mBackLog1 = mBackLog1 + mNewVal
                                        Case Is = 2
                                            cmdUpdatePull.Parameters("@LEAN_BACKLOG2").Value = cmdUpdatePull.Parameters("@LEAN_BACKLOG2").Value + mNewVal
                                            'Check to see if the bit is marked. If not then mark it.
                                            If mBFlagValue <> (cmdUpdatePull.Parameters("@LEAN_BACKLOG2_BFLAG").Value And mBFlagValue) Then
                                                cmdUpdatePull.Parameters("@LEAN_BACKLOG2_BFLAG").Value = (cmdUpdatePull.Parameters("@LEAN_BACKLOG2_BFLAG").Value + mBFlagValue)
                                            End If

                                            mBackLog2 = mBackLog2 + mNewVal

                                        Case Is = 3
                                            cmdUpdatePull.Parameters("@LEAN_BACKLOG3").Value = cmdUpdatePull.Parameters("@LEAN_BACKLOG3").Value + mNewVal
                                            If mBFlagValue <> (cmdUpdatePull.Parameters("@LEAN_BACKLOG3_BFLAG").Value And mBFlagValue) Then
                                                cmdUpdatePull.Parameters("@LEAN_BACKLOG3_BFLAG").Value = (cmdUpdatePull.Parameters("@LEAN_BACKLOG3_BFLAG").Value + mBFlagValue)
                                            End If

                                            mBackLog3 = mBackLog3 + mNewVal

                                        Case Is = 4
                                            cmdUpdatePull.Parameters("@LEAN_BACKLOG4").Value = cmdUpdatePull.Parameters("@LEAN_BACKLOG4").Value + mNewVal
                                            If mBFlagValue <> (cmdUpdatePull.Parameters("@LEAN_BACKLOG4_BFLAG").Value And mBFlagValue) Then
                                                cmdUpdatePull.Parameters("@LEAN_BACKLOG4_BFLAG").Value = (cmdUpdatePull.Parameters("@LEAN_BACKLOG4_BFLAG").Value + mBFlagValue)
                                            End If

                                            mBackLog4 = mBackLog4 + mNewVal

                                        Case Is = 5
                                            cmdUpdatePull.Parameters("@LEAN_BACKLOG5").Value = cmdUpdatePull.Parameters("@LEAN_BACKLOG5").Value + mNewVal
                                            If mBFlagValue <> (cmdUpdatePull.Parameters("@LEAN_BACKLOG5_BFLAG").Value And mBFlagValue) Then
                                                cmdUpdatePull.Parameters("@LEAN_BACKLOG5_BFLAG").Value = (cmdUpdatePull.Parameters("@LEAN_BACKLOG5_BFLAG").Value + mBFlagValue)
                                            End If

                                            mBackLog5 = mBackLog5 + mNewVal

                                        Case Is = 6
                                            cmdUpdatePull.Parameters("@LEAN_BACKLOG6").Value = cmdUpdatePull.Parameters("@LEAN_BACKLOG6").Value + mNewVal
                                            If mBFlagValue <> (cmdUpdatePull.Parameters("@LEAN_BACKLOG6_BFLAG").Value And mBFlagValue) Then
                                                cmdUpdatePull.Parameters("@LEAN_BACKLOG6_BFLAG").Value = (cmdUpdatePull.Parameters("@LEAN_BACKLOG6_BFLAG").Value + mBFlagValue)
                                            End If

                                            mBackLog6 = mBackLog6 + mNewVal

                                        Case Is = 7
                                            cmdUpdatePull.Parameters("@LEAN_BACKLOG7").Value = cmdUpdatePull.Parameters("@LEAN_BACKLOG7").Value + mNewVal
                                            If mBFlagValue <> (cmdUpdatePull.Parameters("@LEAN_BACKLOG7_BFLAG").Value And mBFlagValue) Then
                                                cmdUpdatePull.Parameters("@LEAN_BACKLOG7_BFLAG").Value = (cmdUpdatePull.Parameters("@LEAN_BACKLOG7_BFLAG").Value + mBFlagValue)
                                            End If

                                            mBackLog7 = mBackLog7 + mNewVal

                                        Case Is = 8
                                            cmdUpdatePull.Parameters("@LEAN_BACKLOG8").Value = cmdUpdatePull.Parameters("@LEAN_BACKLOG8").Value + mNewVal
                                            If mBFlagValue <> (cmdUpdatePull.Parameters("@LEAN_BACKLOG8_BFLAG").Value And mBFlagValue) Then
                                                cmdUpdatePull.Parameters("@LEAN_BACKLOG8_BFLAG").Value = (cmdUpdatePull.Parameters("@LEAN_BACKLOG8_BFLAG").Value + mBFlagValue)
                                            End If

                                            mBackLog8 = mBackLog8 + mNewVal

                                        Case Is = 9
                                            cmdUpdatePull.Parameters("@LEAN_BACKLOG9").Value = cmdUpdatePull.Parameters("@LEAN_BACKLOG9").Value + mNewVal
                                            If mBFlagValue <> (cmdUpdatePull.Parameters("@LEAN_BACKLOG9_BFLAG").Value And mBFlagValue) Then
                                                cmdUpdatePull.Parameters("@LEAN_BACKLOG9_BFLAG").Value = (cmdUpdatePull.Parameters("@LEAN_BACKLOG9_BFLAG").Value + mBFlagValue)
                                            End If

                                            mBackLog9 = mBackLog9 + mNewVal

                                        Case Is = 10
                                            cmdUpdatePull.Parameters("@LEAN_BACKLOG10").Value = cmdUpdatePull.Parameters("@LEAN_BACKLOG10").Value + mNewVal
                                            If mBFlagValue <> (cmdUpdatePull.Parameters("@LEAN_BACKLOG10_BFLAG").Value And mBFlagValue) Then
                                                cmdUpdatePull.Parameters("@LEAN_BACKLOG10_BFLAG").Value = (cmdUpdatePull.Parameters("@LEAN_BACKLOG10_BFLAG").Value + mBFlagValue)
                                            End If

                                            mBackLog10 = mBackLog10 + mNewVal

                                        Case Is = 11
                                            cmdUpdatePull.Parameters("@LEAN_BACKLOG11").Value = cmdUpdatePull.Parameters("@LEAN_BACKLOG11").Value + mNewVal
                                            If mBFlagValue <> (cmdUpdatePull.Parameters("@LEAN_BACKLOG11_BFLAG").Value And mBFlagValue) Then
                                                cmdUpdatePull.Parameters("@LEAN_BACKLOG11_BFLAG").Value = (cmdUpdatePull.Parameters("@LEAN_BACKLOG11_BFLAG").Value + mBFlagValue)
                                            End If

                                            mBackLog11 = mBackLog11 + mNewVal

                                        Case Is = 12
                                            cmdUpdatePull.Parameters("@LEAN_BACKLOG12").Value = cmdUpdatePull.Parameters("@LEAN_BACKLOG12").Value + mNewVal
                                            If mBFlagValue <> (cmdUpdatePull.Parameters("@LEAN_BACKLOG12_BFLAG").Value And mBFlagValue) Then
                                                cmdUpdatePull.Parameters("@LEAN_BACKLOG12_BFLAG").Value = (cmdUpdatePull.Parameters("@LEAN_BACKLOG12_BFLAG").Value + mBFlagValue)
                                            End If

                                            mBackLog12 = mBackLog12 + mNewVal


                                    End Select
                                End If
                                rsSalesOrders.MoveNext()
                            Loop
                            rsSalesOrders.Close()
                            rsSalesOrders = Nothing
                        End If

            **
            More Code
            **




                        cmdUpdatePull.Parameters("@LEANMFG_STOCKSTATUS").Value = mStockStatus


            **
            More Code
            **

                    Else
                        cmdUpdatePull.Parameters("@stock_code").Value = mStockCode
                    End If
                    rsWHTotals.Close()
                    rsWHTotals = Nothing
                Else 'rswhtotal is nothing
                    cmdUpdatePull.Parameters("@stock_code").Value = mStockCode
                End If  'rswhtotal is nothing


                'Update the record in DesignLean
                Try
            *********
            This is where it fails
            *********
                    cmdUpdatePull.Execute()

                Catch ex As Exception
                    mtest = "ERROR executing cmdupdatepull" & vbCrLf & "Exception Message: " & ex.Message & vbCrLf
                    LogError(mStockCode, mtest)
                    PrintLine(mTrnFileNum, mtest)

                End Try

                PrintLine(mTrnFileNum, "Finished to update cmdUpdatePull")


                'Move to next record
                rsPullItems.MoveNext()
                PrintLine(mTrnFileNum, "Moving to next rsPullItems")

            Loop
            rsPullItems.Close()
            rsPullItems = Nothing
            cmdUpdatePull = Nothing
            rsSalesOrders = Nothing
            rsWipMaster = Nothing
        End If

        PrintLine(mTrnFileNum, "End of Pull Items LOOP")
        FileClose(mTrnFileNum)


        PrintLine(mFileNum, "ending" + Format(Now, "hh:mms"))
        FileClose(mFileNum)
        ProgressBar1.Value = mCountOfRecords + 100
        btnUpdateLean.Enabled = True
        Me.Cursor = Cursors.Default

        MsgBox("done", MsgBoxStyle.OKOnly, "MXLean Calculation Status")




        End

        Exit Sub

View Replies !   View Related
No Processes On The End Of PIPE
I had to move my developed software onto another computer in order to demo this.  The new computer has IIS installed as well as VS2005 and SQL Server 2005.  When I try to execute I get this error.

 

A connection was successfully established with the server, but then an error occurred during the login process. (provider: Shared Memory Provider, error: 0 - No process is on the other end of the pipe.)

I have worked on this problem for two days now and have to demo it first thing Monday.  Any help would be appreciated. 

 

View Replies !   View Related
SQL String Split With | Pipe
I've got a dilemma here. I'm currently reading records into EasyListBox (ELB) dropdownlist. The criteria in the dropdownlist is based on the select from another ELB dropdownlist. The problem is that the data contains rows with pipes that serve as separters. For example, one of the options that comes back now might be 123 | 456 | 789. I need to be able to make each of them its own row in the dropdownlist. Can anyone advice? Most records don't have any pipes and come throught fine, but some dont.
My code below: 
Dim sAT As String = Replace(elbAttribute.SelectedValue, "'", "''") 
Dim adapter As New SQLDataAdapter("Select Feature_Type As Attribute_Name, FEATURE_TEXT_VALUE as Attribute_Value, (select distinct FILTER_FAMILY_FEATURE_EXCLUDED.FEATURE_TYPE_ID from FILTER_PROFILES, FILTER_FAMILY_FEATURE_EXCLUDED, FAMILY_ALLOWED_FEATURE_TYPES, SHARED_FEATURE_TYPES, SHARED_FEATURE_VALUES where FILTER_PROFILES.FILTER_PROFILE_NAME = 'MAQ' And FILTER_PROFILES.FILTER_PROFILE_ID = FILTER_FAMILY_FEATURE_EXCLUDED.FILTER_PROFILE_ID And FAMILY_ALLOWED_FEATURE_TYPES.FAMILY_ID = FILTER_FAMILY_FEATURE_EXCLUDED.FAMILY_ID And FILTER_FAMILY_FEATURE_EXCLUDED.FEATURE_TYPE_ID = SHARED_FEATURE_TYPES.FEATURE_TYPE_ID And (SHARED_FEATURE_TYPES.Feature_Type_ID = SHARED_FEATURE_VALUES.Feature_Type_ID And left(FEATURE_TYPE, 4) <> 'CPLV' And Feature_Type = '" & sAT & "')) As ExclusionFlag From SHARED_FEATURE_TYPES, SHARED_FEATURE_VALUES, PRODUCT_FEATURE_VALUES Where PRODUCT_FEATURE_VALUES.FEATURE_VALUE_ID = SHARED_FEATURE_VALUES.Feature_Value_ID And SHARED_FEATURE_TYPES.Feature_Type_ID = SHARED_FEATURE_VALUES.Feature_Type_ID And left(FEATURE_TYPE, 4) <> 'CPLV' And Feature_Type = '" & sAT & "' UNION Select distinct Column_Name As Attribute_Name, SMALL_TEXT_VALUE As Attribute_Value, (select FILTER_ATTRIBUTES_EXCLUDED.EXT_ATT_ID from FILTER_PROFILES, FILTER_ATTRIBUTES_EXCLUDED where FILTER_PROFILES.FILTER_PROFILE_NAME = 'MAQ' And FILTER_PROFILES.FILTER_PROFILE_ID = FILTER_ATTRIBUTES_EXCLUDED.FILTER_PROFILE_ID And FILTER_ATTRIBUTES_EXCLUDED.EXT_ATT_ID = EXTENDED_ATTRIBUTES.EXT_ATT_ID) As ExclusionFlag From EXTENDED_ATTRIBUTE_VALUES, EXTENDED_ATTRIBUTES, PRODUCTS Where PRODUCTS.PRODUCT_ID = EXTENDED_ATTRIBUTE_VALUES.PRODUCT_ID And not SMALL_TEXT_VALUE is null And EXTENDED_ATTRIBUTE_VALUES.EXT_ATT_ID > 1499 And EXTENDED_ATTRIBUTE_VALUES.EXT_ATT_ID = EXTENDED_ATTRIBUTES.EXT_ATT_ID And Column_Name = '" & sAT & "'", myConnection) Dim dt As New DataTable()    adapter.Fill(dt) elbValue.DataSource = dt    elbValue.DataBind() 

View Replies !   View Related
Pipe Delimiter Problem
Can somebody help me with a delimiter problem I have.I have several PIPE (|) delimted text files which I need to import toSQL.With one of the files I keep encountering the following error;"Error at Source for Row 27753. Errors encountered so far in this task:1. Column Delimter not found."I suspect the problem is that one record (and possibly more) has a PIPE(|) within a field, because some of the fields contain free text.Getting an export of the file again using a different delimter like tabor comma will not work as these characters occur throughout the file.I'm open to suggestions as to how to resolve this and really need toget a solution soon.One solution I was thinking of, but do not know how to execute is tocount the number of PIPEs on each record and then manually change therecords which have count which is inconsistent with the rest of thefile.I've also tried importing to Access first and then SQL, as this hasworked for me in the past, but it did not work.Regards,Ciarán

View Replies !   View Related
Size Of Pipe To Network
My group has recently begun ramping up #of users from 5-10 to 50 concurrent. I'm currently using a 10Mb/s Ethernet but am not sure if there is a fiber
or multiplexing solution that I could use to increase output. Basically, we're looking at up to 50 heavy duty data pulls (50MB+) at any one time.

Thanx,

Joe

View Replies !   View Related
Using Pipe Like Symbols To Add Parentheses??
Hi all,

I was told recently that doing the following:

SELECT ProductName ||' , '|| Category FROM PRODUCTS

would add parentheses around the ProductName field data. However, after trying it out for myself I found it did no such thing.

Does this look familiar to anyone? Is it syntax I have wrong or something?

Butterfly82

View Replies !   View Related
Exporting To Pipe-delimited
Has any one managed to get Report Manager to have the option to export to pipe delimited? There are documents out there how to do it on SSRS; I need it on Report Manager. Any Suggestions?

DGraham
vbwrangler@yahoo.com

View Replies !   View Related
Connecting To An SQL Named Pipe Alias
 

Hi All , I have been racking my head on this for the last two days and really it should be a no brainier. Anyways I can only assume that I€™m missing something here but...

 

In a nut shell I am attempting to connect to a new SQL Alias that i have created by simply adding the following in the client network utility

Current SQL server name DASQL

Default instance

 

Alias Name: TASQL

Server Name:  DASQL

Pipe Name: \DASQLpipesqlquery

 

I can connect the new alias via the local (server consol) yet when i attempt to connect remotely it times out as if it can't find the server.

 

Any Thought?

Thanks
 

View Replies !   View Related
Linked Server With Named Pipe
 

Linked server is created as (from SQL 2005 to SQL 2000)


EXEC sp_addlinkedserver @server = @SPKServerName,

@srvproduct = '',

@provider = 'SQLOLEDB',

@datasrc = @SPKdatasrc        //np:remoteservername
 

exec sp_serveroption @server = @SPKServerName

, @optname = 'rpc'

, @optvalue = 'on'

exec sp_serveroption @server = @SPKServerName

, @optname = 'rpc out'

, @optvalue = 'on'

exec sp_serveroption @server = @SPKServerName

, @optname = 'data access'

, @optvalue = 'on'

 
when asp.net applicaiton  hits the Stored Procedure, it uses Linked server to get data from remote server. It fails with exception message
 
OLE DB provider "SQLNCLI" for linked server "ServerName" returned message "Login timeout expired".
OLE DB provider "SQLNCLI" for linked server "ServerName" returned message "An error has occurred while establishing a connection to the server. When connecting to SQL Server 2005, this failure may be caused by the fact that under the default settings SQL Server does not allow remote connections.".
Msg 5, Level 16, State 1, Line 0
Named Pipes Provider: Could not open a connection to SQL Server [5].

 
Any idea how to solve this?
 
Regards,

View Replies !   View Related
Tokenizing Column Data Using Pipe Symbol
Hey everyone,

 I'm working of a project that has each row of column data stored in this format: AAChieve Initiative - Business Development Consultant|Marketing|4F|210710
 Is there a way I can break this rows apart with TSQL based of the | symbol? Thanks in advance!
 

View Replies !   View Related
SqlContext.Pipe.Send Flush To Display
I have a very long running sqlclr sp (fuzzy matching thousands of addresses) and I just spent 45 min adding onprogress delegates to the classes (had to back up after trying to use eventing, synchronization is not allowed in safe), so I could see the progress output in the sql ide. To get that warm and fuzzy "it's actually working, and I can leave tonight" feeling.

But... of course my slick onprogress messages are not even displayed until the process completes. Or is canceled. I've noticed that in some cases (nothing that I've written), progress information is shown while actually in progress, and in other cases it dumps it all out at completion.

Is this behavior controllable? Is there a way to flush or prevent the buffering in the first place?

View Replies !   View Related
Help!!!Cannot Connect To Remote Sql Server By Named Pipe
Hi, all,

 

I installed sql server 2005 express on a server with window server 2003 SP1 and tried to connect it from a remote computer with vista installed. 

I have already enabled named pipe and tcp/ip protocol for instance SQLEXPRESS on the server, and started sql server browser as well. Of course, I also enabled local and remote connection using tcp/ip and named pipe by sql server surface area configuration tool.

In this senario, I can connect to server locally or remotely by tcp/ip and connect to server locally by named pipe(c>sqlcmd -S \192.168.1.100pipeMSSQL$SQLEXPRESSsqlquery -U * -P *), but I can not connect to server  remotely using same command line.

According to some article from MSDN, it might be caused by firewall, but I already disabled my firewall. Moreover, I used tools like makepipe.exe and readpipe.exe, they didn't work too. Why the 2 computers can't create connection using named pipe protocol.

 

Thanks.

 

Johonson Chan

 

 

View Replies !   View Related
How Can I Create A Pipe-Delimited Export Option?
i've read that it's possible and this is what i entered in my rsreportserver.config file.

<Extension Name="PIPE" Type="Microsoft.ReportingServices.Rendering.CsvRenderer.CsvReport,Microsoft.ReportingServices.CsvRendering"/>
                <OVerrideNames>
                    <Name Language="en-US">PIPE Delimited CSV</Name>
                </OverrideNames>
                <Configuration>
                    <DeviceInfo>
                        <FieldDelimiter>"%7C"</FieldDelimiter>
                    </DeviceInfo>
                </COnfiguration>
            </Extension>

I'm following the directions of the guide and it seems to crash my report server. can you help out? thanks in advance.

View Replies !   View Related
Why Can I Nolonger Backup My Database To A Named Pipe?
Why can I no longer backup a database to a named pipe in SQL Server 2005? Named pipes are much easier to work with than VDI (and VDI is covered in obscurities). I really want the ability to dump a database to a named pipe reimplementation if it€™s been removed. I hate to think of the cost of redesigning our backup applications. Can I force a PIPE dump device into the sysdevices table? Any suggestions? (and DO NOT tell me to use VDI, as it is absurdly cumbersome and loaded with unnecessary dependencies)
 
BACKUP DATABASE <name> TO PIPE=\.pipeMyPipeName

View Replies !   View Related
Can't Connect To SQL Server 2005 With Pet Shop 4.0 : No Process At Other End Of Pipe?!
I downloaded MS Pet Shop 4.0 recently for best-practice training purposes. The installation went smoothly with a SQL Server 2005 backend. At first I had a problem authenticating the mspetshop4 user in the database, but that was solved by fixing some settings with the password policy. Now the mspetshop4 user is authenticated properly, but I came across this error instead:Server Error in '/Web' Application.
A connection was successfully established with the server, but then an error occurred during the login process. (provider: Shared Memory Provider, error: 0 - No process is on the other end of the pipe.)
Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code.

Exception Details: System.Data.SqlClient.SqlException: A connection was successfully established with the server, but then an error occurred during the login process. (provider: Shared Memory Provider, error: 0 - No process is on the other end of the pipe.)

Source Error:

Line 216:
Line 217: if (conn.State != ConnectionState.Open)
Line 218: conn.Open();
Line 219:
Line 220: cmd.Connection = conn;


Source File: C:Program FilesMicrosoft.NET Pet Shop 4.0DBUtilitySQLHelper.cs Line: 218

Stack Trace:

[SqlException (0x80131904): A connection was successfully established with the server, but then an error occurred during the login process. (provider: Shared Memory Provider, error: 0 - No process is on the other end of the pipe.)]
System.Data.SqlClient.SqlInternalConnection.OnError(SqlException exception, Boolean breakConnection) +117
System.Data.SqlClient.TdsParser.ThrowExceptionAndWarning(TdsParserStateObject stateObj) +346
System.Data.SqlClient.TdsParserStateObject.ReadSniError(TdsParserStateObject stateObj, UInt32 error) +619
System.Data.SqlClient.TdsParserStateObject.ReadSni(DbAsyncResult asyncResult, TdsParserStateObject stateObj) +224
System.Data.SqlClient.TdsParserStateObject.ReadPacket(Int32 bytesExpected) +113
System.Data.SqlClient.TdsParserStateObject.ReadBuffer() +59
System.Data.SqlClient.TdsParserStateObject.ReadByte() +36
System.Data.SqlClient.TdsParser.Run(RunBehavior runBehavior, SqlCommand cmdHandler, SqlDataReader dataStream, BulkCopySimpleResultSet bulkCopyHandler, TdsParserStateObject stateObj) +181
System.Data.SqlClient.SqlInternalConnectionTds.CompleteLogin(Boolean enlistOK) +56
System.Data.SqlClient.SqlInternalConnectionTds.OpenLoginEnlist(SqlConnection owningObject, SqlConnectionString connectionOptions, String newPassword, Boolean redirectedUserInstance) +1083
System.Data.SqlClient.SqlInternalConnectionTds..ctor(DbConnectionPoolIdentity identity, SqlConnectionString connectionOptions, Object providerInfo, String newPassword, SqlConnection owningObject, Boolean redirectedUserInstance) +272
System.Data.SqlClient.SqlConnectionFactory.CreateConnection(DbConnectionOptions options, Object poolGroupProviderInfo, DbConnectionPool pool, DbConnection owningConnection) +688
System.Data.ProviderBase.DbConnectionFactory.CreatePooledConnection(DbConnection owningConnection, DbConnectionPool pool, DbConnectionOptions options) +82
System.Data.ProviderBase.DbConnectionPool.CreateObject(DbConnection owningObject) +558
System.Data.ProviderBase.DbConnectionPool.UserCreateRequest(DbConnection owningObject) +126
System.Data.ProviderBase.DbConnectionPool.GetConnection(DbConnection owningObject) +651
System.Data.ProviderBase.DbConnectionFactory.GetConnection(DbConnection owningConnection) +160
System.Data.ProviderBase.DbConnectionClosed.OpenConnection(DbConnection outerConnection, DbConnectionFactory connectionFactory) +122
System.Data.SqlClient.SqlConnection.Open() +229
PetShop.DBUtility.SqlHelper.PrepareCommand(SqlCommand cmd, SqlConnection conn, SqlTransaction trans, CommandType cmdType, String cmdText, SqlParameter[] cmdParms) in C:Program FilesMicrosoft.NET Pet Shop 4.0DBUtilitySQLHelper.cs:218
PetShop.DBUtility.SqlHelper.ExecuteReader(String connectionString, CommandType cmdType, String cmdText, SqlParameter[] commandParameters) in C:Program FilesMicrosoft.NET Pet Shop 4.0DBUtilitySQLHelper.cs:127
PetShop.SQLServerDAL.Category.GetCategories() in C:Program FilesMicrosoft.NET Pet Shop 4.0SQLServerCategory.cs:27
PetShop.BLL.Category.GetCategories() in C:Program FilesMicrosoft.NET Pet Shop 4.0BLLCategory.cs:20
PetShop.Web.NavigationControl.BindCategories() in c:Program FilesMicrosoft.NET Pet Shop 4.0WebControlsNavigationControl.ascx.cs:53
PetShop.Web.NavigationControl.Page_Load(Object sender, EventArgs e) in c:Program FilesMicrosoft.NET Pet Shop 4.0WebControlsNavigationControl.ascx.cs:27
System.Web.Util.CalliHelper.EventArgFunctionCaller(IntPtr fp, Object o, Object t, EventArgs e) +31
System.Web.Util.CalliEventHandlerDelegateProxy.Callback(Object sender, EventArgs e) +68
System.Web.UI.Control.OnLoad(EventArgs e) +88
System.Web.UI.Control.LoadRecursive() +74
System.Web.UI.Control.LoadRecursive() +158
System.Web.UI.BasePartialCachingControl.LoadRecursive() +61
System.Web.UI.Control.LoadRecursive() +158
System.Web.UI.Control.LoadRecursive() +158
System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +3035


Version Information: Microsoft .NET Framework Version:2.0.50727.42; ASP.NET Version:2.0.50727.42Now I'm clueless. What does No process at the other end of the pipe mean? 

View Replies !   View Related
Automatic Backup Of The Pubs And Msdb Database...pipe
While checking the SQL server error logs, I notice that the pubs and msdb database are automatically being backed up, even though no job is set up to do so....in addition, its backing up to a directory that I cannot find on our network.....does anybody have an idea of whats going on ?

the path its backingup to is:
(FILE=1, TYPE=PIPE: {'.pipedbasql70dbagent0s0'}).

Thank you in advance

View Replies !   View Related
SqlServer Connection String For JDBC When Using Named Pipe
Hi!

I'm writing a java application that queries sqlserver 2005 (and 2000). In case the sql browser service is stopped I need to use the named pipe property or the port property, right?
But how could the program know at runtime what is the port and what is the pipe name? And how should a connection string to sqlserver 2005 (and 2000) that includes named pipe, look like?

Thanks!

View Replies !   View Related
SQL Limit Of Demilted Pipe Characters Passed As Parameter To Sql Query
I am not sure about the architecture of the Issue Tracker and hence not sure if it applies here. But I will post in any case and wait for users on this forums comments as well.



===========Earlier post==================
This question is regarding the architecture of TimeEntry.
In some programs it builds an arrayList for Master-detail type of relationship and when user is ready to save it by clicking 'submit' it build a variable with pipe delimited fields.
This is then passed to a sql query.

This to me does not seem to be an efficient manner. Because the max character is 1500 chars as parameter to SQL query.


I was wondering if instead I could store it as an XML and then use the XML to import in to SQL.


Any ideas is greatly appreciated, I am running in to problems where my variable construct does increase to more than 1500 chars. Any thoughts are much appreciated in this regards.

Regards,
MillenniumIte.

View Replies !   View Related
Install Problem: Shared Memory Provider: No Process Is On The Other End Of The Pipe.
When I try to install MsSQL Server 2005 Develop Edition do I get the error:

[Microsoft][SQL Native Client]Shared Memory Provider: No process is on the other end of the pipe.

I have trying to look at other posts on this forum and elsewhere, but cant find any solution that works for me - mainly cuz all solutions is after the installing.

Before trying to install MsSQL Server 2005 Dev did I install VS.Net 2005 Pro. First did the Native Client make troubles, but got it to work with reinstalling it, but now does the SQL setup stop on every try with the error above.

I have tried looking if the MSSQLServer is running when it tries to connect during install, and everything says it is running (Services, Net start, Taskman.).

I dont run any special setup on my system - it is a normal Windows XP Pro SP2 with all updates. I just need the SQL server installed so I can develop locally without access to out main SQL server.

I have been using MsSQL 2000 before and never had any problems, but the 2005 keep on bugging me.

The only solution I havent tried is to reinstall Windows itself, but I will pref. not to do so.

 

And to be honest, then have I no idea what a "pipe" is - I am used to develop webapplications and not so much on server maintaince/troubleshooting.

 

Need some more information? Then just ask.

 

 

 

View Replies !   View Related
JDBC Sample Code Using Named Pipe And SQLServer 2005 Driver?
Hi,

Does anybody have a working Java code sample that connects to an SQLServer 2005 database on a remote host, via the default named pipe, from a client using the SQLServer 2005 JDBC driver?  Could you post it, or a pointer to it?

I've gotten java.sql DriverManager.getConnection() to work fine with TCP/IP connections before.  But I'm a newbie with named pipes, and unclear on how the connection string/properties are different.  I've tried to piece it together from multiple docs and threads, but haven't found sample code that quite fits my situation.  I think a simple working example would best clarify the syntax.

The server is not using SQL Express.  Most SQLServer configuration options are defaults; the named pipes protocol is enabled. 

Thanks 

 

View Replies !   View Related
Any Ideas
I need for a database to give my users and indication that a renewal has been complete. Basically what happens is every year once a month a report is generated from sql of how many employees need their gaming license renewed the filter is based off of a field called final suit. I need to find a way to let them know through the database that an employee has been renewed. anyone got any ideas??

View Replies !   View Related
Any Ideas
Hi:


I created a Temp Table that hold a collection of records by date.

I need to do create calculation that give me the Total fuel used per day:

c.rcpt_nom_vol -c.rcpt_fuel- c.rcpt_act_vol = Total Fuel used per day.
Then pull the result of this calculation and assign the result to the specific day of the month. For example is the Calculation Result is 4.25 on Feb 12, 2007. Then the record is insert into a Temp Table as 4.25 day #12.

Does anyone has an idea of how to do this? Thanks and Let me know!!!!





Create Table #TP_Daily_Imb(
contract_nbr char (8),
contract_sub_type char (3),
contract_type_code char (3),
current_expirtn_date datetime,
nom_id char(12),
nom_rev_nbr char(2),
beg_eff_date datetime,
rcpt_dlvry_ind float,
rcpt_nom_vol float,
rcpt_fuel float,
rcpt_act_vol float,
end_eff_date_DGC datetime)



SELECT Distinct a.contract_nbr, a.contract_sub_type, a.contract_type_code,a.current_expirtn_date,
b.nom_id, b.nom_rev_nbr,
c.beg_eff_date, c.rcpt_dlvry_ind, c.rcpt_nom_vol, c.rcpt_fuel,c.rcpt_act_vol
from TIES_Gathering.dbo.contract a
Inner Join TIES_Gathering.dbo.NOm b on a.contract_nbr = b.contract_nbr
Inner Join TIES_Gathering.dbo.Nom_vol_detail c on c.Nom_id = b.Nom_id
where (a.contract_sub_type = 'INT') and (a.Contract_type_code ='GTH')
and (DATEADD(mm, DATEDIFF(mm,0,getdate()), 0) < a.current_expirtn_date)
and (c.rcpt_dlvry_ind ='R')

View Replies !   View Related
Need Ideas
I have a table with 18,000 records with beg_eff_date since the year 2005. I need to separate the entries based on their daily activity. For example if Beg_eff_date 01/0/2005 then day is "1" if Beg_eff_date is 01/27/2005 then the day is "27".
Repeating the same process until I reach "NOW" present time. Any ideas of how can I do this?

Thank You for all your previous help and the current one!!

View Replies !   View Related
Ideas Anyone
Hi all
I am fishing for ideas on the following scenario and hope someone can point me in the best direction.

I create a new table and insert data from relevant other tables but i want to set the data in the new table colums to set widths that have leading zeros where applicable.
I.E the new table column is varchar (10) the data going in to the column is coming from another table where the size was varchar (8) but the data was only 2 characters in size so i want to pad it out to the full new varchar (10) with leading zeros if that makes sence.

I am really just trying to get some ideas on the best possible way to do this thanks.

View Replies !   View Related
Looking For Ideas...
I have a text file that I am importing in a data flow task. Not all of the rows are the same, there are "header" rows that contain a company code.

What I want to do is keep that company code and append that to the row of text that I am writing to a CSV file.

Since you cannot change variables until the post execute, what are my options?

Hope that's clear

Thanks!

BobP

View Replies !   View Related
Looking For Ideas
Hi everyone
 
We've got currenlty around 500 dts 2000 in production.
 
In order to know in what ETL processes we have Oracle connections, or FTP tasks or whatever, we did a VB6 app using dtspkg.dll which load all the properties for each DTS into Sql server tables. So that, then you could see from a specific DTS how many connections, Sql Tasks it had and so on..
 
How to accomplish the same with SSIS? I know, doing the same but using .Net, of course, but is there any else approximation? I am little bit concerned when we will have hundreds of them up.
 
Maybe 2005 is offering this feature automatically, I don't know.
 
Thanks in advance for your time/advices/ideas,
 
 
 

View Replies !   View Related
Ideas
Am working on an SSIS project and I am not sure how to handle this situation. I have four tables in two completely separate networks {AB} {CD} and I want to populate one of the tables D based on the information from tables A and C with the following scenario I get data from from table A make a lookup transformation to check what did has changed if the data has changed or if there is a new entry in table A get the identity key from table C {they both share a common field} and add the identity key as part of my data inserted in table D



 
A ----lookup <


data that has changed --- get the identity key from C ---- insert data from table A + identity key into D

View Replies !   View Related
Out Of Ideas
 
 
I have some performance issues which I can not explain; The database it is running on on a dedicated SQL server box with 8 cpu€™s 4 GB memory. Users are connecting with a fat client.
 
 There is hardly on users using it but they are getting long delays. So I kicked of a profiler trace and sp_blocker. I noticed some queries taking over 30 sec to complete in profiler but when I run them in query analyzer they run in under a second.
 
I check the output from the blocker and there was no blocking over that time period and it was the only processes actually running.
 
How can it be so slow I have run out of ideas please any ideas would be welcome
 
Many thanks

View Replies !   View Related
Connection Broken
Hi
I have a problem, when i do a select records from the production server which is situated in melbourne,around 20,000 records need to be fetched but sunddenly after 13,000 records the connection is broken
why is this heppening
what is the cause for this
how to overcome this
pls let me know asap with the evidence
thanks
venkat

View Replies !   View Related
Connection Broken!!
Hi ,
I am running a process from from my client having TCP/IP sockets connected to WIN NT sql server 7.0. I get a error msg [MICROSOFT][ODBC SQL SERVER DRIVER][TCP/IP SOCKETS]ConnectionCheckForData (null())).
Connection Broken .

The same thing happened in other NT SQL server as well,but it is ran o.k if i run from the server itself. Checked Microsoft documents they advised me to use Named Pipes and to check the client and server network utility. Check every detail but still facing same errors. Can anyone provide an solution for this.

Thanks,
Venkat.

View Replies !   View Related
Broken Login
As we have just got SQL at work I had decided to play with SQL on my home computer to find out what made it tick.

I am using the 120 day demo enterprise version. While playing in the user accounts area (under security) I denied access to the database on the guest account (like you disable the guest account on domain logins) and (if you have not guessed already) I can't get access to the server anymore. I did try reinstalling but I guess that there are still some settings in the registry that don't get deleted. Any suggestions how I can get back in.

My PC at home is a XP home edition, no domain etc. SQL was installed onto the PC and I was accessing (playing with it on this PC). The setup I was playing with has no data (except what comes with the SQL) so I am not worried about losing anything.

Thanks in advance

Tim

View Replies !   View Related
This Forum Is BROKEN!!!!
Anyone having problems with this forum today?

 

I have had countless email alerts thru today alerting me to people replying to threads I have commented on. And I can see the person's comments.

 

1) WhenI click on the link it takes me to a page saying the post doesn't exist

2) When I try and browse to the thread manually I can't see the reply.

3) On one occasion I replied to one of these threads asking if someone had posted something and then deleted it. After I submitted the post I could see all the other posts in the thread which were supposedly missing before. The next time I browse to the thread (in a new browser window) I can't see any of the posts.

 

BROKEN!!!! I for one won't be coming back here until they fix it. Its pathetic.

I have posted something on the bug report forum by the way.

-Jamie

P.S. Its not just on this forum either.

View Replies !   View Related
My Query Is Broken And I Don't Know How To Fix It...
I am trying to set up a filtered paging ObjectDataSource for a gridvoew control.

My code works, my query doesn't...

This is OK: Get all rows of data:
"SELECT UCO, country_code, country_name, enabled, concurrency FROM CountryCodes "
Returns all records as expected

This is OK: Getting rows of data with no Filter:
"SELECT UCO, country_code, country_name, enabled, concurrency FROM (SELECT ROW_NUMBER() OVER (ORDER BY  country_name  )  As Row, UCO, country_code, country_name, enabled, concurrency FROM CountryCodes ) As TempRowTable WHERE Row >= 0 AND Row <= 10"
Returns expected data

This is OK: Making sure my WHERE filter works:
"SELECT UCO, country_code, country_name, enabled, concurrency FROM CountryCodes WHERE  country_name LIKE '%u%' "
Returns 85 records

This is BROKEN!!!: I want to return 10 rows of filtered data:
"SELECT UCO, country_code, country_name, enabled, concurrency FROM (SELECT ROW_NUMBER() OVER (ORDER BY  country_name  )  As Row, UCO, country_code, country_name, enabled, concurrency FROM CountryCodes ) As TempRowTable WHERE ( Row >= 0 AND Row <= 10 ) AND ( country_name LIKE '%u%' ) "
It Returns 0 records!!!

What am I doing wrong in the last query?
Or even better how do I fix it?

Thanks,
Roger 

View Replies !   View Related
Connection Broken
 

Hi All,
 
When I run this statement it gives me an error.:
 
CREATE
  INDEX [NC_DateAcctTotal] ON [dbo].[BilledPackages] ([pu_date], [acct_no], [delete_flag], [billing_weight_charge])
WITH
    FILLFACTOR = 90
ON [PRIMARY]
 
::::: ERROR ::::
 
 
Server: Msg 823, Level 24, State 2, Line 1
I/O error (torn page) detected during read at offset 0x000006d5f2c000 in file 'E:MSSQLDataManagement_Data2_Data.NDF'.
Connection Broken
 
Thanks!
Aric

View Replies !   View Related
Broken Links
I downloaded and registered Visual Studio Express Edition. I got this nice email back with links to demos, tutorials, and starter kits. Unfortunately, the links to most of the starter kits are broken. Can I still get these things?
 

View Replies !   View Related
Looking For Process Ideas
I'm looking for Ideas on how to handle a Pldege Reminder process. For example; a pledge is made to pay $2400 over the next two years. They will pay $100 per month and each month a reminder will be sent. No real mistery if there is a balance you send a reminder. My problem is how to handle things like what if they want to pay quarterly or annually and how to determine if a payment is really due based on when they paid last, etc... You most likely see what I mean.
If anyone has done this in the past and/or has any ideas and is willing to share I would greatly appreciate any help.
Some stuff that may help you help me better:
tblClient (ClientID)
tblPledge (PledgeID, ClientID, PledegedAmt, PledgeDate,Frequency,NumberYears)
tblPledgePayments (PmtID, PledgeID,PmtAmt,PmtDate)

View Replies !   View Related
Design Ideas
I'm new to asp.net. Please help me with some ideas about the design of databases and interface of the web site.
We are a public school district, I want to create a website for families to go on line to update their family and student's demographic information. Basically I put the students' infomation pulled from our student information system software on the web, the parents can log in on line to update it at the beginning of school year. After that, I will create some report and let secretary manually do the update to our student information system.
The demographic infor includes 3 parts,
1. family street address, city, state, zip2 guardian1 primary phones,second phone,  emails. primary phones,second phone3, student date birth, gender. may have multiple students in one family
But how can I track which field parents changed, shall I do it in programming in the web form, or later when I create some kind of reports. For I only want to pull students with the fields that updated and give them to secretary to update manully, and I don't want to generate a full report and let them compare which field is changed and then update, it will take them too much time.
Thanks much in advance

View Replies !   View Related

Copyright © 2005-08 www.BigResource.com, All rights reserved