Showing posts with label files. Show all posts
Showing posts with label files. Show all posts

Thursday, March 22, 2012

"Wrap" replication files

Is there a way to distribute merge and transactional replication commands/files such that a slight hiccup in the connection does not cause replication to fail? Maybe like wrapping them in a zip or other type of file?No, nothing built in, but even if that were the case that won't prevent problems, what if the connection failed during the transfer of the zip file? There's built-in retry logic in the agents for network failures, is this not working correctly for you?|||What do you mean by built-in? Is this supposed to be automatic? Are there settings or distributor properties/parameters I have to set for this? I am not talking about a total loss of connection - just a slight hiccup in communications. Maybe the files could be buffered somehow during the transfer. Is there a way for a custom application to interact with this process?|||distribution agent should retry 10 times before completely stopping, you can increase this interval. For merge agent, since it's scheduled it should just pick up again where it left off on the next sync, or if you're using rmo, you can always check for a disconnect and resubmit a sync.

Sunday, March 11, 2012

"Paralellizing" file loads

I have a package that reads a table that has a list of files that I need to load into a table that arrive every night. These files range from 50mb to 1.5gb, The entire process to load and transform is taking about 50mins, which is about a 300% increase from our current production environment. However I am looking at ways to improve performance by loading all of the data into the staging table at the same time.

Is this possible, and do you guys think it would improve performance significantly?

Can you provide more details about the source target picture?

So, many files going into a single staging table?

If so, You may want to try having several threads reading from the files and inserting into the target table; perhaps using multiple dataflows.

|||

The source are about 27 files arriving from a customer to a network drive. Currently we start the package when all the files have arrived and we load 1 file at a time into a table using a simple FileConnection->OLE DB Destination.

I have a Foreach Container (files) that loops on an ADO.NET Recordset. Inside the Forloop container it starts a package which loads the file.

So my question is how could I launch that package from within my package "asynchronously"?

|||Unforntunatly, Using a For Each loop will not help you on processecing several files at the time, which I think is the only way to speed the process up.|||

There is a possibility here, Rafael and Jwelch have given a bunch of clues in previous forums to speed up, it all depends and I have clues too,

1) Incase you have a file meant for a single table you can have few parallel dataflow extracts.

2) If there are list of files populated into each table then we can group the file according to the pattern (use wild cards or expression to assign file format) and then run few Parallel extracts using ForEach loop for each of the file groups

3) If you are loading only a single table then parallel insertion wont help, because table lock might apply when rows are getting imported from a file.

Thanks

Subhash Subramanyam

Thursday, March 8, 2012

"Named Pipes Provider: Could not open a connection to SQL Server [53]", but only on th

My connection string (to a remote instance of SQL Server Exress 2005) is exactly the same when the web files are located on my local machine or my remote machine, and while it works fine when I use the local web files, I get the following error when I use the remote files:

"Named Pipes Provider: Could not open a connection to SQL Server [53]"

As you can see, since it works from the local version, I've setup SQL to accept remote connections via TCP/IP and Named Pipes. I'm using IIS7 on the local, and IIS6 on the remote, in case that makes a difference. I have other sites setup the same way, which work fine.

Any thoughts?

Open the configuration manager and set SQL Server to allow remote connections.
This is off by default on SQL Server Express Edition.

WesleyB

Visit my SQL Server weblog @. http://dis4ea.blogspot.com

|||Thank you for responding, although as you can see in my question, I point out that this is clearly set up, as I am connecting successfully from my local machine.

However, I should note that I have resolved the problem by replicating the database.
|||

Oops, I didn't read that little sentence, sorry :-)

WesleyB

Visit my SQL Server weblog @. http://dis4ea.blogspot.com

Friday, February 24, 2012

"C:\Program Files\Microsoft SQL Server\90\Setup Bootstrap\setup.exe" finished and retu

Hello,

We are running Windows Server 2003 SP 1 and trying to upgrade SQL 2000 SP 4 to SQL 2005 using the command line.

The process finishes in under ten minutes. Summary.txt file we have this information:

Log File : C:\Program Files\Microsoft SQL Server\90\Setup Bootstrap\LOG\Files\SQLSetup_<ServerName>_SQL.log
Last Action : ValidateUpgrade
Error String : The installer has encountered an unexpected error. The error code is 2259. Database: Table(s) Update failed
Error Number : 2259

In the log file named SQLSetup_ServerName_Core.log I found the following:

Error: Action "LaunchLocalBootstrapAction" threw an exception during execution. Error information reported during run:
"C:\Program Files\Microsoft SQL Server\90\Setup Bootstrap\setup.exe" finished and returned: 1627
Aborting queue processing as nested installer has completed
Message pump returning: 1627

After receiving this info, I can navigate to the setup.bat for the SQL 2005 upgrade and complete the upgrade without error. We are planning on 500 of these, so manual updates is a very ugly concept.

I'd appreciate any and all ideas on where to go from here.

Most Sincerely.

Could you search inside the *_SQL.log for the string mentioned in summary.txt:

"The installer has encountered an unexpected error. The error code is 2259. Database: Table(s) Update failed"

When you find the string, could you copy the lines above and below so we could see the context around the error? Hopefully you could include all the logging statements associated with the ValidateUpgrade action. It should start with a line like this:

<Func Name='ValidateUpgrade'>

Thanks!

|||

Dear R.Green,

I appreciate your help. The results of your request follows. Please let me know if I can help in any other way.

Thanks,

Bill

Function=SAPasswordPolicyCheck
Skipping Action: SAPasswordPolicyCheck (Condition is false)
<EndFunc Name='LaunchFunction' Return='0' GetLastError='0'>
MSI (s) (A4:94) [11:38:44:323]: Doing action: ValidateUpgrade.D20239D7_E87C_40C9_9837_E70B8D4882C2
Action ended 11:38:44: SAPasswordPolicyCheck.D20239D7_E87C_40C9_9837_E70B8D4882C2. Return value 1.
MSI (s) (A4:2C) [11:38:44:339]: Invoking remote custom action. DLL: C:\WINDOWS\Installer\MSI11F.tmp, Entrypoint: ValidateUpgrade
Action start 11:38:44: ValidateUpgrade.D20239D7_E87C_40C9_9837_E70B8D4882C2.
<Func Name='LaunchFunction'>
Function=ValidateUpgrade
<Func Name='SetCAContext'>
<EndFunc Name='SetCAContext' Return='T' GetLastError='0'>
Doing Action: ValidateUpgrade
PerfTime Start: ValidateUpgrade : Tue Nov 14 11:38:44 2006
<Func Name='ValidateUpgrade'>
<Func Name='updateFeatureSellection'>
<Func Name='SqlComponentUpgrade'>
<Func Name='SetCAContext'>
<EndFunc Name='SetCAContext' Return='T' GetLastError='0'>
<Func Name='ProcessHeaderTable'>
<Func Name='ProcessScriptTable'>
<Func Name='GetFileTargetPath'>
<Func Name='GetFileTargetPath'>
<Func Name='GetFileTargetPath'>
<Func Name='GetFileTargetPath'>
<Func Name='GetFileTargetPath'>
<Func Name='GetFileTargetPath'>
<Func Name='GetFileTargetPath'>
<Func Name='GetFileTargetPath'>
<Func Name='GetFileTargetPath'>
<Func Name='ProcessScriptTable'>
<Func Name='GetFileTargetPath'>
MSI (s) (A4!B0) [11:38:44:464]: Note: 1: 2205 2: 3: _sqlSqlUpgradeSequence
MSI (s) (A4!B0) [11:38:44:464]: Note: 1: 2228 2: 3: _sqlSqlUpgradeSequence 4: CREATE TABLE `_sqlSqlUpgradeSequence` (`Action` CHAR(255) NOT NULL, `Sequence` INT NOT NULL, `Param` CHAR(0), `Retryable` INT NOT NULL, `Fatal` INT NOT NULL PRIMARY KEY `Action`, `Sequence`)
MSI (s) (A4!B0) [11:38:44:464]: Note: 1: 2262 2: _sqlSqlUpgradeSequence 3: -2147287038
MSI (s) (A4!B0) [11:38:44:480]: PROPERTY CHANGE: Adding Sql_sqlSqlUpgradeSequence property. Its value is '15000000'.
MSI (s) (A4!B0) [11:38:44:480]: PROPERTY CHANGE: Modifying Sql_sqlSqlUpgradeSequence property. Its current value is '15000000'. Its new value: '30000000'.
MSI (s) (A4!B0) [11:38:44:480]: PROPERTY CHANGE: Modifying Sql_sqlSqlUpgradeSequence property. Its current value is '30000000'. Its new value: '30040000'.
MSI (s) (A4!B0) [11:38:44:480]: PROPERTY CHANGE: Modifying Sql_sqlSqlUpgradeSequence property. Its current value is '30040000'. Its new value: '30050000'.
MSI (s) (A4!B0) [11:38:44:480]: PROPERTY CHANGE: Modifying Sql_sqlSqlUpgradeSequence property. Its current value is '30050000'. Its new value: '30150000'.
MSI (s) (A4!B0) [11:38:44:480]: PROPERTY CHANGE: Modifying Sql_sqlSqlUpgradeSequence property. Its current value is '30150000'. Its new value: '100150000'.
MSI (s) (A4!B0) [11:38:44:480]: PROPERTY CHANGE: Modifying Sql_sqlSqlUpgradeSequence property. Its current value is '100150000'. Its new value: '230871400'.
MSI (s) (A4!B0) [11:38:44:480]: PROPERTY CHANGE: Modifying Sql_sqlSqlUpgradeSequence property. Its current value is '230871400'. Its new value: '245871400'.
MSI (s) (A4!B0) [11:38:44:480]: PROPERTY CHANGE: Modifying Sql_sqlSqlUpgradeSequence property. Its current value is '245871400'. Its new value: '275871400'.
MSI (s) (A4!B0) [11:38:44:480]: PROPERTY CHANGE: Modifying Sql_sqlSqlUpgradeSequence property. Its current value is '275871400'. Its new value: '275971400'.
<Func Name='GetFileTargetPath'>
<EndFunc Name='SqlComponentUpgrade' Return='0' GetLastError='0'>
Added FTE to SqlUpgrade property
Added REPL to SqlUpgrade property
<Func Name='updateFeatureSellection'>
MSI (s) (A4!B0) [11:38:44:636]: skipping installation of assembly component: {7F618CB9-9BCE-4C1E-9E33-59E8A564E456} since the assembly already exists
To perform upgrade setting feature SQL_Replication to be indtalled locally.
To perform upgrade setting feature SQL_FullText to be indtalled locally.
Running:
CollectInstallCases
at:
Info 2006.2006
/
10
/
14
11
:
Info 38.38
:
Info 44.44


Complete:
CollectInstallCases
at:
Info 2006.2006
/
10
/
14
11
:
Info 38.38
:
Info 44.44
, returned
true


Running:
DefineFeatureActionRules
at:
Info 2006.2006
/
10
/
14
11
:
Info 38.38
:
Info 44.44


Complete:
DefineFeatureActionRules
at:
Info 2006.2006
/
10
/
14
11
:
Info 38.38
:
Info 44.44
, returned
true


Running:
DefineInstallActionRules
at:
Info 2006.2006
/
10
/
14
11
:
Info 38.38
:
Info 44.44


Complete:
DefineInstallActionRules
at:
Info 2006.2006
/
10
/
14
11
:
Info 38.38
:
Info 45.45
, returned
true


Running:
AddInstallCaseActions
at:
Info 2006.2006
/
10
/
14
11
:
Info 38.38
:
Info 45.45


Complete:
AddInstallCaseActions
at:
Info 2006.2006
/
10
/
14
11
:
Info 38.38
:
Info 45.45
, returned
true


Loaded DLL:
C:\Program Files\Microsoft SQL Server\90\Setup Bootstrap\sqlboot.dll
Version:
2005.90.1399.0


Action "
languageUpgrade_MSSQLSERVER SQL 8.0 SQL Server Standalone Product MSSQLSERVER
" will be skipped due to the
following restrictions:


Condition "differentLanguage_with_1033_MSSQLSERVER SQL 8.0 SQL Server Standalone Product MSSQLSERVER" returned false.

Loaded DLL:
C:\Program Files\Microsoft SQL Server\90\Setup Bootstrap\sqlboot.dll
Version:
2005.90.1399.0


Action "
maintenance_MSSQLSERVER SQL 8.0 SQL Server Standalone Product MSSQLSERVER
" will be skipped due to the
following restrictions:


Condition "sameVersion_as_9.0.139906_MSSQLSERVER SQL 8.0 SQL Server Standalone Product MSSQLSERVER" returned false.

Loaded DLL:
C:\Program Files\Microsoft SQL Server\90\Setup Bootstrap\sqlboot.dll
Version:
2005.90.1399.0


Action "
skuUpgrade_MSSQLSERVER SQL 8.0 SQL Server Standalone Product MSSQLSERVER
" will be skipped due to the
following restrictions:


Condition "NOT_sameSKU_MSSQLSERVER SQL 8.0 SQL Server Standalone Product MSSQLSERVER" returned false.

Loaded DLL:
C:\Program Files\Microsoft SQL Server\90\Setup Bootstrap\sqlboot.dll
Version:
2005.90.1399.0


Action "
virtualization_MSSQLSERVER SQL 8.0 SQL Server Standalone Product MSSQLSERVER
" will be skipped due to the
following restrictions:


Condition "virtualization_NotSupported_MSSQLSERVER SQL 8.0 SQL Server Standalone Product MSSQLSERVER" returned false.

Action "
warningPatchLevel_MSSQLSERVER SQL 8.0 SQL Server Standalone Product MSSQLSERVER
" will be skipped due to the
following restrictions:


Condition "diffInstancePatchLevel_MSSQLSERVER SQL 8.0 SQL Server Standalone Product MSSQLSERVER" returned false.

Action "
warningSPLevel_MSSQLSERVER SQL 8.0 SQL Server Standalone Product MSSQLSERVER
" will be skipped due to the
following restrictions:


Condition "diffInstanceSPLevel_MSSQLSERVER SQL 8.0 SQL Server Standalone Product MSSQLSERVER" returned false.

Action "
warningUpgrade_MSSQLSERVER SQL 8.0 SQL Server Standalone Product MSSQLSERVER
" will be skipped due to the
following restrictions:


Condition "warningUpgrade_MSSQLSERVER SQL 8.0 SQL Server Standalone Product MSSQLSERVER" returned false.

Running:
versionUpgrade_MSSQLSERVER SQL 8.0 SQL Server Standalone Product MSSQLSERVER
at:
Info 2006.2006
/
10
/
14
11
:
Info 38.38
:
Info 45.45


Complete:
versionUpgrade_MSSQLSERVER SQL 8.0 SQL Server Standalone Product MSSQLSERVER
at:
Info 2006.2006
/
10
/
14
11
:
Info 38.38
:
Info 45.45
, returned
true


Running:
AddFeatureCase_versionUpgrade_MSSQLSERVER SQL 8.0 SQL Server Standalone Product MSSQLSERVER
at:
Info 2006.2006
/
10
/
14
11
:
Info 38.38
:
Info 45.45


Complete:
AddFeatureCase_versionUpgrade_MSSQLSERVER SQL 8.0 SQL Server Standalone Product MSSQLSERVER
at:
Info 2006.2006
/
10
/
14
11
:
Info 38.38
:
Info 45.45
, returned
true


Running:
FeaturePhaseAction
at:
Info 2006.2006
/
10
/
14
11
:
Info 38.38
:
Info 45.45


Complete:
FeaturePhaseAction
at:
Info 2006.2006
/
10
/
14
11
:
Info 38.38
:
Info 45.45
, returned
true


Action "
add_MSSQLSERVER SQL 8.0 SQL Server Standalone Product MSSQLSERVER_SQL_Engine
" will be skipped due to the
following restrictions:


Condition "noFeatureConflict_MSSQLSERVER SQL 8.0 SQL Server Standalone Product MSSQLSERVER_SQL_Engine" returned false.
Condition "NOT_featureInstalled_MSSQLSERVER SQL 8.0 SQL Server Standalone Product MSSQLSERVER_SQL_Engine" returned false.
Condition "installActionAvailable_maintenance_MSSQLSERVER SQL 8.0 SQL Server Standalone Product MSSQLSERVER_SQL_Engine" returned false.

Action "
remove_MSSQLSERVER SQL 8.0 SQL Server Standalone Product MSSQLSERVER_SQL_Engine
" will be skipped due to the
following restrictions:


MSI (s) (A4!B0) [11:38:45:839]: PROPERTY CHANGE: Deleting AGTACCOUNT property. Its current value is 'CEDNetLive\Roamer'.
MSI (s) (A4!B0) [11:38:45:839]: PROPERTY CHANGE: Deleting AGTPASSWORD property. Its current value is '**********'.
Condition "installActionAvailable_maintenance_MSSQLSERVER SQL 8.0 SQL Server Standalone Product MSSQLSERVER_SQL_Engine" returned false.

Attempt to start service when it is already running
SQL service MSSQLSERVER started successfully waiting for SQL service to accept client connections
Loaded DLL:
C:\WINDOWS\system32\Odbc32.dll
Version:
3.526.1830.0


SQL_SUCCESS_WITH_INFO (1) in OdbcConnection::connect
sqlstate=01000, level=-1, state=-1, native_error=5701, msg=[Microsoft][SQL Native Client][SQL Server]Changed database context to 'master'.
sqlstate=01000, level=-1, state=-1, native_error=5703, msg=[Microsoft][SQL Native Client][SQL Server]Changed language setting to us_english.

Executing External Command
Message type: Progress
10
Message type: Component
Database Engine
Message type: Status
Checking for SQL Connectivity...
Message type: Status
Starting analysis...
Message type: Status
Analyzing 1%
Message type: Status
Analyzing 5%
Message type: Status
Analyzing 15%
Message type: Status
Analyzing 16%
Message type: Status
Analyzing 17%
Message type: Status
Analyzing 18%
Message type: Status
Analyzing 20%
Message type: Status
Analyzing 21%
Message type: Status
Analyzing 30%
Message type: Status
Analyzing 33%
Message type: Status
Analyzing 34%
Message type: Status
Analyzing 35%
Message type: Status
Analyzing 38%
Message type: Status
Analyzing 50%
Message type: Status
Analyzing 51%
Message type: Status
Analyzing 55%
Message type: Status
Analyzing 66%
Message type: Status
Analyzing 67%
Message type: Status
Analyzing 68%
Message type: Status
Analyzing 71%
Message type: Status
Analyzing 83%
Message type: Status
Analyzing 84%
Message type: Status
Analyzing 85%
Message type: Status
Analyzing 88%
Message type: Status
Analyzing 90%
Message type: Status
Analyzing 100%
Message type: Status
Creating report
Message type: Status
Creating report
Message type: Progress
Info 100.100
<Func Name='SqlComponentUpgrade'>
<Func Name='SetCAContext'>
<EndFunc Name='SetCAContext' Return='T' GetLastError='0'>
<Func Name='ProcessHeaderTable'>
<Func Name='ProcessScriptTable'>
<Func Name='GetFileTargetPath'>
<Func Name='GetFileTargetPath'>
<Func Name='GetFileTargetPath'>
<Func Name='GetFileTargetPath'>
<Func Name='GetFileTargetPath'>
<Func Name='GetFileTargetPath'>
<Func Name='GetFileTargetPath'>
<Func Name='GetFileTargetPath'>
<Func Name='GetFileTargetPath'>
<Func Name='ProcessScriptTable'>
<Func Name='GetFileTargetPath'>
MSI (s) (A4!B0) [11:39:18:558]: Note: 1: 2259 2: 3: 4:
<Func Name='GetFileTargetPath'>
Error Code: 0x8007065b (1627)
Windows Error Text: Function failed during execution.
Source File Name: darlib\viewinstaller.cpp
Compiler Timestamp: Mon Jun 13 14:19:43 2005
Function Name: sqls::ViewInstaller::modify
Source Line Number: 137

- Context --


Setting status of unmanaged components and removing unmanaged resources
Failed to modify installer view
1: 2259 2: 3: 4:

Error Code: 1627
MSI (s) (A4!B0) [11:39:18:745]: Product: Microsoft SQL Server 2005 -- Error 2259. The installer has encountered an unexpected error. The error code is 2259. Database: Table(s) Update failed

Error 2259. The installer has encountered an unexpected error. The error code is 2259. Database: Table(s) Update failed
<Failure Type='Fatal' Error='1627'>
<EndFunc Name='LaunchFunction' Return='1627' GetLastError='0'>
Action ended 11:39:18: ValidateUpgrade.D20239D7_E87C_40C9_9837_E70B8D4882C2. Return value 3.
Action ended 11:39:18: INSTALL. Return value 3.
Property(S): ProductCode = {130A3BE1-85CC-4135-8EA7-5A724EE6CE2C}
Property(S): ProductLanguage = 1033
Property(S): Manufacturer = Microsoft Corporation
Property(S): ProductVersion = 9.00.1399.06
Property(S): MEDIAPACKAGEPATH = \Setup\

|||

Thank you for the follow up, we are still looking into this internally to see if we have any ideas. I'm wondering how you are installing SQL Server 2005. Is it from removable media, a network location, or from the hard drive? Did the media come from a download or was it burned from ISO?

The error message is strange because it should list the query that was attempted, but it looks to be an empty string. I'm just wondering if there is a possibility that the point of installation has a corrupt MSI database in some way.

|||

Hi,

Thanks for your efforts. We have a volume license agreement with Microsoft. I copied the two CDs we received under that agreement to an IDE drive on the server that is being upgraded. My template.ini file is pointing to that drive. We are running from the hard drive because we will push this upgrade to the field using LanDesk. To say it another way, we are not sending media to our hundred plus sites.

Please let me know if I didn't answer the correct question. (Something I do more and more as I get older.)

Thanks,

Bill

|||

Hi,

Any word on this? I need to keep this moving.

Thanks,

Bill

|||

Hi BaldManDBA

Any resolution? This is also a SQL Server 2005 Express edition issue too

see: http://forums.microsoft.com/MSDN/ShowPost.aspx?PostID=1663937&SiteID=1

Extract of my log:

- Context --


Setting status of unmanaged components and removing unmanaged resources
Failed to modify installer view
1: 2259 2: 3: 4:

Error Code: 1627
MSI (s) (9C!2C) [21:36:21:171]: Product: Microsoft SQL Server 2005 Express Edition -- Error 2259. The installer has encountered an unexpected error. The error code is 2259. Database: Table(s) Update failed

Error 2259. The installer has encountered an unexpected error. The error code is 2259. Database: Table(s) Update failed
<Func Name='SetCAContext'>
<EndFunc Name='SetCAContext' Return='T' GetLastError='203'>
Doing Action: ValidateUpgrade
PerfTime Start: ValidateUpgrade : Tue May 29 21:36:21 2007
<Func Name='ValidateUpgrade'>
<Func Name='updateFeatureSellection'>
<Func Name='SqlComponentUpgrade'>
<Func Name='SetCAContext'>
<EndFunc Name='SetCAContext' Return='T' GetLastError='203'>
<Func Name='ProcessHeaderTable'>
<Func Name='ProcessScriptTable'>
<Func Name='GetFileTargetPath'>
<Func Name='GetFileTargetPath'>
<Func Name='GetFileTargetPath'>
<Func Name='GetFileTargetPath'>
<Func Name='GetFileTargetPath'>

In my case, it was simply a case of leave all the defaults during the SS2005 SP2 install, except the instance where (_) default instance had to be ticked instead of a named instance

Please let us know ... (as your solution may be related to all other SQL Server 2005 version/situations)

Alain

|||

Hi,

The server that generated that error was the only one to encounter the error. So, for that one server, we reinstalled SQL Server. All was OK after that. I hope this helps.

Thanks,

BaldManDBA.

"C:\Program Files\Microsoft SQL Server\90\Setup Bootstrap\setup.exe" finished and

Hello,

We are running Windows Server 2003 SP 1 and trying to upgrade SQL 2000 SP 4 to SQL 2005 using the command line.

The process finishes in under ten minutes. Summary.txt file we have this information:

Log File : C:\Program Files\Microsoft SQL Server\90\Setup Bootstrap\LOG\Files\SQLSetup_<ServerName>_SQL.log
Last Action : ValidateUpgrade
Error String : The installer has encountered an unexpected error. The error code is 2259. Database: Table(s) Update failed
Error Number : 2259

In the log file named SQLSetup_ServerName_Core.log I found the following:

Error: Action "LaunchLocalBootstrapAction" threw an exception during execution. Error information reported during run:
"C:\Program Files\Microsoft SQL Server\90\Setup Bootstrap\setup.exe" finished and returned: 1627
Aborting queue processing as nested installer has completed
Message pump returning: 1627

After receiving this info, I can navigate to the setup.bat for the SQL 2005 upgrade and complete the upgrade without error. We are planning on 500 of these, so manual updates is a very ugly concept.

I'd appreciate any and all ideas on where to go from here.

Most Sincerely.

Could you search inside the *_SQL.log for the string mentioned in summary.txt:

"The installer has encountered an unexpected error. The error code is 2259. Database: Table(s) Update failed"

When you find the string, could you copy the lines above and below so we could see the context around the error? Hopefully you could include all the logging statements associated with the ValidateUpgrade action. It should start with a line like this:

<Func Name='ValidateUpgrade'>

Thanks!

|||

Dear R.Green,

I appreciate your help. The results of your request follows. Please let me know if I can help in any other way.

Thanks,

Bill

Function=SAPasswordPolicyCheck
Skipping Action: SAPasswordPolicyCheck (Condition is false)
<EndFunc Name='LaunchFunction' Return='0' GetLastError='0'>
MSI (s) (A4:94) [11:38:44:323]: Doing action: ValidateUpgrade.D20239D7_E87C_40C9_9837_E70B8D4882C2
Action ended 11:38:44: SAPasswordPolicyCheck.D20239D7_E87C_40C9_9837_E70B8D4882C2. Return value 1.
MSI (s) (A4:2C) [11:38:44:339]: Invoking remote custom action. DLL: C:\WINDOWS\Installer\MSI11F.tmp, Entrypoint: ValidateUpgrade
Action start 11:38:44: ValidateUpgrade.D20239D7_E87C_40C9_9837_E70B8D4882C2.
<Func Name='LaunchFunction'>
Function=ValidateUpgrade
<Func Name='SetCAContext'>
<EndFunc Name='SetCAContext' Return='T' GetLastError='0'>
Doing Action: ValidateUpgrade
PerfTime Start: ValidateUpgrade : Tue Nov 14 11:38:44 2006
<Func Name='ValidateUpgrade'>
<Func Name='updateFeatureSellection'>
<Func Name='SqlComponentUpgrade'>
<Func Name='SetCAContext'>
<EndFunc Name='SetCAContext' Return='T' GetLastError='0'>
<Func Name='ProcessHeaderTable'>
<Func Name='ProcessScriptTable'>
<Func Name='GetFileTargetPath'>
<Func Name='GetFileTargetPath'>
<Func Name='GetFileTargetPath'>
<Func Name='GetFileTargetPath'>
<Func Name='GetFileTargetPath'>
<Func Name='GetFileTargetPath'>
<Func Name='GetFileTargetPath'>
<Func Name='GetFileTargetPath'>
<Func Name='GetFileTargetPath'>
<Func Name='ProcessScriptTable'>
<Func Name='GetFileTargetPath'>
MSI (s) (A4!B0) [11:38:44:464]: Note: 1: 2205 2: 3: _sqlSqlUpgradeSequence
MSI (s) (A4!B0) [11:38:44:464]: Note: 1: 2228 2: 3: _sqlSqlUpgradeSequence 4: CREATE TABLE `_sqlSqlUpgradeSequence` (`Action` CHAR(255) NOT NULL, `Sequence` INT NOT NULL, `Param` CHAR(0), `Retryable` INT NOT NULL, `Fatal` INT NOT NULL PRIMARY KEY `Action`, `Sequence`)
MSI (s) (A4!B0) [11:38:44:464]: Note: 1: 2262 2: _sqlSqlUpgradeSequence 3: -2147287038
MSI (s) (A4!B0) [11:38:44:480]: PROPERTY CHANGE: Adding Sql_sqlSqlUpgradeSequence property. Its value is '15000000'.
MSI (s) (A4!B0) [11:38:44:480]: PROPERTY CHANGE: Modifying Sql_sqlSqlUpgradeSequence property. Its current value is '15000000'. Its new value: '30000000'.
MSI (s) (A4!B0) [11:38:44:480]: PROPERTY CHANGE: Modifying Sql_sqlSqlUpgradeSequence property. Its current value is '30000000'. Its new value: '30040000'.
MSI (s) (A4!B0) [11:38:44:480]: PROPERTY CHANGE: Modifying Sql_sqlSqlUpgradeSequence property. Its current value is '30040000'. Its new value: '30050000'.
MSI (s) (A4!B0) [11:38:44:480]: PROPERTY CHANGE: Modifying Sql_sqlSqlUpgradeSequence property. Its current value is '30050000'. Its new value: '30150000'.
MSI (s) (A4!B0) [11:38:44:480]: PROPERTY CHANGE: Modifying Sql_sqlSqlUpgradeSequence property. Its current value is '30150000'. Its new value: '100150000'.
MSI (s) (A4!B0) [11:38:44:480]: PROPERTY CHANGE: Modifying Sql_sqlSqlUpgradeSequence property. Its current value is '100150000'. Its new value: '230871400'.
MSI (s) (A4!B0) [11:38:44:480]: PROPERTY CHANGE: Modifying Sql_sqlSqlUpgradeSequence property. Its current value is '230871400'. Its new value: '245871400'.
MSI (s) (A4!B0) [11:38:44:480]: PROPERTY CHANGE: Modifying Sql_sqlSqlUpgradeSequence property. Its current value is '245871400'. Its new value: '275871400'.
MSI (s) (A4!B0) [11:38:44:480]: PROPERTY CHANGE: Modifying Sql_sqlSqlUpgradeSequence property. Its current value is '275871400'. Its new value: '275971400'.
<Func Name='GetFileTargetPath'>
<EndFunc Name='SqlComponentUpgrade' Return='0' GetLastError='0'>
Added FTE to SqlUpgrade property
Added REPL to SqlUpgrade property
<Func Name='updateFeatureSellection'>
MSI (s) (A4!B0) [11:38:44:636]: skipping installation of assembly component: {7F618CB9-9BCE-4C1E-9E33-59E8A564E456} since the assembly already exists
To perform upgrade setting feature SQL_Replication to be indtalled locally.
To perform upgrade setting feature SQL_FullText to be indtalled locally.
Running:
CollectInstallCases
at:
Info 2006.2006
/
10
/
14
11
:
Info 38.38
:
Info 44.44


Complete:
CollectInstallCases
at:
Info 2006.2006
/
10
/
14
11
:
Info 38.38
:
Info 44.44
, returned
true


Running:
DefineFeatureActionRules
at:
Info 2006.2006
/
10
/
14
11
:
Info 38.38
:
Info 44.44


Complete:
DefineFeatureActionRules
at:
Info 2006.2006
/
10
/
14
11
:
Info 38.38
:
Info 44.44
, returned
true


Running:
DefineInstallActionRules
at:
Info 2006.2006
/
10
/
14
11
:
Info 38.38
:
Info 44.44


Complete:
DefineInstallActionRules
at:
Info 2006.2006
/
10
/
14
11
:
Info 38.38
:
Info 45.45
, returned
true


Running:
AddInstallCaseActions
at:
Info 2006.2006
/
10
/
14
11
:
Info 38.38
:
Info 45.45


Complete:
AddInstallCaseActions
at:
Info 2006.2006
/
10
/
14
11
:
Info 38.38
:
Info 45.45
, returned
true


Loaded DLL:
C:\Program Files\Microsoft SQL Server\90\Setup Bootstrap\sqlboot.dll
Version:
2005.90.1399.0


Action "
languageUpgrade_MSSQLSERVER SQL 8.0 SQL Server Standalone Product MSSQLSERVER
" will be skipped due to the
following restrictions:


Condition "differentLanguage_with_1033_MSSQLSERVER SQL 8.0 SQL Server Standalone Product MSSQLSERVER" returned false.

Loaded DLL:
C:\Program Files\Microsoft SQL Server\90\Setup Bootstrap\sqlboot.dll
Version:
2005.90.1399.0


Action "
maintenance_MSSQLSERVER SQL 8.0 SQL Server Standalone Product MSSQLSERVER
" will be skipped due to the
following restrictions:


Condition "sameVersion_as_9.0.139906_MSSQLSERVER SQL 8.0 SQL Server Standalone Product MSSQLSERVER" returned false.

Loaded DLL:
C:\Program Files\Microsoft SQL Server\90\Setup Bootstrap\sqlboot.dll
Version:
2005.90.1399.0


Action "
skuUpgrade_MSSQLSERVER SQL 8.0 SQL Server Standalone Product MSSQLSERVER
" will be skipped due to the
following restrictions:


Condition "NOT_sameSKU_MSSQLSERVER SQL 8.0 SQL Server Standalone Product MSSQLSERVER" returned false.

Loaded DLL:
C:\Program Files\Microsoft SQL Server\90\Setup Bootstrap\sqlboot.dll
Version:
2005.90.1399.0


Action "
virtualization_MSSQLSERVER SQL 8.0 SQL Server Standalone Product MSSQLSERVER
" will be skipped due to the
following restrictions:


Condition "virtualization_NotSupported_MSSQLSERVER SQL 8.0 SQL Server Standalone Product MSSQLSERVER" returned false.

Action "
warningPatchLevel_MSSQLSERVER SQL 8.0 SQL Server Standalone Product MSSQLSERVER
" will be skipped due to the
following restrictions:


Condition "diffInstancePatchLevel_MSSQLSERVER SQL 8.0 SQL Server Standalone Product MSSQLSERVER" returned false.

Action "
warningSPLevel_MSSQLSERVER SQL 8.0 SQL Server Standalone Product MSSQLSERVER
" will be skipped due to the
following restrictions:


Condition "diffInstanceSPLevel_MSSQLSERVER SQL 8.0 SQL Server Standalone Product MSSQLSERVER" returned false.

Action "
warningUpgrade_MSSQLSERVER SQL 8.0 SQL Server Standalone Product MSSQLSERVER
" will be skipped due to the
following restrictions:


Condition "warningUpgrade_MSSQLSERVER SQL 8.0 SQL Server Standalone Product MSSQLSERVER" returned false.

Running:
versionUpgrade_MSSQLSERVER SQL 8.0 SQL Server Standalone Product MSSQLSERVER
at:
Info 2006.2006
/
10
/
14
11
:
Info 38.38
:
Info 45.45


Complete:
versionUpgrade_MSSQLSERVER SQL 8.0 SQL Server Standalone Product MSSQLSERVER
at:
Info 2006.2006
/
10
/
14
11
:
Info 38.38
:
Info 45.45
, returned
true


Running:
AddFeatureCase_versionUpgrade_MSSQLSERVER SQL 8.0 SQL Server Standalone Product MSSQLSERVER
at:
Info 2006.2006
/
10
/
14
11
:
Info 38.38
:
Info 45.45


Complete:
AddFeatureCase_versionUpgrade_MSSQLSERVER SQL 8.0 SQL Server Standalone Product MSSQLSERVER
at:
Info 2006.2006
/
10
/
14
11
:
Info 38.38
:
Info 45.45
, returned
true


Running:
FeaturePhaseAction
at:
Info 2006.2006
/
10
/
14
11
:
Info 38.38
:
Info 45.45


Complete:
FeaturePhaseAction
at:
Info 2006.2006
/
10
/
14
11
:
Info 38.38
:
Info 45.45
, returned
true


Action "
add_MSSQLSERVER SQL 8.0 SQL Server Standalone Product MSSQLSERVER_SQL_Engine
" will be skipped due to the
following restrictions:


Condition "noFeatureConflict_MSSQLSERVER SQL 8.0 SQL Server Standalone Product MSSQLSERVER_SQL_Engine" returned false.
Condition "NOT_featureInstalled_MSSQLSERVER SQL 8.0 SQL Server Standalone Product MSSQLSERVER_SQL_Engine" returned false.
Condition "installActionAvailable_maintenance_MSSQLSERVER SQL 8.0 SQL Server Standalone Product MSSQLSERVER_SQL_Engine" returned false.

Action "
remove_MSSQLSERVER SQL 8.0 SQL Server Standalone Product MSSQLSERVER_SQL_Engine
" will be skipped due to the
following restrictions:


MSI (s) (A4!B0) [11:38:45:839]: PROPERTY CHANGE: Deleting AGTACCOUNT property. Its current value is 'CEDNetLive\Roamer'.
MSI (s) (A4!B0) [11:38:45:839]: PROPERTY CHANGE: Deleting AGTPASSWORD property. Its current value is '**********'.
Condition "installActionAvailable_maintenance_MSSQLSERVER SQL 8.0 SQL Server Standalone Product MSSQLSERVER_SQL_Engine" returned false.

Attempt to start service when it is already running
SQL service MSSQLSERVER started successfully waiting for SQL service to accept client connections
Loaded DLL:
C:\WINDOWS\system32\Odbc32.dll
Version:
3.526.1830.0


SQL_SUCCESS_WITH_INFO (1) in OdbcConnection::connect
sqlstate=01000, level=-1, state=-1, native_error=5701, msg=[Microsoft][SQL Native Client][SQL Server]Changed database context to 'master'.
sqlstate=01000, level=-1, state=-1, native_error=5703, msg=[Microsoft][SQL Native Client][SQL Server]Changed language setting to us_english.

Executing External Command
Message type: Progress
10
Message type: Component
Database Engine
Message type: Status
Checking for SQL Connectivity...
Message type: Status
Starting analysis...
Message type: Status
Analyzing 1%
Message type: Status
Analyzing 5%
Message type: Status
Analyzing 15%
Message type: Status
Analyzing 16%
Message type: Status
Analyzing 17%
Message type: Status
Analyzing 18%
Message type: Status
Analyzing 20%
Message type: Status
Analyzing 21%
Message type: Status
Analyzing 30%
Message type: Status
Analyzing 33%
Message type: Status
Analyzing 34%
Message type: Status
Analyzing 35%
Message type: Status
Analyzing 38%
Message type: Status
Analyzing 50%
Message type: Status
Analyzing 51%
Message type: Status
Analyzing 55%
Message type: Status
Analyzing 66%
Message type: Status
Analyzing 67%
Message type: Status
Analyzing 68%
Message type: Status
Analyzing 71%
Message type: Status
Analyzing 83%
Message type: Status
Analyzing 84%
Message type: Status
Analyzing 85%
Message type: Status
Analyzing 88%
Message type: Status
Analyzing 90%
Message type: Status
Analyzing 100%
Message type: Status
Creating report
Message type: Status
Creating report
Message type: Progress
Info 100.100
<Func Name='SqlComponentUpgrade'>
<Func Name='SetCAContext'>
<EndFunc Name='SetCAContext' Return='T' GetLastError='0'>
<Func Name='ProcessHeaderTable'>
<Func Name='ProcessScriptTable'>
<Func Name='GetFileTargetPath'>
<Func Name='GetFileTargetPath'>
<Func Name='GetFileTargetPath'>
<Func Name='GetFileTargetPath'>
<Func Name='GetFileTargetPath'>
<Func Name='GetFileTargetPath'>
<Func Name='GetFileTargetPath'>
<Func Name='GetFileTargetPath'>
<Func Name='GetFileTargetPath'>
<Func Name='ProcessScriptTable'>
<Func Name='GetFileTargetPath'>
MSI (s) (A4!B0) [11:39:18:558]: Note: 1: 2259 2: 3: 4:
<Func Name='GetFileTargetPath'>
Error Code: 0x8007065b (1627)
Windows Error Text: Function failed during execution.
Source File Name: darlib\viewinstaller.cpp
Compiler Timestamp: Mon Jun 13 14:19:43 2005
Function Name: sqls::ViewInstaller::modify
Source Line Number: 137

- Context --


Setting status of unmanaged components and removing unmanaged resources
Failed to modify installer view
1: 2259 2: 3: 4:

Error Code: 1627
MSI (s) (A4!B0) [11:39:18:745]: Product: Microsoft SQL Server 2005 -- Error 2259. The installer has encountered an unexpected error. The error code is 2259. Database: Table(s) Update failed

Error 2259. The installer has encountered an unexpected error. The error code is 2259. Database: Table(s) Update failed
<Failure Type='Fatal' Error='1627'>
<EndFunc Name='LaunchFunction' Return='1627' GetLastError='0'>
Action ended 11:39:18: ValidateUpgrade.D20239D7_E87C_40C9_9837_E70B8D4882C2. Return value 3.
Action ended 11:39:18: INSTALL. Return value 3.
Property(S): ProductCode = {130A3BE1-85CC-4135-8EA7-5A724EE6CE2C}
Property(S): ProductLanguage = 1033
Property(S): Manufacturer = Microsoft Corporation
Property(S): ProductVersion = 9.00.1399.06
Property(S): MEDIAPACKAGEPATH = \Setup\

|||

Thank you for the follow up, we are still looking into this internally to see if we have any ideas. I'm wondering how you are installing SQL Server 2005. Is it from removable media, a network location, or from the hard drive? Did the media come from a download or was it burned from ISO?

The error message is strange because it should list the query that was attempted, but it looks to be an empty string. I'm just wondering if there is a possibility that the point of installation has a corrupt MSI database in some way.

|||

Hi,

Thanks for your efforts. We have a volume license agreement with Microsoft. I copied the two CDs we received under that agreement to an IDE drive on the server that is being upgraded. My template.ini file is pointing to that drive. We are running from the hard drive because we will push this upgrade to the field using LanDesk. To say it another way, we are not sending media to our hundred plus sites.

Please let me know if I didn't answer the correct question. (Something I do more and more as I get older.)

Thanks,

Bill

|||

Hi,

Any word on this? I need to keep this moving.

Thanks,

Bill

|||

Hi BaldManDBA

Any resolution? This is also a SQL Server 2005 Express edition issue too

see: http://forums.microsoft.com/MSDN/ShowPost.aspx?PostID=1663937&SiteID=1

Extract of my log:

- Context --


Setting status of unmanaged components and removing unmanaged resources
Failed to modify installer view
1: 2259 2: 3: 4:

Error Code: 1627
MSI (s) (9C!2C) [21:36:21:171]: Product: Microsoft SQL Server 2005 Express Edition -- Error 2259. The installer has encountered an unexpected error. The error code is 2259. Database: Table(s) Update failed

Error 2259. The installer has encountered an unexpected error. The error code is 2259. Database: Table(s) Update failed
<Func Name='SetCAContext'>
<EndFunc Name='SetCAContext' Return='T' GetLastError='203'>
Doing Action: ValidateUpgrade
PerfTime Start: ValidateUpgrade : Tue May 29 21:36:21 2007
<Func Name='ValidateUpgrade'>
<Func Name='updateFeatureSellection'>
<Func Name='SqlComponentUpgrade'>
<Func Name='SetCAContext'>
<EndFunc Name='SetCAContext' Return='T' GetLastError='203'>
<Func Name='ProcessHeaderTable'>
<Func Name='ProcessScriptTable'>
<Func Name='GetFileTargetPath'>
<Func Name='GetFileTargetPath'>
<Func Name='GetFileTargetPath'>
<Func Name='GetFileTargetPath'>
<Func Name='GetFileTargetPath'>

In my case, it was simply a case of leave all the defaults during the SS2005 SP2 install, except the instance where (_) default instance had to be ticked instead of a named instance

Please let us know ... (as your solution may be related to all other SQL Server 2005 version/situations)

Alain

|||

Hi,

The server that generated that error was the only one to encounter the error. So, for that one server, we reinstalled SQL Server. All was OK after that. I hope this helps.

Thanks,

BaldManDBA.

Sunday, February 19, 2012

"Additional information: System error" message

Hello,
I needed to look at some .BCP files, so I thought I'd create a small tool for that.
I decided to create a temporary
DB, attach empty mdf, ldf files with predefined structure and then insert the BCP files, so I can view the data as DB tables .

Here is the procedure I follow:
1) I drop the existing (if exists) DB ("Drop DBName") - to be prepared for the next set of .BCP files.
2) Then I create a new
DB using sp_attach_db,
3) Then I populate the db via "Bulk Insert".

1st time this works just fine, but when I try to execute step 1 (drop DB) after step 3 I get a message that there is still open connection and the DB can't be dropped.

Here I can do two different things:
1) Find the
SPID of the open connection to my DB and KILL the process or
2) Instead of killing the process, set the DB to "SINGLE_USER WITH ROLLBACK IMMEDIATE" and then drop the DB.

In both cases I was able to Drop the DB and attach the new one, however the Bulk Insert (via ExecuteNonQuery() ) for some reason closes the current connection and brakes with the "System Error" message.

I simulated this procedure on Query Analyser and on SQL Server Studio Express, but everything worked just fine there.

The VB code is a little complicated with using app.config to open so many network drives and folders, but if anybody is interested I'll post it.

To make it short, here is the SQL Query procedure (which worked, though):

USE Master
if exists
(select name
from master.dbo.sysdatabases
where has_dbaccess(name)=1 and name='MyDB')
BEGIN
Drop database MyDB
END
exec sp_who2

-- Before the next command I have to manually restore the .ndf, .ldf files, deleted by the "Drop DB" command

sp_attach_db @.dbname = N'MyDB',
@.filename1 = N'D:\CurrSchema\DB_Patient.ndf',
@.filename2 = N'D:\CurrSchema\DB_Definitions.mdf',
@.filename3 = N'D:\CurrSchema\DB_Log.ldf',
@.filename4 = N'D:\CurrSchema\DB_Data.ndf'
exec sp_who2

-- WAITFOR DELAY '00:00:04'
-- need to wait manually here. Waitfor won't work with "USE DB"

USE MyDB
BULK INSERT CAL
FROM '\\srv\D$\CurrFiles\CAL.bcp'
WITH (DATAFILETYPE='native',KEEPIDENTITY,KEEPNULLS)

BULK INSERT CAP
FROM '\\srv\CurrFiles\CAP.bcp'
WITH (DATAFILETYPE='native',KEEPIDENTITY,KEEPNULLS)
exec sp_who2

Has anybody seen something like this?

Thank you.

Haven't seen it personally. However, I suggest you insert a 'go' between each command to seperate them into batches. Also, be sure to change the database to 'master' for your connection before sending/executing 'drop db'.|||

Yes, Thank you - you were right. I did not need the 'GO', but the change to 'master' was the key. I should have been more careful when using somebody else's code - no matter how encapsulated, it's never context-free - in my case I had to add context switching with 'USE master'.

George.

|||

Hi... you mentioned you had the below source sample...

The VB code is a little complicated with using app.config to open so many network drives and folders, but if anybody is interested I'll post it.

Can you please post or sent to billbbellevue@.hotmail.com

Kind regards,

Bill Bezick

"Additional information: System error" message

Hello,
I needed to look at some .BCP files, so I thought I'd create a small tool for that.
I decided to create a temporary
DB, attach empty mdf, ldf files with predefined structure and then insert the BCP files, so I can view the data as DB tables .

Here is the procedure I follow:
1) I drop the existing (if exists) DB ("Drop DBName") - to be prepared for the next set of .BCP files.
2) Then I create a new
DB using sp_attach_db,
3) Then I populate the db via "Bulk Insert".

1st time this works just fine, but when I try to execute step 1 (drop DB) after step 3 I get a message that there is still open connection and the DB can't be dropped.

Here I can do two different things:
1) Find the
SPID of the open connection to my DB and KILL the process or
2) Instead of killing the process, set the DB to "SINGLE_USER WITH ROLLBACK IMMEDIATE" and then drop the DB.

In both cases I was able to Drop the DB and attach the new one, however the Bulk Insert (via ExecuteNonQuery() ) for some reason closes the current connection and brakes with the "System Error" message.

I simulated this procedure on Query Analyser and on SQL Server Studio Express, but everything worked just fine there.

The VB code is a little complicated with using app.config to open so many network drives and folders, but if anybody is interested I'll post it.

To make it short, here is the SQL Query procedure (which worked, though):

USE Master
if exists
(select name
from master.dbo.sysdatabases
where has_dbaccess(name)=1 and name='MyDB')
BEGIN
Drop database MyDB
END
exec sp_who2

-- Before the next command I have to manually restore the .ndf, .ldf files, deleted by the "Drop DB" command

sp_attach_db @.dbname = N'MyDB',
@.filename1 = N'D:\CurrSchema\DB_Patient.ndf',
@.filename2 = N'D:\CurrSchema\DB_Definitions.mdf',
@.filename3 = N'D:\CurrSchema\DB_Log.ldf',
@.filename4 = N'D:\CurrSchema\DB_Data.ndf'
exec sp_who2

-- WAITFOR DELAY '00:00:04'
-- need to wait manually here. Waitfor won't work with "USE DB"

USE MyDB
BULK INSERT CAL
FROM '\\srv\D$\CurrFiles\CAL.bcp'
WITH (DATAFILETYPE='native',KEEPIDENTITY,KEEPNULLS)

BULK INSERT CAP
FROM '\\srv\CurrFiles\CAP.bcp'
WITH (DATAFILETYPE='native',KEEPIDENTITY,KEEPNULLS)
exec sp_who2

Has anybody seen something like this?

Thank you.

Haven't seen it personally. However, I suggest you insert a 'go' between each command to seperate them into batches. Also, be sure to change the database to 'master' for your connection before sending/executing 'drop db'.|||

Yes, Thank you - you were right. I did not need the 'GO', but the change to 'master' was the key. I should have been more careful when using somebody else's code - no matter how encapsulated, it's never context-free - in my case I had to add context switching with 'USE master'.

George.

|||

Hi... you mentioned you had the below source sample...

The VB code is a little complicated with using app.config to open so many network drives and folders, but if anybody is interested I'll post it.

Can you please post or sent to billbbellevue@.hotmail.com

Kind regards,

Bill Bezick

Monday, February 13, 2012

% Disk Time

I have separate drives each SQL Server database:
database file (E
database transaction log (K
tempdb (M
database system files (F
My database % Disk Time: (Average = 2541, STDEV = 4316,
Maximum = 86770)
How is the % Disk Time measured?
The % Disk Time high at 55%?
Thanks,
__________________________________________________ _________
Brian
First of all i have said 'probably'
Secondly if you have this counter higher than 55% for
continuous periods
(let me say 15 min)then your SQL Server
may be experiencing an I/O bottleneck.
"Brian Moran" <brian@.solidqualitylearning.com> wrote in
message
news:%23r7TWIieEHA.2848@.TK2MSFTNGP10.phx.gbl...
> I don't tend to agree with that advice.
> On it's own
> <<
> '%Disk Time
> Is not a very reliable indicator of an IO bottleneck.
You could easily
have
> a bottleneck if this counter is much lower than 55%. You
might NOT have a
> bottleneck if this counter is 55% or higher.
> There are many, many more counters which you should take
a look. You need
to
> take a look at queue lenght, wait times for disk
transfers, time it takes
> per read and write. In addition, there are a host of
other counters
> specific to your SAN that you should take a look at.
>
> Unfortunately, I'm running a bit late right now and I
don't have time to
> write a long message. Tom Davidson from MS has a nice
article in SQL
Server
> Magazine that dicusses some of these counters. I believe
it might also be
on
> MSDN. It shouldn't be too hard to track down if you
search by his name on[vbcol=seagreen]
> each site.
> --
> Brian Moran
> "Uri Dimant" <urid@.iscar.co.il> wrote in message
> news:u1rJ0yheEHA.3520@.TK2MSFTNGP10.phx.gbl...
general it should[vbcol=seagreen]
> be
I have a Windows 2000 Advanced Server with SQL Server 2000
Enterprise Edition on a SAN. What units are the %Disk
Time measured in from Perfmon?
Is the (% Disk Time E) = (Disk Time E) / (Total % Disk
Time) ?
Please help me with these questions.
Thanks,
Mike
%Disk time is a bogus number and is useless for performance measurement. It
does not take into account asychronous I/O requests and cannot tell what the
real performance capability of an underlying RAID set may be. I prefer
using Transfers/sec, Read Bytes/sec and Write Bytes/sec, and Disk Queue
length to measure the performance of my disk subsystems. It is important
to take a few hours and benchmark your system with an I/O stress tool before
going live so you will know what your maximum capacities really are.
Geoff N. Hiten
Microsoft SQL Server MVP
Senior Database Administrator
Careerbuilder.com
I support the Professional Association for SQL Server
www.sqlpass.org
"Mike" <anonymous@.discussions.microsoft.com> wrote in message
news:192c01c47bea$40735340$a601280a@.phx.gbl...
> I have separate drives each SQL Server database:
> database file (E
> database transaction log (K
> tempdb (M
> database system files (F
> My database % Disk Time: (Average = 2541, STDEV = 4316,
> Maximum = 86770)
> How is the % Disk Time measured?
> The % Disk Time high at 55%?
> Thanks,
> __________________________________________________ _________
> Brian
> First of all i have said 'probably'
> Secondly if you have this counter higher than 55% for
> continuous periods
> (let me say 15 min)then your SQL Server
>
> may be experiencing an I/O bottleneck.
> "Brian Moran" <brian@.solidqualitylearning.com> wrote in
> message
> news:%23r7TWIieEHA.2848@.TK2MSFTNGP10.phx.gbl...
> You could easily
> have
> might NOT have a
> a look. You need
> to
> transfers, time it takes
> other counters
> don't have time to
> article in SQL
> Server
> it might also be
> on
> search by his name on
> general it should
> I have a Windows 2000 Advanced Server with SQL Server 2000
> Enterprise Edition on a SAN. What units are the %Disk
> Time measured in from Perfmon?
> Is the (% Disk Time E) = (Disk Time E) / (Total % Disk
> Time) ?
> Please help me with these questions.
> Thanks,
> Mike
>
|||That counter is pretty much useless in my opinion. I have seen this vary
greatly with the different types of hardware used. It's better to use the
Avg and current Disk queues instead. They give a much better view of how
your drives are able to handle the load. By the way are these drives
Logical or Physical?
Andrew J. Kelly SQL MVP
"Mike" <anonymous@.discussions.microsoft.com> wrote in message
news:192c01c47bea$40735340$a601280a@.phx.gbl...
> I have separate drives each SQL Server database:
> database file (E
> database transaction log (K
> tempdb (M
> database system files (F
> My database % Disk Time: (Average = 2541, STDEV = 4316,
> Maximum = 86770)
> How is the % Disk Time measured?
> The % Disk Time high at 55%?
> Thanks,
> __________________________________________________ _________
> Brian
> First of all i have said 'probably'
> Secondly if you have this counter higher than 55% for
> continuous periods
> (let me say 15 min)then your SQL Server
>
> may be experiencing an I/O bottleneck.
> "Brian Moran" <brian@.solidqualitylearning.com> wrote in
> message
> news:%23r7TWIieEHA.2848@.TK2MSFTNGP10.phx.gbl...
> You could easily
> have
> might NOT have a
> a look. You need
> to
> transfers, time it takes
> other counters
> don't have time to
> article in SQL
> Server
> it might also be
> on
> search by his name on
> general it should
> I have a Windows 2000 Advanced Server with SQL Server 2000
> Enterprise Edition on a SAN. What units are the %Disk
> Time measured in from Perfmon?
> Is the (% Disk Time E) = (Disk Time E) / (Total % Disk
> Time) ?
> Please help me with these questions.
> Thanks,
> Mike
>
|||I mostly use Average disk queue length... Any average disk queue length > 2
on a single spindle = bad.
Wayne Snyder, MCDBA, SQL Server MVP
Mariner, Charlotte, NC
www.mariner-usa.com
(Please respond only to the newsgroups.)
I support the Professional Association of SQL Server (PASS) and it's
community of SQL Server professionals.
www.sqlpass.org
"Mike" <anonymous@.discussions.microsoft.com> wrote in message
news:192c01c47bea$40735340$a601280a@.phx.gbl...
> I have separate drives each SQL Server database:
> database file (E
> database transaction log (K
> tempdb (M
> database system files (F
> My database % Disk Time: (Average = 2541, STDEV = 4316,
> Maximum = 86770)
> How is the % Disk Time measured?
> The % Disk Time high at 55%?
> Thanks,
> __________________________________________________ _________
> Brian
> First of all i have said 'probably'
> Secondly if you have this counter higher than 55% for
> continuous periods
> (let me say 15 min)then your SQL Server
>
> may be experiencing an I/O bottleneck.
> "Brian Moran" <brian@.solidqualitylearning.com> wrote in
> message
> news:%23r7TWIieEHA.2848@.TK2MSFTNGP10.phx.gbl...
> You could easily
> have
> might NOT have a
> a look. You need
> to
> transfers, time it takes
> other counters
> don't have time to
> article in SQL
> Server
> it might also be
> on
> search by his name on
> general it should
> I have a Windows 2000 Advanced Server with SQL Server 2000
> Enterprise Edition on a SAN. What units are the %Disk
> Time measured in from Perfmon?
> Is the (% Disk Time E) = (Disk Time E) / (Total % Disk
> Time) ?
> Please help me with these questions.
> Thanks,
> Mike
>

% Disk Time

I have separate drives each SQL Server database:
database file (E
database transaction log (K
tempdb (M
database system files (F
My database % Disk Time: (Average = 2541, STDEV = 4316,
Maximum = 86770)
How is the % Disk Time measured?
The % Disk Time high at 55%?
Thanks,
________________________________________
___________________
Brian
First of all i have said 'probably'
Secondly if you have this counter higher than 55% for
continuous periods
(let me say 15 min)then your SQL Server
may be experiencing an I/O bottleneck.
"Brian Moran" <brian@.solidqualitylearning.com> wrote in
message
news:%23r7TWIieEHA.2848@.TK2MSFTNGP10.phx.gbl...
> I don't tend to agree with that advice.
> On it's own
> <<
> '%Disk Time
> Is not a very reliable indicator of an IO bottleneck.
You could easily
have
> a bottleneck if this counter is much lower than 55%. You
might NOT have a
> bottleneck if this counter is 55% or higher.
> There are many, many more counters which you should take
a look. You need
to
> take a look at queue lenght, wait times for disk
transfers, time it takes
> per read and write. In addition, there are a host of
other counters
> specific to your SAN that you should take a look at.
>
> Unfortunately, I'm running a bit late right now and I
don't have time to
> write a long message. Tom Davidson from MS has a nice
article in SQL
Server
> Magazine that dicusses some of these counters. I believe
it might also be
on
> MSDN. It shouldn't be too hard to track down if you
search by his name on[vbcol=seagreen]
> each site.
> --
> Brian Moran
> "Uri Dimant" <urid@.iscar.co.il> wrote in message
> news:u1rJ0yheEHA.3520@.TK2MSFTNGP10.phx.gbl...
general it should[vbcol=seagreen]
> be
I have a Windows 2000 Advanced Server with SQL Server 2000
Enterprise Edition on a SAN. What units are the %Disk
Time measured in from Perfmon?
Is the (% Disk Time E) = (Disk Time E) / (Total % Disk
Time) ?
Please help me with these questions.
Thanks,
Mike%Disk time is a bogus number and is useless for performance measurement. It
does not take into account asychronous I/O requests and cannot tell what the
real performance capability of an underlying RAID set may be. I prefer
using Transfers/sec, Read Bytes/sec and Write Bytes/sec, and Disk Queue
length to measure the performance of my disk subsystems. It is important
to take a few hours and benchmark your system with an I/O stress tool before
going live so you will know what your maximum capacities really are.
Geoff N. Hiten
Microsoft SQL Server MVP
Senior Database Administrator
Careerbuilder.com
I support the Professional Association for SQL Server
www.sqlpass.org
"Mike" <anonymous@.discussions.microsoft.com> wrote in message
news:192c01c47bea$40735340$a601280a@.phx.gbl...
> I have separate drives each SQL Server database:
> database file (E
> database transaction log (K
> tempdb (M
> database system files (F
> My database % Disk Time: (Average = 2541, STDEV = 4316,
> Maximum = 86770)
> How is the % Disk Time measured?
> The % Disk Time high at 55%?
> Thanks,
> ________________________________________
___________________
> Brian
> First of all i have said 'probably'
> Secondly if you have this counter higher than 55% for
> continuous periods
> (let me say 15 min)then your SQL Server
>
> may be experiencing an I/O bottleneck.
> "Brian Moran" <brian@.solidqualitylearning.com> wrote in
> message
> news:%23r7TWIieEHA.2848@.TK2MSFTNGP10.phx.gbl...
> You could easily
> have
> might NOT have a
> a look. You need
> to
> transfers, time it takes
> other counters
> don't have time to
> article in SQL
> Server
> it might also be
> on
> search by his name on
> general it should
> I have a Windows 2000 Advanced Server with SQL Server 2000
> Enterprise Edition on a SAN. What units are the %Disk
> Time measured in from Perfmon?
> Is the (% Disk Time E) = (Disk Time E) / (Total % Disk
> Time) ?
> Please help me with these questions.
> Thanks,
> Mike
>|||That counter is pretty much useless in my opinion. I have seen this vary
greatly with the different types of hardware used. It's better to use the
Avg and current Disk queues instead. They give a much better view of how
your drives are able to handle the load. By the way are these drives
Logical or Physical?
Andrew J. Kelly SQL MVP
"Mike" <anonymous@.discussions.microsoft.com> wrote in message
news:192c01c47bea$40735340$a601280a@.phx.gbl...
> I have separate drives each SQL Server database:
> database file (E
> database transaction log (K
> tempdb (M
> database system files (F
> My database % Disk Time: (Average = 2541, STDEV = 4316,
> Maximum = 86770)
> How is the % Disk Time measured?
> The % Disk Time high at 55%?
> Thanks,
> ________________________________________
___________________
> Brian
> First of all i have said 'probably'
> Secondly if you have this counter higher than 55% for
> continuous periods
> (let me say 15 min)then your SQL Server
>
> may be experiencing an I/O bottleneck.
> "Brian Moran" <brian@.solidqualitylearning.com> wrote in
> message
> news:%23r7TWIieEHA.2848@.TK2MSFTNGP10.phx.gbl...
> You could easily
> have
> might NOT have a
> a look. You need
> to
> transfers, time it takes
> other counters
> don't have time to
> article in SQL
> Server
> it might also be
> on
> search by his name on
> general it should
> I have a Windows 2000 Advanced Server with SQL Server 2000
> Enterprise Edition on a SAN. What units are the %Disk
> Time measured in from Perfmon?
> Is the (% Disk Time E) = (Disk Time E) / (Total % Disk
> Time) ?
> Please help me with these questions.
> Thanks,
> Mike
>|||I mostly use Average disk queue length... Any average disk queue length > 2
on a single spindle = bad.
Wayne Snyder, MCDBA, SQL Server MVP
Mariner, Charlotte, NC
www.mariner-usa.com
(Please respond only to the newsgroups.)
I support the Professional Association of SQL Server (PASS) and it's
community of SQL Server professionals.
www.sqlpass.org
"Mike" <anonymous@.discussions.microsoft.com> wrote in message
news:192c01c47bea$40735340$a601280a@.phx.gbl...
> I have separate drives each SQL Server database:
> database file (E
> database transaction log (K
> tempdb (M
> database system files (F
> My database % Disk Time: (Average = 2541, STDEV = 4316,
> Maximum = 86770)
> How is the % Disk Time measured?
> The % Disk Time high at 55%?
> Thanks,
> ________________________________________
___________________
> Brian
> First of all i have said 'probably'
> Secondly if you have this counter higher than 55% for
> continuous periods
> (let me say 15 min)then your SQL Server
>
> may be experiencing an I/O bottleneck.
> "Brian Moran" <brian@.solidqualitylearning.com> wrote in
> message
> news:%23r7TWIieEHA.2848@.TK2MSFTNGP10.phx.gbl...
> You could easily
> have
> might NOT have a
> a look. You need
> to
> transfers, time it takes
> other counters
> don't have time to
> article in SQL
> Server
> it might also be
> on
> search by his name on
> general it should
> I have a Windows 2000 Advanced Server with SQL Server 2000
> Enterprise Edition on a SAN. What units are the %Disk
> Time measured in from Perfmon?
> Is the (% Disk Time E) = (Disk Time E) / (Total % Disk
> Time) ?
> Please help me with these questions.
> Thanks,
> Mike
>

% Disk Time

I have separate drives each SQL Server database:
database file (E:)
database transaction log (K:)
tempdb (M:)
database system files (F:)
My database % Disk Time: (Average = 2541, STDEV = 4316,
Maximum = 86770)
How is the % Disk Time measured?
The % Disk Time high at 55%?
Thanks,
___________________________________________________________
Brian
First of all i have said 'probably'
Secondly if you have this counter higher than 55% for
continuous periods
(let me say 15 min)then your SQL Server
may be experiencing an I/O bottleneck.
"Brian Moran" <brian@.solidqualitylearning.com> wrote in
message
news:%23r7TWIieEHA.2848@.TK2MSFTNGP10.phx.gbl...
> I don't tend to agree with that advice.
>
> On it's own
> <<
> '%Disk Time
> >>
>
> Is not a very reliable indicator of an IO bottleneck.
You could easily
have
> a bottleneck if this counter is much lower than 55%. You
might NOT have a
> bottleneck if this counter is 55% or higher.
>
> There are many, many more counters which you should take
a look. You need
to
> take a look at queue lenght, wait times for disk
transfers, time it takes
> per read and write. In addition, there are a host of
other counters
> specific to your SAN that you should take a look at.
>
>
> Unfortunately, I'm running a bit late right now and I
don't have time to
> write a long message. Tom Davidson from MS has a nice
article in SQL
Server
> Magazine that dicusses some of these counters. I believe
it might also be
on
> MSDN. It shouldn't be too hard to track down if you
search by his name on
> each site.
> --
>
> Brian Moran
>
> "Uri Dimant" <urid@.iscar.co.il> wrote in message
> news:u1rJ0yheEHA.3520@.TK2MSFTNGP10.phx.gbl...
> > Mike
> > This counter measured how busy a physical array is. In
general it should
> be
> > less 55% otherwise you probably jave IO bottleneck.
> >
> >
> >
I have a Windows 2000 Advanced Server with SQL Server 2000
Enterprise Edition on a SAN. What units are the %Disk
Time measured in from Perfmon?
Is the (% Disk Time E) = (Disk Time E) / (Total % Disk
Time) ?
Please help me with these questions.
Thanks,
Mike%Disk time is a bogus number and is useless for performance measurement. It
does not take into account asychronous I/O requests and cannot tell what the
real performance capability of an underlying RAID set may be. I prefer
using Transfers/sec, Read Bytes/sec and Write Bytes/sec, and Disk Queue
length to measure the performance of my disk subsystems. It is important
to take a few hours and benchmark your system with an I/O stress tool before
going live so you will know what your maximum capacities really are.
--
Geoff N. Hiten
Microsoft SQL Server MVP
Senior Database Administrator
Careerbuilder.com
I support the Professional Association for SQL Server
www.sqlpass.org
"Mike" <anonymous@.discussions.microsoft.com> wrote in message
news:192c01c47bea$40735340$a601280a@.phx.gbl...
> I have separate drives each SQL Server database:
> database file (E:)
> database transaction log (K:)
> tempdb (M:)
> database system files (F:)
> My database % Disk Time: (Average = 2541, STDEV = 4316,
> Maximum = 86770)
> How is the % Disk Time measured?
> The % Disk Time high at 55%?
> Thanks,
> ___________________________________________________________
> Brian
> First of all i have said 'probably'
> Secondly if you have this counter higher than 55% for
> continuous periods
> (let me say 15 min)then your SQL Server
>
> may be experiencing an I/O bottleneck.
> "Brian Moran" <brian@.solidqualitylearning.com> wrote in
> message
> news:%23r7TWIieEHA.2848@.TK2MSFTNGP10.phx.gbl...
> > I don't tend to agree with that advice.
> >
> > On it's own
> > <<
> > '%Disk Time
> > >>
> >
> > Is not a very reliable indicator of an IO bottleneck.
> You could easily
> have
> > a bottleneck if this counter is much lower than 55%. You
> might NOT have a
> > bottleneck if this counter is 55% or higher.
> >
> > There are many, many more counters which you should take
> a look. You need
> to
> > take a look at queue lenght, wait times for disk
> transfers, time it takes
> > per read and write. In addition, there are a host of
> other counters
> > specific to your SAN that you should take a look at.
> >
> >
> > Unfortunately, I'm running a bit late right now and I
> don't have time to
> > write a long message. Tom Davidson from MS has a nice
> article in SQL
> Server
> > Magazine that dicusses some of these counters. I believe
> it might also be
> on
> > MSDN. It shouldn't be too hard to track down if you
> search by his name on
> > each site.
> > --
> >
> > Brian Moran
> >
> > "Uri Dimant" <urid@.iscar.co.il> wrote in message
> > news:u1rJ0yheEHA.3520@.TK2MSFTNGP10.phx.gbl...
> > > Mike
> > > This counter measured how busy a physical array is. In
> general it should
> > be
> > > less 55% otherwise you probably jave IO bottleneck.
> > >
> > >
> > >
> I have a Windows 2000 Advanced Server with SQL Server 2000
> Enterprise Edition on a SAN. What units are the %Disk
> Time measured in from Perfmon?
> Is the (% Disk Time E) = (Disk Time E) / (Total % Disk
> Time) ?
> Please help me with these questions.
> Thanks,
> Mike
>|||That counter is pretty much useless in my opinion. I have seen this vary
greatly with the different types of hardware used. It's better to use the
Avg and current Disk queues instead. They give a much better view of how
your drives are able to handle the load. By the way are these drives
Logical or Physical?
--
Andrew J. Kelly SQL MVP
"Mike" <anonymous@.discussions.microsoft.com> wrote in message
news:192c01c47bea$40735340$a601280a@.phx.gbl...
> I have separate drives each SQL Server database:
> database file (E:)
> database transaction log (K:)
> tempdb (M:)
> database system files (F:)
> My database % Disk Time: (Average = 2541, STDEV = 4316,
> Maximum = 86770)
> How is the % Disk Time measured?
> The % Disk Time high at 55%?
> Thanks,
> ___________________________________________________________
> Brian
> First of all i have said 'probably'
> Secondly if you have this counter higher than 55% for
> continuous periods
> (let me say 15 min)then your SQL Server
>
> may be experiencing an I/O bottleneck.
> "Brian Moran" <brian@.solidqualitylearning.com> wrote in
> message
> news:%23r7TWIieEHA.2848@.TK2MSFTNGP10.phx.gbl...
> > I don't tend to agree with that advice.
> >
> > On it's own
> > <<
> > '%Disk Time
> > >>
> >
> > Is not a very reliable indicator of an IO bottleneck.
> You could easily
> have
> > a bottleneck if this counter is much lower than 55%. You
> might NOT have a
> > bottleneck if this counter is 55% or higher.
> >
> > There are many, many more counters which you should take
> a look. You need
> to
> > take a look at queue lenght, wait times for disk
> transfers, time it takes
> > per read and write. In addition, there are a host of
> other counters
> > specific to your SAN that you should take a look at.
> >
> >
> > Unfortunately, I'm running a bit late right now and I
> don't have time to
> > write a long message. Tom Davidson from MS has a nice
> article in SQL
> Server
> > Magazine that dicusses some of these counters. I believe
> it might also be
> on
> > MSDN. It shouldn't be too hard to track down if you
> search by his name on
> > each site.
> > --
> >
> > Brian Moran
> >
> > "Uri Dimant" <urid@.iscar.co.il> wrote in message
> > news:u1rJ0yheEHA.3520@.TK2MSFTNGP10.phx.gbl...
> > > Mike
> > > This counter measured how busy a physical array is. In
> general it should
> > be
> > > less 55% otherwise you probably jave IO bottleneck.
> > >
> > >
> > >
> I have a Windows 2000 Advanced Server with SQL Server 2000
> Enterprise Edition on a SAN. What units are the %Disk
> Time measured in from Perfmon?
> Is the (% Disk Time E) = (Disk Time E) / (Total % Disk
> Time) ?
> Please help me with these questions.
> Thanks,
> Mike
>|||I mostly use Average disk queue length... Any average disk queue length > 2
on a single spindle = bad.
--
Wayne Snyder, MCDBA, SQL Server MVP
Mariner, Charlotte, NC
www.mariner-usa.com
(Please respond only to the newsgroups.)
I support the Professional Association of SQL Server (PASS) and it's
community of SQL Server professionals.
www.sqlpass.org
"Mike" <anonymous@.discussions.microsoft.com> wrote in message
news:192c01c47bea$40735340$a601280a@.phx.gbl...
> I have separate drives each SQL Server database:
> database file (E:)
> database transaction log (K:)
> tempdb (M:)
> database system files (F:)
> My database % Disk Time: (Average = 2541, STDEV = 4316,
> Maximum = 86770)
> How is the % Disk Time measured?
> The % Disk Time high at 55%?
> Thanks,
> ___________________________________________________________
> Brian
> First of all i have said 'probably'
> Secondly if you have this counter higher than 55% for
> continuous periods
> (let me say 15 min)then your SQL Server
>
> may be experiencing an I/O bottleneck.
> "Brian Moran" <brian@.solidqualitylearning.com> wrote in
> message
> news:%23r7TWIieEHA.2848@.TK2MSFTNGP10.phx.gbl...
> > I don't tend to agree with that advice.
> >
> > On it's own
> > <<
> > '%Disk Time
> > >>
> >
> > Is not a very reliable indicator of an IO bottleneck.
> You could easily
> have
> > a bottleneck if this counter is much lower than 55%. You
> might NOT have a
> > bottleneck if this counter is 55% or higher.
> >
> > There are many, many more counters which you should take
> a look. You need
> to
> > take a look at queue lenght, wait times for disk
> transfers, time it takes
> > per read and write. In addition, there are a host of
> other counters
> > specific to your SAN that you should take a look at.
> >
> >
> > Unfortunately, I'm running a bit late right now and I
> don't have time to
> > write a long message. Tom Davidson from MS has a nice
> article in SQL
> Server
> > Magazine that dicusses some of these counters. I believe
> it might also be
> on
> > MSDN. It shouldn't be too hard to track down if you
> search by his name on
> > each site.
> > --
> >
> > Brian Moran
> >
> > "Uri Dimant" <urid@.iscar.co.il> wrote in message
> > news:u1rJ0yheEHA.3520@.TK2MSFTNGP10.phx.gbl...
> > > Mike
> > > This counter measured how busy a physical array is. In
> general it should
> > be
> > > less 55% otherwise you probably jave IO bottleneck.
> > >
> > >
> > >
> I have a Windows 2000 Advanced Server with SQL Server 2000
> Enterprise Edition on a SAN. What units are the %Disk
> Time measured in from Perfmon?
> Is the (% Disk Time E) = (Disk Time E) / (Total % Disk
> Time) ?
> Please help me with these questions.
> Thanks,
> Mike
>

Thursday, February 9, 2012

#@ Row 1, Column 7: String data, right truncation @#

I am trying to BCP a ton of data files into a SQL 2005 database. The first row of data in one of my files looks like:

1000|100000156752|100000176409|100000000000|100000000000|9.4|M|9.4||1/22/1993||1||||100|||||||||1|1/22/1993|||||||

The error file has this:

#@. Row 1, Column 7: String data, right truncation @.#
0 0 0 0 0 .00 17|27.7|M|27.7||2/2/1993||1||||100|||||||||1|2/2/1993|||||||

I've built a format file based on the SQL Table definitions with this command:
FOR %%f IN (*.*) DO bcp IRIS.dbo.%%f format nul -T -n -t"|" -r"\n" -f%%f.format

The format file for lines 1-8 look like:
1 SQLNUMERIC 1 19 "|" 1 SITE_ID ""
2 SQLNUMERIC 1 19 "|" 2 WEL_ID ""
3 SQLNUMERIC 1 19 "|" 3 WPOO_ID ""
4 SQLNUMERIC 1 19 "|" 4 WSMP_ID ""
5 SQLNUMERIC 1 19 "|" 5 CC_ID ""
6 SQLNUMERIC 1 19 "|" 6 CORE_LENGTH ""
7 SQLCHAR 2 2 "|" 7 LENGTH_MEASM_UNIT_ID SQL_Latin1_General_CP1_CI_AS
8 SQLNUMERIC 1 19 "|" 8 LENGTH_OF_CORE_RECOVD ""

Here is the DOS command window results for this file:
F:\Data>cd import

F:\Data\Import>FOR %f IN (CONVT_CORES.*) DO bcp IRIS.dbo.%f in %f -e..\BCP_Error
\%f.error -Slocalhost -Usa -Psol3admin -f..\BCP_Format\%f.format

F:\Data\Import>bcp IRIS.dbo.CONVT_CORES in CONVT_CORES -e..\BCP_Error\CONVT_CORE
S.error -Slocalhost -Usa -Psol3admin -f..\BCP_Format\CONVT_CORES.format

Starting copy...
SQLState = 22001, NativeError = 0
Error = [Microsoft][ODBC SQL Server Driver]String data, right truncation
SQLState = 22001, NativeError = 0
Error = [Microsoft][ODBC SQL Server Driver]String data, right truncation
SQLState = 22001, NativeError = 0
Error = [Microsoft][ODBC SQL Server Driver]String data, right truncation
SQLState = 22003, NativeError = 0
Error = [Microsoft][ODBC SQL Server Driver]Numeric value out of range
SQLState = 22001, NativeError = 0
Error = [Microsoft][ODBC SQL Server Driver]String data, right truncation
SQLState = 22001, NativeError = 0
Error = [Microsoft][ODBC SQL Server Driver]String data, right truncation
SQLState = 22001, NativeError = 0
Error = [Microsoft][ODBC SQL Server Driver]String data, right truncation
SQLState = 22001, NativeError = 0
Error = [Microsoft][ODBC SQL Server Driver]String data, right truncation
SQLState = 22001, NativeError = 0
Error = [Microsoft][ODBC SQL Server Driver]String data, right truncation
SQLState = 22001, NativeError = 0
Error = [Microsoft][ODBC SQL Server Driver]String data, right truncation

BCP copy in failed

F:\Data\Import>cd..

So, what is wrong?

Seems, that the data types do not make, make sure that the data types in the destination tables are capable to import the data, otherwsie truncation will take place and will chop the data.

HTH, Jens K. Suessmeyer.


http://www.sqlserver2005.de

|||All datat types are made larger than needed by the largest data piece being imported. It works quite easily in SSIS but BCP gives me this error. With a few hundred tables, SSIS will take me days to setup and execute each one.

Something is wrong with BCP in SQL 2005!!!|||

Hi Guys,

Make sure the table schema on the target server matches the one on the source server. This will solve the proble. There is nothing wrong in the BCP in SQL 2005.

Roshan.

|||

Try using sqlchar across the board. If you are exporting from a SQL server and then importing the data back in, use native format to export, and specify this in your format file.

I ran into this problem myself a few weeks ago.

|||Exporting from Oracle. I've even gone so far as to make all columns varchar(xx) to see if that would fix it. It does *not* fix it. I've tried various formats for the CSV and they all give me this error. I exported to XML, wrote a small app to import that and I have problems with one, and only one, table out of 736 tables. I cannot say BCP works as I cannot get it to work. SSIS works on all but 7 tables so I know the data can go in. <bah type="humbug" />|||I have bcp jobs that run every night from production to staging, and one started failing after putting SP2 on SQL server. It was only on one table. I finally fixed the problem by deleting the table and recreating it from a script extracted from production. All I can figure is that something in the table schema got corrupted.

#@ Row 1, Column 7: String data, right truncation @#

I am trying to BCP a ton of data files into a SQL 2005 database. The first row of data in one of my files looks like:

1000|100000156752|100000176409|100000000000|100000000000|9.4|M|9.4||1/22/1993||1||||100|||||||||1|1/22/1993|||||||

The error file has this:

#@. Row 1, Column 7: String data, right truncation @.#
0 0 0 0 0 .00 17|27.7|M|27.7||2/2/1993||1||||100|||||||||1|2/2/1993|||||||

I've built a format file based on the SQL Table definitions with this command:
FOR %%f IN (*.*) DO bcp IRIS.dbo.%%f format nul -T -n -t"|" -r"\n" -f%%f.format

The format file for lines 1-8 look like:
1 SQLNUMERIC 1 19 "|" 1 SITE_ID ""
2 SQLNUMERIC 1 19 "|" 2 WEL_ID ""
3 SQLNUMERIC 1 19 "|" 3 WPOO_ID ""
4 SQLNUMERIC 1 19 "|" 4 WSMP_ID ""
5 SQLNUMERIC 1 19 "|" 5 CC_ID ""
6 SQLNUMERIC 1 19 "|" 6 CORE_LENGTH ""
7 SQLCHAR 2 2 "|" 7 LENGTH_MEASM_UNIT_ID SQL_Latin1_General_CP1_CI_AS
8 SQLNUMERIC 1 19 "|" 8 LENGTH_OF_CORE_RECOVD ""

Here is the DOS command window results for this file:
F:\Data>cd import

F:\Data\Import>FOR %f IN (CONVT_CORES.*) DO bcp IRIS.dbo.%f in %f -e..\BCP_Error
\%f.error -Slocalhost -Usa -Psol3admin -f..\BCP_Format\%f.format

F:\Data\Import>bcp IRIS.dbo.CONVT_CORES in CONVT_CORES -e..\BCP_Error\CONVT_CORE
S.error -Slocalhost -Usa -Psol3admin -f..\BCP_Format\CONVT_CORES.format

Starting copy...
SQLState = 22001, NativeError = 0
Error = [Microsoft][ODBC SQL Server Driver]String data, right truncation
SQLState = 22001, NativeError = 0
Error = [Microsoft][ODBC SQL Server Driver]String data, right truncation
SQLState = 22001, NativeError = 0
Error = [Microsoft][ODBC SQL Server Driver]String data, right truncation
SQLState = 22003, NativeError = 0
Error = [Microsoft][ODBC SQL Server Driver]Numeric value out of range
SQLState = 22001, NativeError = 0
Error = [Microsoft][ODBC SQL Server Driver]String data, right truncation
SQLState = 22001, NativeError = 0
Error = [Microsoft][ODBC SQL Server Driver]String data, right truncation
SQLState = 22001, NativeError = 0
Error = [Microsoft][ODBC SQL Server Driver]String data, right truncation
SQLState = 22001, NativeError = 0
Error = [Microsoft][ODBC SQL Server Driver]String data, right truncation
SQLState = 22001, NativeError = 0
Error = [Microsoft][ODBC SQL Server Driver]String data, right truncation
SQLState = 22001, NativeError = 0
Error = [Microsoft][ODBC SQL Server Driver]String data, right truncation

BCP copy in failed

F:\Data\Import>cd..

So, what is wrong?

Seems, that the data types do not make, make sure that the data types in the destination tables are capable to import the data, otherwsie truncation will take place and will chop the data.

HTH, Jens K. Suessmeyer.


http://www.sqlserver2005.de

|||All datat types are made larger than needed by the largest data piece being imported. It works quite easily in SSIS but BCP gives me this error. With a few hundred tables, SSIS will take me days to setup and execute each one.

Something is wrong with BCP in SQL 2005!!!|||

Hi Guys,

Make sure the table schema on the target server matches the one on the source server. This will solve the proble. There is nothing wrong in the BCP in SQL 2005.

Roshan.

|||

Try using sqlchar across the board. If you are exporting from a SQL server and then importing the data back in, use native format to export, and specify this in your format file.

I ran into this problem myself a few weeks ago.

|||Exporting from Oracle. I've even gone so far as to make all columns varchar(xx) to see if that would fix it. It does *not* fix it. I've tried various formats for the CSV and they all give me this error. I exported to XML, wrote a small app to import that and I have problems with one, and only one, table out of 736 tables. I cannot say BCP works as I cannot get it to work. SSIS works on all but 7 tables so I know the data can go in. <bah type="humbug" />|||I have bcp jobs that run every night from production to staging, and one started failing after putting SP2 on SQL server. It was only on one table. I finally fixed the problem by deleting the table and recreating it from a script extracted from production. All I can figure is that something in the table schema got corrupted.

# of files in group, CPU, and RAID

Not sure if this is the right forum...
I have a fact table that ha sits own filegroup on a dedicated RAID 10 array.
Somewhere in Books Online I read that you should create a file in the
filegroup for each CPU in the server. My understanding is that in SQL 2000,
this triggered the server to spawn multiple threads to handle the I/O. My
questions are:
1 - Does SQL 2005 need multiple files to spawn multiple threads for I/O?
2 - If not, being on a RAID 10 array, does it help in any way to have
multiple files in a group?
Thanks,
-- Brian"Brian Shelden" <BrianShelden@.discussions.microsoft.com> wrote in message
news:236B2CF8-F24E-43B8-A3EF-0F7D41CEE486@.microsoft.com...
> Not sure if this is the right forum...
> I have a fact table that ha sits own filegroup on a dedicated RAID 10
> array.
> Somewhere in Books Online I read that you should create a file in the
> filegroup for each CPU in the server. My understanding is that in SQL
> 2000,
> this triggered the server to spawn multiple threads to handle the I/O. My
> questions are:
> 1 - Does SQL 2005 need multiple files to spawn multiple threads for I/O?
> 2 - If not, being on a RAID 10 array, does it help in any way to have
> multiple files in a group?
> Thanks,
>
Multipost. Answered in .server.
David