Events not updating the database correctly
Hi All,
We need to update the created date and time as well as changed date and time for a custom table.Please have a look at the below piece of code.But the date never gets commited as well as when there is any change made to the entries in the table they are not getting commited.Please help.
Thanks,
Sham.
LOOP AT total.
READ TABLE extract WITH KEY <vim_xtotal_key>.
IF sy-subrc EQ 0.
l_index = sy-tabix.
ELSE.
CLEAR l_index.
ENDIF.
MOVE total TO w_mat.
IF status-action EQ 'A'.
w_mat-created_on = sy-datum.
w_mat-creation_time = sy-uzeit.
w_mat-created_by = sy-uname.
w_mat-changed_on = sy-datum.
w_mat-changed_by = sy-uname.
w_mat-changed_time = sy-uzeit.
ELSE.
w_mat-changed_on = sy-datum.
w_mat-changed_by = sy-uname.
w_mat-changed_time = sy-uzeit.
ENDIF.
OVERLAY total WITH w_mat.
MODIFY total.
CHECK l_index GT 0.
extract = total.
MODIFY extract INDEX l_index.
ENDLOOP.
sy-subrc = 0.
ENDFORM.
Added code tags
Edited by: Rob Burbank on Feb 27, 2009 11:06 AM
total-created_on = sy-datum. "w_mat-created_on = sy-datum.similarly for other values
MODIFY total .
"total is table with header line
"other option: MODIFY total from wrk_mat TRANSPORTING created_on etc
Similar Messages
-
Application Compatibility does not update the database.
Hi,
I am using application compatibility manager 6.1, and SQL server 2012 as database. ACT run ok and it create the XML file but it does not update the database at "C:\Program Files\Microsoft SQL Server\MSSQL11.SQLEXPRESS\MSSQL\DATA" location.
I can see the valid XML file but somehow the MDF file of database is not updated so my ACT windows does not showing anything on it.
Any Help would be appreciated.
Thanks
Rakesh Patel
rakesh patelHi Rakesh,
I am not sure if you have resloved your issue.
But for helping others to know what to do if they meet the same issue as yours, I consider to mark the post as answered.
If you would like further assistance, please post back and we will be always here to help you.
Any concern about this mark behavior, you can just unmark it.
Thanks for your understanding.
Regards,
Kelvin hsu
TechNet Community Support -
Console Application not updating the database
Dear all,
I am new to c# development. I have a console application front end in program.cs
I have a local database on visual studio.
When I execute the stored procedure locally on the database the data is getting updated in the database.
When I update the same through Console Application - the data is not appearing in the database.
Can somebody throw light on this? Where I am missing
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Data;
using System.Data.SqlClient;
namespace AssetApp
class Program
static void Main(string[] args)
bool value = true;
while (value)
value = getdisplay();
//Console.ReadLine();
//value = false;
private static bool getdisplay()
Console.WriteLine("-------------------------------------- ");
Console.WriteLine("---------------------------------------");
Console.Clear();
Console.WriteLine("----------Asset Application------------");
Console.WriteLine(" 1 Company Asset ");
Console.WriteLine(" 2 Standby Laptop Register ");
Console.WriteLine(" 3 Scrap Register ");
Console.WriteLine(" 4 Purchase Register ");
Console.WriteLine(" 5 Service Call Report ");
Console.WriteLine(" 6 IT Helpdesk ");
Console.WriteLine(" 7 Exit ");
Console.WriteLine("---------------------------------------");
string input = Console.ReadLine();
switch (input)
case "1":
CompanyAsset();
break;
case "2":
Console.WriteLine("Standy Laptop Register");
break;
case "3":
Console.WriteLine("Scrap Register");
break;
case "4":
Console.WriteLine("Purchase Register");
break;
case "5":
Console.WriteLine("Service call Report");
break;
case "6":
Console.WriteLine("IT Helpdesk");
break;
case "7":
return false;
default:
break;
return true;
private static void CompanyAsset()
Console.WriteLine("------Company Asset------------------------");
Console.WriteLine("Type the Department Name");
string departmentName = Console.ReadLine();
Console.WriteLine("Type the First Name");
string firstName = Console.ReadLine();
Console.WriteLine("Type the Last Name");
string lastName = Console.ReadLine();
Console.WriteLine("Type the User Name");
string userName = Console.ReadLine();
Console.WriteLine("Type the Model Number");
string modelNumber = Console.ReadLine();
Console.WriteLine("Type the AssetTypeID");
string assetTypeID = Console.ReadLine();
Console.WriteLine("Type the SerialNumber");
string serialNumber = Console.ReadLine();
Console.WriteLine("Type the WarrantyStartDate");
DateTime warrantyStartDate = Convert.ToDateTime(Console.ReadLine());
Console.WriteLine("Type the WarrantyEndDate");
DateTime warrantyEndDate = Convert.ToDateTime(Console.ReadLine());
Console.WriteLine("Company");
string company = Console.ReadLine();
Console.WriteLine("EngineerID");
string engineerID = Console.ReadLine();
Console.WriteLine("ITHelpdeskID");
string itHelpdeskID = Console.ReadLine();
Console.WriteLine("EmpID");
string empID = Console.ReadLine();
//Handshake
SqlConnection myNewConnection = new SqlConnection("Data Source=.\\SQLEXPRESS;AttachDbFilename=|DataDirectory|\\AssetApp.mdf;Integrated Security=True");
//open the database
myNewConnection.Open();
//create command
SqlCommand myCommand = myNewConnection.CreateCommand();
//using the stored procedue to update the database using parameters add
myCommand.CommandText = "InsertAsset";
myCommand.CommandType = CommandType.StoredProcedure;
myCommand.Parameters.Add(new SqlParameter("@DepartmentName", departmentName));
myCommand.Parameters.Add(new SqlParameter("@FirstName", firstName));
myCommand.Parameters.Add(new SqlParameter("@LastName", lastName));
myCommand.Parameters.Add(new SqlParameter("@UserName", userName));
myCommand.Parameters.Add(new SqlParameter("@ModelNumber", modelNumber));
myCommand.Parameters.Add(new SqlParameter("@AssetTypeID", int.Parse(assetTypeID)));
myCommand.Parameters.Add(new SqlParameter("@SerialNumber", serialNumber));
myCommand.Parameters.Add(new SqlParameter("@WarrantyStartDate", warrantyStartDate));
myCommand.Parameters.Add(new SqlParameter("@WarrantyEndDate", warrantyEndDate));
myCommand.Parameters.Add(new SqlParameter("@Company", company));
myCommand.Parameters.Add(new SqlParameter("@EngineerID", int.Parse(engineerID)));
myCommand.Parameters.Add(new SqlParameter("@ITHelpdeskID", int.Parse(itHelpdeskID)));
myCommand.Parameters.Add(new SqlParameter("@EmpID", int.Parse(empID)));
int recordsAffected = myCommand.ExecuteNonQuery();
if (recordsAffected == 1)
Console.WriteLine("Successful your entry");
else
Console.WriteLine("Your entry is not successful");
myNewConnection.Close();
Console.WriteLine("");
Console.WriteLine("Press Enter to continue");
Console.ReadLine();
public static void StandbyLaptopRegister()
Console.WriteLine("-------------------------------");
Console.WriteLine("Select the Date & Time");
string DateTime = Console.ReadLine();
Console.WriteLine("");
ALTER PROCEDURE dbo.InsertAsset
@DepartmentName NVARCHAR(50),
@FirstName NVARCHAR(50),
@LastName NVARCHAR(50),
@UserName NVARCHAR(50),
@ModelNumber NVARCHAR(50),
@AssetTypeID INT,
@SerialNumber NVARCHAR(50),
@WarrantyStartDate SMALLDATETIME,
@WarrantyEndDate SMALLDATETIME,
@Company NVARCHAR(50),
@EngineerID INT,
@ITHelpdeskID INT,
@EmpID INT
@parameter1 int = 5,
@parameter2 datatype OUTPUT
AS
/* SET NOCOUNT ON */
BEGIN
INSERT CompanyAsset(DepartmentName,
FirstName,
LastName,
UserName,
ModelNumber,
AssetTypeID,
SerialNumber,
WarrantyStartDate,
WarrantyEndDate,
Company,
EngineerID,
ITHelpdeskID,
EmpID)
VALUES(@DepartmentName,
@FirstName,
@LastName,
@UserName,
@ModelNumber,
@AssetTypeID,
@SerialNumber,
@WarrantyStartDate,
@WarrantyEndDate,
@Company,
@EngineerID,
@ITHelpdeskID,
@EmpID)
/*RETURN @@IDENTITY*/
END
Cheers
SathyaHello,
Usually when I see
AttachDbFilename=|DataDirectory| ...
The database was added into the project via the IDE add new data source and if so make sure under the property window for the database that "Copy to Output Directory" is set to either the first or last option as the default "Copy always"
copies the database each time you build the project thus overwrites the last time you ran the project.
I would recommend the "Copy if Newer" which means the database is only copied if you make changes to the database. Set "Copy if newer", build run check results.
Of course this may not be the issue but may very well be too.
Please remember to mark the replies as answers if they help and unmark them if they provide no help, this will help others who are looking for solutions to the same or similar problem. -
ERROR IN FILE--XI--RFC SCENARIO. BAPI did not UPDATE the DATABASE TABLE
Hi
I have created a scenario FILE -XI- RFC
File is picked by file adapter - Its working fine
I have used BPM
In RFC side i used BAPI_INCOMINGINVOICE_CREATE
Its working fine and return an Invoice Number and Fisical year .
When i Check this in the R/3 System , in Invoice no Does not Exist .
Message mapping is ok
SXMB_MONI all are ok
Receiver file i got the invoice no and fisical year .
The Problem is " DATABASE TABLE DID NOT UPDATED "
So should i do BAPI_COMMIT seperately ........
Any solution ................
VERY VERY URGENT .....
thanks in advance
B.Judehi jude,
Commit Control for Single BAPI Calls
If you want to use this communication channel to call BAPIs as remote-enabled function modules that change data in the database, set the indicator.
If executed successfully, the transaction is written to the database by calling the function module BAPI_TRANSACTION_COMMIT explicitly. If an error occurs, the transaction is rolled back by BAPI_TRANSACTION_ROLLBACK.
The result is determined by the value of the field TYPE in parameter RETURN. If successful, the tables are empty and the values , S, I, and W are displayed. All other values are regarded as errors.
To change this setting, set the indicator BAPI Advanced Mode.
<b>In the Successful RETURN-TYPE Values table, enter the values that should lead to a successful execution.</b>
Regards,
Mandeep Virk -
SAVE TEXT not updating the database for Recipe Operation Long Texts
Hi,
We are trying to update the Recipe Operation long text using the FM SAVE_TEXT.
The FM is not throwing any error, but the changes are not reflecting in the database.
Text ID: PLPO
Text Object: ROUTING
Language: EN
Text Name: Concatenated string of ARBPL,PLNNR,OPRATIONCOUNTER
If someone faced similar scenarios, please share your inputs.
Thanks in advance,
AnandAfter some more R & D, i got to know that the Long Text indicator should be enabled to get the changes reflected in the C203 recipe operation details.
In C202, if you pass two text lines for Operation long text, this Long text indicator is automatically enabled and its a non editable field.
Can some one provide inputs how to enable this through program?
Regards,
Anand -
Update the database table inside an user exit.
Hi Experts,
I have a issue where i have to update a custom table in an User exit.
I am using Lock object for ENQUE/DEQUE.
I have tried to use statements like UPDATE/MODIFY inside the user exit.
But the problem is that it's not updating the database table at the same time.
I know if i use COMMIT WORK it can update at the same time but it's not advisable to use COMMIT inside a work.and also it gives a short dump.
The real issue is that this custom table is read for batch creation at the same time for different users.
Now if it the program does not update the database table at the same time then other users also read the same data and create the same Batch number..
While requirement is to create a different/unique batch numbers.
Program is updating the table but it's taking time..so in between other users are creating the same batch number.
Please guide me what would be the best solution for this.
Regards,
Amit Kumar SinghThanks for your quick reply.
My actually requirement is like that.
I have to create a Process Order using tcode COR1.
After passing some input value it goes inside an User Exit.
There one Custom table is maintained which stores some fields like month,year,numeric key field,etc.
The new batch number is created using the combination of these table fields.
Once a new batch number is created it increment the numeric key field number by one.
Issue is we have to update this new numeric field value into the database field so that other users can read a diffrent numeric field value.hence it will create a new/different batch number.
Here i am not able to update the database table inside this User Exit.
Table is geeting updated but after some time and out of this User Exit.
Please suggest what's required in that case?
Regards,
Amit Kumar Singh
Edited by: Amit Singh on Feb 3, 2009 11:33 AM -
Setup problem - sql server 2014 - "could not find the database engine startup handle" - 0x851a0019
I tried to install ,deleted and re-installed several times and no help at all.
visual studio 2013 with update 2 rc and adk installed in my computer.
error code: 0x851a0019
error messege in setup: could not find the database engine startup handle
edition: Microsoft SQL Server 2014 Enterprise (Evaluation)
logs:
Overall summary:
Final result: Failed: see details below
Exit code (Decimal): -2061893607
Start time: 2014-04-03 13:53:29
End time: 2014-04-03 14:47:48
Requested action: Install
Setup completed with required actions for features.
Troubleshooting information for those features:
Next step for RS: Use the following information to resolve the error, uninstall this feature, and then run the setup process again.
Next step for SQLEngine: Use the following information to resolve the error, uninstall this feature, and then run the setup process again.
Next step for DQ: Use the following information to resolve the error, uninstall this feature, and then run the setup process again.
Next step for FullText: Use the following information to resolve the error, uninstall this feature, and then run the setup process again.
Next step for Replication: Use the following information to resolve the error, uninstall this feature, and then run the setup process again.
Machine Properties:
Machine name: ARIELUBA-PC
Machine processor count: 8
OS version: Windows 8
OS service pack:
OS region: United States
OS language: English (United States)
OS architecture: x64
Process architecture: 64 Bit
OS clustered: No
Product features discovered:
Product Instance Instance ID Feature
Language Edition Version Clustered Configured
SQL Server 2012 SQLEXPRESS MSSQL11.SQLEXPRESS Database Engine Services 1033
Express Edition 11.1.3128.0 No Yes
SQL Server 2012 SQLEXPRESS MSSQL11.SQLEXPRESS SQL Server Replication 1033
Express Edition 11.1.3128.0 No Yes
SQL Server 2012 ADK MSSQL11.ADK Database Engine Services
1033 Express Edition 11.0.2100.60 No Yes
SQL Server 2012 ADK MSSQL11.ADK SQL Server Replication
1033 Express Edition 11.0.2100.60 No Yes
SQL Server 2012 LocalDB
1033 Express Edition 11.1.3412.0 No Yes
Package properties:
Description: Microsoft SQL Server 2014
ProductName: SQL Server 2014
Type: RTM
Version: 12
SPLevel: 0
Installation location: C:\Users\Arie Luba\Downloads\WS2012R2DC\SQLServer2014-x64-ENU\x64\setup\
Installation edition: Evaluation
Product Update Status:
None discovered.
User Input Settings:
ACTION: Install
ADDCURRENTUSERASSQLADMIN: true
AGTSVCACCOUNT: NT Service\SQLSERVERAGENT
AGTSVCPASSWORD: *****
AGTSVCSTARTUPTYPE: Manual
ASBACKUPDIR: C:\Program Files\Microsoft SQL Server\MSAS12.MSSQLSERVER\OLAP\Backup
ASCOLLATION: Hebrew_CI_AS
ASCONFIGDIR: C:\Program Files\Microsoft SQL Server\MSAS12.MSSQLSERVER\OLAP\Config
ASDATADIR: C:\Program Files\Microsoft SQL Server\MSAS12.MSSQLSERVER\OLAP\Data
ASLOGDIR: C:\Program Files\Microsoft SQL Server\MSAS12.MSSQLSERVER\OLAP\Log
ASPROVIDERMSOLAP: 1
ASSERVERMODE: MULTIDIMENSIONAL
ASSVCACCOUNT: NT Service\MSSQLServerOLAPService
ASSVCPASSWORD: <empty>
ASSVCSTARTUPTYPE: Automatic
ASSYSADMINACCOUNTS: ARIELUBA-PC\Arie Luba
ASTEMPDIR: C:\Program Files\Microsoft SQL Server\MSAS12.MSSQLSERVER\OLAP\Temp
BROWSERSVCSTARTUPTYPE: Automatic
CLTCTLRNAME:
CLTRESULTDIR: C:\Program Files (x86)\Microsoft SQL Server\DReplayClient\ResultDir\
CLTSTARTUPTYPE: Manual
CLTSVCACCOUNT: NT Service\SQL Server Distributed Replay Client
CLTSVCPASSWORD: <empty>
CLTWORKINGDIR: C:\Program Files (x86)\Microsoft SQL Server\DReplayClient\WorkingDir\
COMMFABRICENCRYPTION: 0
COMMFABRICNETWORKLEVEL: 0
COMMFABRICPORT: 0
CONFIGURATIONFILE: C:\Program Files\Microsoft SQL Server\120\Setup Bootstrap\Log\20140403_135327\ConfigurationFile.ini
CTLRSTARTUPTYPE: Manual
CTLRSVCACCOUNT: NT Service\SQL Server Distributed Replay Controller
CTLRSVCPASSWORD: <empty>
CTLRUSERS: ARIELUBA-PC\Arie Luba
ENABLERANU: false
ENU: true
ERRORREPORTING: false
FEATURES: SQLENGINE, REPLICATION, FULLTEXT, DQ, AS, RS, RS_SHP, RS_SHPWFE, DQC, CONN, IS, BC, SDK, BOL, SSMS, ADV_SSMS, DREPLAY_CTLR, DREPLAY_CLT, MDS
FILESTREAMLEVEL: 0
FILESTREAMSHARENAME: <empty>
FTSVCACCOUNT: NT Service\MSSQLFDLauncher
FTSVCPASSWORD: <empty>
HELP: false
IACCEPTSQLSERVERLICENSETERMS: true
INDICATEPROGRESS: false
INSTALLSHAREDDIR: C:\Program Files\Microsoft SQL Server\
INSTALLSHAREDWOWDIR: C:\Program Files (x86)\Microsoft SQL Server\
INSTALLSQLDATADIR: <empty>
INSTANCEDIR: C:\Program Files\Microsoft SQL Server\
INSTANCEID: MSSQLSERVER
INSTANCENAME: MSSQLSERVER
ISSVCACCOUNT: NT Service\MsDtsServer120
ISSVCPASSWORD: <empty>
ISSVCSTARTUPTYPE: Automatic
MATRIXCMBRICKCOMMPORT: 0
MATRIXCMSERVERNAME: <empty>
MATRIXNAME: <empty>
NPENABLED: 0
PID: *****
QUIET: false
QUIETSIMPLE: false
ROLE: AllFeatures_WithDefaults
RSINSTALLMODE: DefaultNativeMode
RSSHPINSTALLMODE: SharePointFilesOnlyMode
RSSVCACCOUNT: NT Service\ReportServer
RSSVCPASSWORD: <empty>
RSSVCSTARTUPTYPE: Automatic
SAPWD: <empty>
SECURITYMODE: <empty>
SQLBACKUPDIR: <empty>
SQLCOLLATION: Hebrew_CI_AS
SQLSVCACCOUNT: NT Service\MSSQLSERVER
SQLSVCPASSWORD: <empty>
SQLSVCSTARTUPTYPE: Automatic
SQLSYSADMINACCOUNTS: ARIELUBA-PC\Arie Luba
SQLTEMPDBDIR: <empty>
SQLTEMPDBLOGDIR: <empty>
SQLUSERDBDIR: <empty>
SQLUSERDBLOGDIR: <empty>
SQMREPORTING: false
TCPENABLED: 1
UIMODE: Normal
UpdateEnabled: true
UpdateSource: MU
USEMICROSOFTUPDATE: false
X86: false
Configuration file: C:\Program Files\Microsoft SQL Server\120\Setup Bootstrap\Log\20140403_135327\ConfigurationFile.ini
Detailed results:
Feature: Management Tools - Complete
Status: Passed
Feature: Client Tools Connectivity
Status: Passed
Feature: Client Tools SDK
Status: Passed
Feature: Client Tools Backwards Compatibility
Status: Passed
Feature: Management Tools - Basic
Status: Passed
Feature: Reporting Services - Native
Status: Failed: see logs for details
Reason for failure: An error occurred for a dependency of the feature causing the setup process for the feature to fail.
Next Step: Use the following information to resolve the error, uninstall this feature, and then run the setup process again.
Component name: SQL Server Database Engine Services Instance Features
Component error code: 0x851A0019
Error description: Could not find the Database Engine startup handle.
Error help link: http://go.microsoft.com/fwlink?LinkId=20476&ProdName=Microsoft+SQL+Server&EvtSrc=setup.rll&EvtID=50000&ProdVer=12.0.2000.8&EvtType=0xD15B4EB2%400x4BDAF9BA%401306%4025&EvtType=0xD15B4EB2%400x4BDAF9BA%401306%4025
Feature: Database Engine Services
Status: Failed: see logs for details
Reason for failure: An error occurred during the setup process of the feature.
Next Step: Use the following information to resolve the error, uninstall this feature, and then run the setup process again.
Component name: SQL Server Database Engine Services Instance Features
Component error code: 0x851A0019
Error description: Could not find the Database Engine startup handle.
Error help link: http://go.microsoft.com/fwlink?LinkId=20476&ProdName=Microsoft+SQL+Server&EvtSrc=setup.rll&EvtID=50000&ProdVer=12.0.2000.8&EvtType=0xD15B4EB2%400x4BDAF9BA%401306%4025&EvtType=0xD15B4EB2%400x4BDAF9BA%401306%4025
Feature: Data Quality Services
Status: Failed: see logs for details
Reason for failure: An error occurred for a dependency of the feature causing the setup process for the feature to fail.
Next Step: Use the following information to resolve the error, uninstall this feature, and then run the setup process again.
Component name: SQL Server Database Engine Services Instance Features
Component error code: 0x851A0019
Error description: Could not find the Database Engine startup handle.
Error help link: http://go.microsoft.com/fwlink?LinkId=20476&ProdName=Microsoft+SQL+Server&EvtSrc=setup.rll&EvtID=50000&ProdVer=12.0.2000.8&EvtType=0xD15B4EB2%400x4BDAF9BA%401306%4025&EvtType=0xD15B4EB2%400x4BDAF9BA%401306%4025
Feature: Full-Text and Semantic Extractions for Search
Status: Failed: see logs for details
Reason for failure: An error occurred for a dependency of the feature causing the setup process for the feature to fail.
Next Step: Use the following information to resolve the error, uninstall this feature, and then run the setup process again.
Component name: SQL Server Database Engine Services Instance Features
Component error code: 0x851A0019
Error description: Could not find the Database Engine startup handle.
Error help link: http://go.microsoft.com/fwlink?LinkId=20476&ProdName=Microsoft+SQL+Server&EvtSrc=setup.rll&EvtID=50000&ProdVer=12.0.2000.8&EvtType=0xD15B4EB2%400x4BDAF9BA%401306%4025&EvtType=0xD15B4EB2%400x4BDAF9BA%401306%4025
Feature: SQL Server Replication
Status: Failed: see logs for details
Reason for failure: An error occurred for a dependency of the feature causing the setup process for the feature to fail.
Next Step: Use the following information to resolve the error, uninstall this feature, and then run the setup process again.
Component name: SQL Server Database Engine Services Instance Features
Component error code: 0x851A0019
Error description: Could not find the Database Engine startup handle.
Error help link: http://go.microsoft.com/fwlink?LinkId=20476&ProdName=Microsoft+SQL+Server&EvtSrc=setup.rll&EvtID=50000&ProdVer=12.0.2000.8&EvtType=0xD15B4EB2%400x4BDAF9BA%401306%4025&EvtType=0xD15B4EB2%400x4BDAF9BA%401306%4025
Feature: Master Data Services
Status: Passed
Feature: Distributed Replay Client
Status: Passed
Feature: Distributed Replay Controller
Status: Passed
Feature: Integration Services
Status: Passed
Feature: Data Quality Client
Status: Passed
Feature: Analysis Services
Status: Passed
Feature: Reporting Services - SharePoint
Status: Passed
Feature: Reporting Services Add-in for SharePoint Products
Status: Passed
Feature: SQL Browser
Status: Passed
Feature: Documentation Components
Status: Passed
Feature: SQL Writer
Status: Passed
Feature: Setup Support Files
Status: Passed
Rules with failures:
Global rules:
Scenario specific rules:
Rules report file: C:\Program Files\Microsoft SQL Server\120\Setup Bootstrap\Log\20140403_135327\SystemConfigurationCheck_Report.htm
2014-04-03 14:14:28.01 Server Microsoft SQL Server 2014 - 12.0.2000.8 (X64)
Feb 20 2014 20:04:26
Copyright (c) Microsoft Corporation
Enterprise Evaluation Edition (64-bit) on Windows NT 6.3 <X64> (Build 9600: ) (Hypervisor)
2014-04-03 14:14:28.01 Server UTC adjustment: 3:00
2014-04-03 14:14:28.01 Server (c) Microsoft Corporation.
2014-04-03 14:14:28.01 Server All rights reserved.
2014-04-03 14:14:28.01 Server Server process ID is 7148.
2014-04-03 14:14:28.01 Server System Manufacturer: 'Dell Inc.', System Model: 'Inspiron N5110'.
2014-04-03 14:14:28.01 Server Authentication mode is WINDOWS-ONLY.
2014-04-03 14:14:28.01 Server Logging SQL Server messages in file 'C:\Program Files\Microsoft SQL Server\MSSQL12.MSSQLSERVER\MSSQL\Log\ERRORLOG'.
2014-04-03 14:14:28.01 Server The service account is 'NT Service\MSSQLSERVER'. This is an informational message; no user action is required.
2014-04-03 14:14:28.01 Server Registry startup parameters:
-d C:\Program Files\Microsoft SQL Server\MSSQL12.MSSQLSERVER\MSSQL\DATA\master.mdf
-e C:\Program Files\Microsoft SQL Server\MSSQL12.MSSQLSERVER\MSSQL\Log\ERRORLOG
-l C:\Program Files\Microsoft SQL Server\MSSQL12.MSSQLSERVER\MSSQL\DATA\mastlog.ldf
2014-04-03 14:14:28.01 Server Command Line Startup Parameters:
-s "MSSQLSERVER"
-m "SqlSetup"
-Q
-q "Hebrew_CI_AS"
-T 4022
-T 4010
-T 3659
-T 3610
-T 8015
2014-04-03 14:14:28.28 Server SQL Server detected 1 sockets with 4 cores per socket and 8 logical processors per socket, 8 total logical processors; using 8 logical processors based on SQL Server licensing. This is an informational message;
no user action is required.
2014-04-03 14:14:28.28 Server SQL Server is starting at normal priority base (=7). This is an informational message only. No user action is required.
2014-04-03 14:14:28.28 Server Detected 8099 MB of RAM. This is an informational message; no user action is required.
2014-04-03 14:14:28.28 Server Using conventional memory in the memory manager.
2014-04-03 14:14:28.31 Server Default collation: SQL_Latin1_General_CP1_CI_AS (us_english 1033)
2014-04-03 14:14:28.34 Server Perfmon counters for resource governor pools and groups failed to initialize and are disabled.
2014-04-03 14:14:28.36 Server Query Store settings initialized with enabled = 1,
2014-04-03 14:14:28.36 Server The maximum number of dedicated administrator connections for this instance is '1'
2014-04-03 14:14:28.36 Server Node configuration: node 0: CPU mask: 0x00000000000000ff:0 Active CPU mask: 0x00000000000000ff:0. This message provides a description of the NUMA configuration for this computer. This is an informational message
only. No user action is required.
2014-04-03 14:14:28.38 Server Using dynamic lock allocation. Initial allocation of 2500 Lock blocks and 5000 Lock Owner blocks per node. This is an informational message only. No user action is required.
2014-04-03 14:14:28.39 Server Database Mirroring Transport is disabled in the endpoint configuration.
2014-04-03 14:14:28.39 spid8s Warning ******************
2014-04-03 14:14:28.39 spid8s SQL Server started in single-user mode. This an informational message only. No user action is required.
2014-04-03 14:14:28.40 spid8s Starting up database 'master'.
2014-04-03 14:14:28.42 Server Software Usage Metrics is disabled.
2014-04-03 14:14:28.48 Server CLR version v4.0.30319 loaded.
2014-04-03 14:14:28.56 Server Common language runtime (CLR) functionality initialized using CLR version v4.0.30319 from C:\Windows\Microsoft.NET\Framework64\v4.0.30319\.
2014-04-03 14:14:28.62 spid8s SQL Server Audit is starting the audits. This is an informational message. No user action is required.
2014-04-03 14:14:28.63 spid8s SQL Server Audit has started the audits. This is an informational message. No user action is required.
2014-04-03 14:14:28.64 spid8s SQL Trace ID 1 was started by login "sa".
2014-04-03 14:14:28.64 spid8s Server name is 'ARIELUBA-PC'. This is an informational message only. No user action is required.
2014-04-03 14:14:28.65 spid16s Password policy update was successful.
2014-04-03 14:14:28.66 spid16s Error: 17190, Severity: 16, State: 1.
2014-04-03 14:14:28.66 spid16s Initializing the FallBack certificate failed with error code: 1, state: 20, error number: 0.
2014-04-03 14:14:28.66 spid16s Unable to initialize SSL encryption because a valid certificate could not be found, and it is not possible to create a self-signed certificate.
2014-04-03 14:14:28.66 spid16s Error: 17182, Severity: 16, State: 1.
2014-04-03 14:14:28.66 spid16s TDSSNIClient initialization failed with error 0x80092004, status code 0x80. Reason: Unable to initialize SSL support. Cannot find object or property.
2014-04-03 14:14:28.66 spid16s Error: 17182, Severity: 16, State: 1.
2014-04-03 14:14:28.66 spid16s TDSSNIClient initialization failed with error 0x80092004, status code 0x1. Reason: Initialization failed with an infrastructure error. Check for previous errors. Cannot find object or property.
2014-04-03 14:14:28.66 spid16s Error: 17826, Severity: 18, State: 3.
2014-04-03 14:14:28.66 spid16s Could not start the network library because of an internal error in the network library. To determine the cause, review the errors immediately preceding this one in the error log.
2014-04-03 14:14:28.67 spid16s Error: 17120, Severity: 16, State: 1.
2014-04-03 14:14:28.67 spid16s SQL Server could not spawn FRunCommunicationsManager thread. Check the SQL Server error log and the Windows event logs for information about possible related problems.
________________________________________________________________________________________________Is it okay? (see below)
;SQL Server 2014 Configuration File
[OPTIONS]
; Specifies a Setup work flow, like INSTALL, UNINSTALL, or UPGRADE. This is a required parameter.
ACTION="Install"
; Detailed help for command line argument ROLE has not been defined yet.
ROLE="AllFeatures_WithDefaults"
; Use the /ENU parameter to install the English version of SQL Server on your localized Windows operating system.
ENU="True"
; Parameter that controls the user interface behavior. Valid values are Normal for the full UI,AutoAdvance for a simplied UI, and EnableUIOnServerCore for bypassing Server Core setup GUI block.
UIMODE="Normal"
; Setup will not display any user interface.
QUIET="False"
; Setup will display progress only, without any user interaction.
QUIETSIMPLE="False"
; Specify whether SQL Server Setup should discover and include product updates. The valid values are True and False or 1 and 0. By default SQL Server Setup will include updates that are found.
UpdateEnabled="True"
; Specify if errors can be reported to Microsoft to improve future SQL Server releases. Specify 1 or True to enable and 0 or False to disable this feature.
ERRORREPORTING="False"
; If this parameter is provided, then this computer will use Microsoft Update to check for updates.
USEMICROSOFTUPDATE="False"
; Specifies features to install, uninstall, or upgrade. The list of top-level features include SQL, AS, RS, IS, MDS, and Tools. The SQL feature will install the Database Engine, Replication, Full-Text, and Data Quality Services (DQS) server. The Tools feature
will install Management Tools, Books online components, SQL Server Data Tools, and other shared components.
FEATURES=SQLENGINE,REPLICATION,FULLTEXT,DQ,AS,RS,RS_SHP,RS_SHPWFE,DQC,CONN,IS,BC,SDK,BOL,SSMS,ADV_SSMS,DREPLAY_CTLR,DREPLAY_CLT,MDS
; Specify the location where SQL Server Setup will obtain product updates. The valid values are "MU" to search Microsoft Update, a valid folder path, a relative path such as .\MyUpdates or a UNC share. By default SQL Server Setup will search Microsoft Update
or a Windows Update service through the Window Server Update Services.
UpdateSource="MU"
; Displays the command line parameters usage
HELP="False"
; Specifies that the detailed Setup log should be piped to the console.
INDICATEPROGRESS="False"
; Specifies that Setup should install into WOW64. This command line argument is not supported on an IA64 or a 32-bit system.
X86="False"
; Specify the root installation directory for shared components. This directory remains unchanged after shared components are already installed.
INSTALLSHAREDDIR="C:\Program Files\Microsoft SQL Server"
; Specify the root installation directory for the WOW64 shared components. This directory remains unchanged after WOW64 shared components are already installed.
INSTALLSHAREDWOWDIR="C:\Program Files (x86)\Microsoft SQL Server"
; Specify a default or named instance. MSSQLSERVER is the default instance for non-Express editions and SQLExpress for Express editions. This parameter is required when installing the SQL Server Database Engine (SQL), Analysis Services (AS), or Reporting Services
(RS).
INSTANCENAME="MSSQLSERVER"
; Specify that SQL Server feature usage data can be collected and sent to Microsoft. Specify 1 or True to enable and 0 or False to disable this feature.
SQMREPORTING="False"
; Specify the Instance ID for the SQL Server features you have specified. SQL Server directory structure, registry structure, and service names will incorporate the instance ID of the SQL Server instance.
INSTANCEID="MSSQLSERVER"
; The computer name that the client communicates with for the Distributed Replay Controller service.
CLTCTLRNAME="SQLDRC"
; The Windows account(s) used to grant permission to the Distributed Replay Controller service.
CTLRUSERS="ARIELUBA-PC\Arie Luba"
; The account used by the Distributed Replay Controller service.
CTLRSVCACCOUNT="NT Service\SQL Server Distributed Replay Controller"
; The startup type for the Distributed Replay Controller service.
CTLRSTARTUPTYPE="Manual"
; The account used by the Distributed Replay Client service.
CLTSVCACCOUNT="NT Service\SQL Server Distributed Replay Client"
; The startup type for the Distributed Replay Client service.
CLTSTARTUPTYPE="Manual"
; The result directory for the Distributed Replay Client service.
CLTRESULTDIR="C:\Program Files (x86)\Microsoft SQL Server\DReplayClient\ResultDir"
; The working directory for the Distributed Replay Client service.
CLTWORKINGDIR="C:\Program Files (x86)\Microsoft SQL Server\DReplayClient\WorkingDir"
; RSInputSettings_RSInstallMode_Description
RSINSTALLMODE="DefaultNativeMode"
; RSInputSettings_RSInstallMode_Description
RSSHPINSTALLMODE="SharePointFilesOnlyMode"
; Specify the installation directory.
INSTANCEDIR="C:\Program Files\Microsoft SQL Server"
; Agent account name
AGTSVCACCOUNT="NT Service\SQLSERVERAGENT"
; Auto-start service after installation.
AGTSVCSTARTUPTYPE="Manual"
; Startup type for Integration Services.
ISSVCSTARTUPTYPE="Automatic"
; Account for Integration Services: Domain\User or system account.
ISSVCACCOUNT="NT Service\MsDtsServer120"
; The name of the account that the Analysis Services service runs under.
ASSVCACCOUNT="NT Service\MSSQLServerOLAPService"
; Controls the service startup type setting after the service has been created.
ASSVCSTARTUPTYPE="Automatic"
; The collation to be used by Analysis Services.
ASCOLLATION="Hebrew_CI_AS"
; The location for the Analysis Services data files.
ASDATADIR="C:\Program Files\Microsoft SQL Server\MSAS12.MSSQLSERVER\OLAP\Data"
; The location for the Analysis Services log files.
ASLOGDIR="C:\Program Files\Microsoft SQL Server\MSAS12.MSSQLSERVER\OLAP\Log"
; The location for the Analysis Services backup files.
ASBACKUPDIR="C:\Program Files\Microsoft SQL Server\MSAS12.MSSQLSERVER\OLAP\Backup"
; The location for the Analysis Services temporary files.
ASTEMPDIR="C:\Program Files\Microsoft SQL Server\MSAS12.MSSQLSERVER\OLAP\Temp"
; The location for the Analysis Services configuration files.
ASCONFIGDIR="C:\Program Files\Microsoft SQL Server\MSAS12.MSSQLSERVER\OLAP\Config"
; Specifies whether or not the MSOLAP provider is allowed to run in process.
ASPROVIDERMSOLAP="1"
; Specifies the list of administrator accounts that need to be provisioned.
ASSYSADMINACCOUNTS="ARIELUBA-PC\Arie Luba"
; Specifies the server mode of the Analysis Services instance. Valid values are MULTIDIMENSIONAL and TABULAR. The default value is MULTIDIMENSIONAL.
ASSERVERMODE="MULTIDIMENSIONAL"
; CM brick TCP communication port
COMMFABRICPORT="0"
; How matrix will use private networks
COMMFABRICNETWORKLEVEL="0"
; How inter brick communication will be protected
COMMFABRICENCRYPTION="0"
; TCP port used by the CM brick
MATRIXCMBRICKCOMMPORT="0"
; Startup type for the SQL Server service.
SQLSVCSTARTUPTYPE="Automatic"
; Level to enable FILESTREAM feature at (0, 1, 2 or 3).
FILESTREAMLEVEL="0"
; Set to "1" to enable RANU for SQL Server Express.
ENABLERANU="False"
; Specifies a Windows collation or an SQL collation to use for the Database Engine.
SQLCOLLATION="Hebrew_CI_AS"
; Account for SQL Server service: Domain\User or system account.
SQLSVCACCOUNT="NT Service\MSSQLSERVER"
; Windows account(s) to provision as SQL Server system administrators.
SQLSYSADMINACCOUNTS="ARIELUBA-PC\Arie Luba"
; Provision current user as a Database Engine system administrator for %SQL_PRODUCT_SHORT_NAME% Express.
ADDCURRENTUSERASSQLADMIN="True"
; Specify 0 to disable or 1 to enable the TCP/IP protocol.
TCPENABLED="1"
; Specify 0 to disable or 1 to enable the Named Pipes protocol.
NPENABLED="0"
; Startup type for Browser Service.
BROWSERSVCSTARTUPTYPE="Automatic"
; Specifies which account the report server NT service should execute under. When omitted or when the value is empty string, the default built-in account for the current operating system.
; The username part of RSSVCACCOUNT is a maximum of 20 characters long and
; The domain part of RSSVCACCOUNT is a maximum of 254 characters long.
RSSVCACCOUNT="NT Service\ReportServer"
; Specifies how the startup mode of the report server NT service. When
; Manual - Service startup is manual mode (default).
; Automatic - Service startup is automatic mode.
; Disabled - Service is disabled
RSSVCSTARTUPTYPE="Automatic"
; Add description of input argument FTSVCACCOUNT
FTSVCACCOUNT="NT Service\MSSQLFDLauncher" -
Mobile Sync not update the client or remote store after first sync
Subject: OracleLite 9i does not update the client or remote store during synchronization with a Windows CE device
After the first synchronization, neither the client or remote stores are updated on future synchronization when the publication is created with the fast refresh option. If the publication is created with the complete refresh option, the server will update the client, but the client cannot update the server after the first synchronization. That is once the database (.odb) file is downloaded from the server on the first connect, no updates to either the client, or server are performed for a publication created with the fast refresh option, and only the client store is updated when the publication is created with the complete refresh option. These result are obtained whether I use MSync via Microsoft Active Sync, or I use the Embedded VC++ program I wrote to initiate the synchronization from the Windows CE device.
I am 99% sure the JAVA code that I am programmatically creating the publications with, and the Embedded VC++ code for initiating the synchronization from the Windows CE device are correct. Both programs adhere exactly to the example code provided either in the documentation, or in the sample code shipped with OracleLite 9i Release 5.0.1. My conclusion is that there is a problem with Oracles replication programs either on the Windows CE, or Server side, or both. This conclusion on my part is strongly supported by the fact that MSync operating with Microsoft Active Sync behaves exactly the same as my code that initiates the replication from the Windows CE device. Also, by looking through the discussion forum, I gather that others are experiencing similar, if not identical, replication problems.
To support my contention that it is a Oracle problem, I have prepared a simplified version of the Embedded VC++ code to initiate the synchronization for the CE device, and the JAVA code for creating the publication. This code duplicates the problem and is easy to follow. You may download the zip file containing code via the link https://Yggdrasill.cfr.msstate.edu:4443/SyncProblem.htm or the link http://Yggdrasill.cfr.msstate.edu:7778/SyncProblem.htm. This zip contains the Embedded VC++ project files, that will compile and run correctly on a PocketPC with an Arm processor, or the PocketPC x86 emulator when you have the required include files, and libraries in the path. It also includes the JAVA code I used to create the publication. If you extend the VC++ code to run on additional platforms be sure to add the compile flag (directive) /D SQL_NOUNICODEMAP , and the library files olod2040.lib, and ocapi.lib in the library box from Project settings. On my system the paths to the Arm, and x86 libraries are C:\ORALITE501\MOBILE\SDK\WINCE\POCKET_PC\Arm\LIB, and C:\ORALITE501\MOBILE\SDK\WINCE\POCKET_PC\X86EM\LIB, respectively
I am using a NT 4.0 SP6a server with Database 9i Release 2 Enterprise edition, and OracleLite 9i Mobile Server Release 5.0.1. The Windows CE test device is an iPac running Pocket PC, connected to a system running Windows 2000 Professional SP2, and Microsoft Active Sync 3.1.
Please review this problem documentation, and tell me what I am doing wrong, or point me to a location where I can get a patch to fix the problem.
Thanks,
Thomas G.Matney
[email protected]
(662)325-2791Hi,
I'm also facing a similar problem. I'm using Mobile server as stand alone config with Oracle 8i as server database. After the first download, the data updated at the server is not getting downloaded to client(PDA).
How did u overcome this problem? Is there any work around?
I want to do synch using both serial and dial up.
Thanks in advance,
Sri -
An error occurred while attempting to update the database
Hi
the update from 2.82 to 2.9.0 fails for me with following message
An error occurred while attempting to update the database.
the update log ends like this
[Microsoft][ODBC SQL Server Driver][SQL Server]DELETE failed because the
following SET options have incorrect settings: 'QUOTED_IDENTIFIER'. Verify
that SET options are correct for use with indexed views and/or indexes on
computed columns and/or filtered indexes and/or query notifications and/or XML
data type methods and/or spatial index operations.
1> 2> 3> [16:56:20] RunShellCommand: Command: osql exited with code: 1
[16:56:20] RunShellCommand: Exit code indicates failure.
[16:56:20] UpdateDatabase: Failed to run database update script.
hope that anyone can solv this for meIt seems that my problem is with one of ldapservers.
When the periodic update runs.
then there will be error periodic update failed
log file mdm_error looks like this
[00:01:46] Failed running query:
IF NOT EXISTS(SELECT LDAPContainerName FROM LDAPContainers WHERE LDAPContainerName=? AND LDAPServerSAKey = ?)
BEGIN INSERT INTO LDAPContainers(LDAPContainerName, DisplayName, LDAPContainerType, ParentContainerSAKey,
LDAPServerSAKey, LDAPMemberType, AllowHandsOffEnrollment) VALUES (?,?, 2,
(SELECT LDAPContainerSAKey FROM LDAPContainers WHERE LDAPContainerName =? AND LDAPServerSAKey =?) , ?, 1, 1) END
SQLError:
I think this is the reason that the upgrade fails.
How can i solve this? -
Hi,
I using java studio creator 2 update 1. I have two pages. The first page contains a table with hyperlinks in serial_no column. When the user clicks on a hyperlink(serial_no) it redirects to another page which displays the details of the product that can be edited as drop down lists and text areas. I am not able to update the database with the edited values. I have been struggling with this since a week. Please help me. The code in the second page is as follows
public void prerender() {
serialNo = (String)getExternalContext().getRequestParameterMap().get("SerialNo");
try
getSessionBean1().getTblSampleRowSet4().setCommand("select Username, Problem_Type, Priority , Enhancement, Time, Source_req, Assigned_To,substring_index(Comment,'<END>',-1) as 'userComment', Solution, serial_no from tblSample where serial_no = " + serialNo);
stUserName.setText(getSessionBean1().getTblSampleRowSet4().getString("Username"));
ddlProblemType.setSelected(getSessionBean1().getTblSampleRowSet4().getString("Problem_Type"));
String priority = getSessionBean1().getTblSampeRowSet4().getString("Priority");
outputText1.setValue(priority);
ddlPriority.setSelected(getSessionBean1().getTblSampleRowSet4().getString("Priority"));
// ddlp.setSelected(getSessionBean1().getTblSampleRowSet4().getString("Priority"));
ddlEnhancement.setSelected(getSessionBean1().getTblSampleRowSet4().getString("Enhancement"));
ddlTime.setSelected(getSessionBean1().getTblSampleRowSet4().getString("Time"));
ddlSourceReq.setSelected(getSessionBean1().getTblSampleRowSet4().getString("Source_req"));
ddlAssignedTo.setSelected(getSessionBean1().getTblSampleRowSet4().getString("Assigned_To"));
taSolution.setText(getSessionBean1().getTblSampleRowSet4().getString("Solution"));
taUserComment.setText(getSessionBean1().getTblSampleRowSet4().getString("userComment"));
catch(Exception e)
* <p>Callback method that is called after rendering is completed for
* this request, if <code>init()</code> was called (regardless of whether
* or not this was the page that was actually rendered). Customize this
* method to release resources acquired in the <code>init()</code>,
* <code>preprocess()</code>, or <code>prerender()</code> methods (or
* acquired during execution of an event handler).</p>
public void destroy() {
tblSampleDataProvider4.close();
// tblSampleDataProvider.close();
public String btnSave_action() {
// TODO: Process the button click action. Return value is a navigation
// case name where null will return to the same page.
try {
tblSampleDataProvider4.setValue("tblSample.Problem_Type", ddlProblemType.getSelected());
tblSampleDataProvider4.setValue("tblSample.Priority", ddlPriority.getSelected());
tblSampleDataProvider4.setValue("tblSample.Enhancement", ddlEnhancement.getSelected());
tblSampleDataProvider4.setValue("tblSample.Time", ddlTime.getSelected());
tblSampleDataProvider4.setValue("tblSample.Source_req", ddlSourceReq.getSelected());
tblSampleDataProvider4.setValue("tblSample.Assigned_To",ddlAssignedTo.getSelected());
tblSampleDataProvider4.setValue("tblSample.Comment",taUserComment.getText());
tblSampleDataProvider4.setValue("tblSample.Solution", taSolution.getText());
tblSampleDataProvider4.commitChanges();
tblSampleDataProvider4.refresh();
} catch (Exception ex) {
outputText1.setValue("error");
return null;
If i use
getSessionBean1().getTblSampleRowSet4().execute(); after setting the command, it doesnt work. But if i comment it out, data corresponding to the serial no passes gets displayed. But I am not able to update the table with edited data.
SJust a quick comment--
You won't need rowset.getString(..) and dataprovider.setValue(...) if you bind the components and it could make it much simpler.
There's a step by step tutorial on how to achieve this:
http://developers.sun.com/prodtech/javatools/jscreator/learning/tutorials/2/inserts_updates_deletes.html
If you can zip up the Project and email to me at CreatorFeedback AT sun DOT com, i can take a quick look at it. I would need your schema/SQL script as well.
HTH,
Sakthi -
ICal does not update the organizer when moving items between calendars
I have two calendars: Exchange 2007 and CalDAV.
If I organize a meeting in my Exchange calendar, and later on notice that it is in the wrong calendar, move it to my CalDAV calendar, iCal forgets to update the organizer correctly.
The organizer after moving is "invalid:nomail". The consequence of this is that I can no longer edit that item as I'm "not the organizer". Moving the item back to my Exchange calendar is impossible for the very same reason.
All I can do after moving is delete and start over. Anyone experiencing the same problem?Also, you can't move the event to a different calendar if you're not the organizer.
-
Mpc/gmpc will not update mpd database
As per thread title. I've installed mpc following the single user setup instructions. All the clients I've tried seem to connect to it normally, but I can't get them to update the database.
mpc output:
[jewdozer@OKW ~]$ mpc update / --wait
Updating DB (#4) ...
volume:100% repeat: off random: off single: off consume: off
gmpc appears to update normally, but the files don't show up in the database. ncmpcpp puts the last update at hours ago, presumably when mpd was first started.
This is my /etc/mpd.conf file:
[jewdozer@OKW ~]$ cat /etc/mpd.conf
music_directory "/home/jewdozer/Musik"
playlist_directory "/var/lib/mpd/playlists"
db_file "/var/lib/mpd/db"
log_file "/var/log/mpd/mpd.log"
error_file "/var/lib/mpd/mpd.error"
pid_file "/var/run/mpd/mpd.pid"
state_file "/var/lib/mpd/mpdstate"
user "mpd"
The files never show up in the db file, and the log and error files are empty.
Ideas?
Last edited by jewdozer (2010-01-22 14:01:26)Did you try to change the permissions of the directory or to put the files in your "home"?, for example my config file :
# An example configuration file for MPD
# See the mpd.conf man page for a more detailed description of each parameter.
######################## REQUIRED PATHS ########################
# You can put symlinks in here, if you like. Make sure that
# the user that mpd runs as (see the 'user' config parameter)
# can read the files in this directory.
music_directory "/home/mich/Musique"
playlist_directory "/home/mich/.mpd/playlists"
db_file "/home/mich/.mpd/mpd.db"
log_file "/home/mich/.mpd/mpd.log"
error_file "/home/mich/.mpd/mpd.error"
#sticker_file "/home/mich/.mpd/mpd.db"
######################## OPTIONAL PATHS ########################
# If you wish to use mpd --kill to stop MPD, then you must
# specify a file here in which to store MPD's process ID.
pid_file "/home/mich/.mpd/mpd.pid"
# If specified, MPD will save its current state (playlist,
# current song, playing/paused, etc.) at exit. This will be
# used to restore the session the next time it is run.
state_file "/home/mich/.mpd/mpd.state"
######################## DAEMON OPTIONS ########################
# If started as root, MPD will drop root privileges and run as
# this user instead. Otherwise, MPD will run as the user it was
# started by. If left unspecified, MPD will not drop root
# privileges at all (not recommended).
user "mich"
# The address and port to listen on.
#bind_to_address "archlinux"
port "6600"
# If the address is a path, then a UNIX domain socket will be
# created instead of listening on a TCP port.
#bind_to_address "/var/run/mpd/sock"
# Controls the amount of information that is logged. Can be
# "default", "secure", or "verbose".
#log_level "default"
########################### ZEROCONF ###########################
# If yes, service information will be published with Zeroconf.
#zeroconf_enabled "yes"
# The service name to publish. This name should be unique on
# your local network.
#zeroconf_name "Music Player"
########################## PERMISSIONS #########################
# MPD can require that users specify a password before using it.
# You may specify one ore more here, along with what users who
# log in with that password are allowed to do.
#password "password@read,add,control,admin"
# Specifies what permissions a user who has not logged in with a
# password has. By default, all users have full access to MPD
# if no password is specified above, or no access if one or
# more passwords are specified.
default_permissions "read,add,control,admin"
########################## AUDIO OUTPUT ########################
# MPD supports many audio output types, as well as playing
# through multiple audio outputs at the same time. You can
# specify one or more here. If you don't specify any, MPD will
# automatically scan for a usable audio output.
# See <http://mpd.wikia.com/wiki/Configuration#Audio_Outputs>
# for examples of other audio outputs.
# An example of an ALSA output:
#audio_output {
# type "alsa"
# name "My ALSA Device"
# device "hw:0,0" # optional
# format "44100:16:2" # optional
# use_mmap "yes"
# PulseAudio
audio_output {
type "pulse"
name "My MPD PulseAudio Output"
#server "localhost" # optional
#sink "alsa_output" # optional
# An example of an OSS output:
#audio_output {
# type "oss"
# name "My OSS Device"
# device "/dev/dsp" # optional
# format "44100:16:2" # optional
#audio_output {
# type "jack"
# name "my jack device"
# format "44100:16:2"
# An example of a shout output (for streaming to Icecast):
#audio_output {
# type "shout"
# encoding "ogg" # optional
# name "My Shout Stream"
# host "localhost"
# port "8000"
# mount "/mpd.ogg"
# password "hackme"
# quality "5.0"
# bitrate "128"
# format "44100:16:1"
# user "source" # optional
# description "My Stream Description" # optional
# genre "jazz" # optional
# public "no" # optional
# timeout "2" # optional
# An example of a null output (for no audio output):
#audio_output {
# type "null"
# name "My Null Output"
# Force all decoded audio to be converted to this format before
# being passed to the audio outputs.
#audio_output_format "44100:16:2"
# If MPD has been compiled with libsamplerate support, this
# specifies the sample rate converter to use. Possible
# values can be found in the mpd.conf man page or the
# libsamplerate documentation.
#samplerate_converter "Fastest Sinc Interpolator"
samplerate_converter "Best Sinc Interpolator"
############################# MIXER ############################
# MPD needs to know what mixer settings to change when you
# adjust the volume. If you don't specify one here, MPD will
# pick one based on which ones it was compiled with support for.
# An example for controlling an ALSA mixer:
#mixer_type "alsa"
#mixer_device "default"
#mixer_control "PCM"
# An example for controlling an OSS mixer:
#mixer_type "oss"
#mixer_device "/dev/mixer"
#mixer_control "PCM"
# If you want MPD to adjust the volume of audio sent to the
# audio outputs, you can tell it to use the software mixer:
mixer_type "software"
######################### NORMALIZATION ########################
# Specifies the type of ReplayGain to use. Can be "album" or
# "track". ReplayGain will not be used if not specified. See
# <http://www.replaygain.org> for more details.
#replaygain "album"
# Sets the pre-amp used for files that have ReplayGain tags.
#replaygain_preamp "0"
# Enable on the fly volume normalization. This will cause the
# volume of all songs played to be adjusted so that they sound
# as though they are of equal loudness.
#volume_normalization "no"
########################### BUFFERING ##########################
# The size of the buffer containing decoded audio. You probably
# shouldn't change this.
#audio_buffer_size "2048"
# How much of the buffer to fill before beginning to play.
# Increase this if you hear skipping when changing songs.
#buffer_before_play "10%"
# Similar options for the HTTP stream buffer. If you hear
# skipping while playing HTTP streams, you may wish to increase
# these.
#http_buffer_size "128"
#http_prebuffer_size "25%"
########################### HTTP PROXY #########################
# Specifies the HTTP proxy to use for playing HTTP streams.
#http_proxy_host "proxy.isp.com"
#http_proxy_port "8080"
#http_proxy_user "user"
#http_proxy_password "password"
############################# LIMITS ###########################
# These are various limits to prevent MPD from using too many
# resources. You should only change them if they start
# restricting your usage of MPD.
#connection_timeout "60"
#max_connections "5"
#max_playlist_length "16384"
#max_command_list_size "2048"
#max_output_buffer_size "8192"
###################### CHARACTER ENCODINGS #####################
# If file or directory names do not display correctly, then you
# may need to change this. In most cases it should be either
# "ISO-8859-1" or "UTF-8". You must recreate your database
# after changing this (use mpd --create-db).
filesystem_charset "UTF-8"
# The encoding that ID3v1 tags should be converted from.
id3v1_encoding "UTF-8"
######################### OTHER OPTIONS ########################
# Try disabling this if you have MP3s which appear to end
# abruptly. If this solves the problem, it is highly
# recommended that you fix your MP3s with vbrfix (available from
# <http://www.willwap.co.uk/Programs/vbrfix.php>), at which
# point you can re-enable support for gapless MP3 playback.
#gapless_mp3_playback "yes"
# Enable this if you wish to use your MPD created playlists in
# other music players.
#save_absolute_paths_in_playlists "no"
# A list of tag types that MPD will scan for and make available
# to clients.
#metadata_to_use "artist,album,title,track,name,genre,date,composer,performer,disc"
Last edited by Drexya (2010-01-23 09:09:58) -
Received this error (The workflow could not update the item, possibly because one or more columns for the item require a different type of information.) recently on a workflow that was
working fine and no changes were made to the workflow.
I have tried a few suggestions, i.e. adding a pause before any ‘Update’ action (which didn’t help because the workflow past this action without incident); checked the data type being written
to the fields (the correct data types are being written); and we even checked the list schema to ensure the list names and the internal names are aligned (they
are), but we still cannot figure out why the workflow is still throwing this error.
We located the area within the workflow step where it is failing and we inserted a logging action to determine if the workflow would execute the logging action but it did not, but wrote the same error message.
The workflow is a Reusable Approval workflow designed in SharePoint Designer 2010 and attached to a content type.
The form associated with the list was modified in InfoPath 2010.
Approvers would provide their approval in the InfoPath form which is then read by the workflow.
Side note - items created after the workflow throws this Unknown Error some seem to be working fine.
We have deleted the item in question and re-added it with no effect.
Based on what we were able to determine there don’t seem to be any consistency with how this issue is behaving.
Any suggestions on how to further investigate this issue in order to find the root cause would be greatly appreciated?
CheersHi,
I understand that the reusable workflow doesn’t work properly now. Have you tried to remove the Update list item action to see whether the workflow can run without issue?
If the workflow runs perfectly when the Update list item action is removed, then you need to check whether there are errors in the update action. Check whether the values have been changed.
Thanks,
Entan Ming
Entan Ming
TechNet Community Support -
Not Updating the Values in the JComboBox and JTable
Hi Friends
In my program i hava Two JComboBox and One JTable. I Update the ComboBox with different field on A Table. and then Display a list of record in the JTable.
It is Displaying the Values in the Begining But when i try to Select the Next Item in the ComboBox it is not Updating the Records Eeither to JComboBox or JTable.
MY CODE is this
import java.awt.*;
import java.awt.event.*;
import javax.swing.*;
import javax.swing.DefaultComboBoxModel.*;
import javax.swing.table.*;
import java.sql.*;
import java.util.*;
public class SearchBook extends JDialog implements ActionListener
private JComboBox comboCategory,comboAuthor;
private JSplitPane splitpane;
private JTable table;
private JToolBar toolBar;
private JButton btnclose, btncancel;
private JPanel panel1,panel2,panel3,panel4;
private JLabel lblCategory,lblAuthor;
private Container c;
//DefaultTableModel model;
Statement st;
ResultSet rs;
Vector v = new Vector();
public SearchBook (Connection con)
// Property for JDialog
setTitle("Search Books");
setLocation(40,110);
setModal(true);
setSize(750,450);
// Creating ToolBar Button
btnclose = new JButton(new ImageIcon("Images/export.gif"));
btnclose.addActionListener(this);
// Creating Tool Bar
toolBar = new JToolBar();
toolBar.add(btnclose);
try
st=con.createStatement();
rs =st.executeQuery("SELECT BCat from Books Group By Books.BCat");
while(rs.next())
v.add(rs.getString(1));
catch(SQLException ex)
System.out.println("Error");
panel1= new JPanel();
panel1.setLayout(new GridBagLayout());
GridBagConstraints c = new GridBagConstraints();
c.fill = GridBagConstraints.HORIZONTAL;
lblCategory = new JLabel("Category:");
lblCategory.setHorizontalAlignment (JTextField.CENTER);
c.gridx=2;
c.gridy=2;
panel1.add(lblCategory,c);
comboCategory = new JComboBox(v);
comboCategory.addActionListener(this);
c.ipadx=20;
c.gridx=3;
c.gridwidth=1;
c.gridy=2;
panel1.add(comboCategory,c);
lblAuthor = new JLabel("Author/Publisher:");
c.gridwidth=2;
c.gridx=1;
c.gridy=4;
panel1.add(lblAuthor,c);
lblAuthor.setHorizontalAlignment (JTextField.LEFT);
comboAuthor = new JComboBox();
comboAuthor.addActionListener(this);
c.insets= new Insets(20,0,0,0);
c.ipadx=20;
c.gridx=3;
c.gridy=4;
panel1.add(comboAuthor,c);
comboAuthor.setBounds (125, 165, 175, 25);
table = new JTable();
JScrollPane scrollpane = new JScrollPane(table);
//panel2 = new JPanel();
//panel2.add(scrollpane);
splitpane = new JSplitPane(JSplitPane.HORIZONTAL_SPLIT,panel1,scrollpane);
splitpane.setDividerSize(15);
splitpane.setDividerLocation(190);
getContentPane().add(toolBar,BorderLayout.NORTH);
getContentPane().add(splitpane);
public void actionPerformed(ActionEvent ae)
Object obj= ae.getSource();
if(obj==comboCategory)
String selecteditem = (String)comboCategory.getSelectedItem();
displayAuthor(selecteditem);
System.out.println("Selected Item"+selecteditem);
else if(obj==btnclose)
setDefaultCloseOperation(JDialog.DISPOSE_ON_CLOSE);
else if(obj==comboAuthor)
String selecteditem1 = (String)comboAuthor.getSelectedItem();
displayavailablity(selecteditem1);
//System.out.println("Selected Item"+selecteditem1);
System.out.println("Selected Author"+selecteditem1);
private void displayAuthor(String selecteditem)
try
{ Vector data = new Vector();
rs= st.executeQuery("SELECT BAuthorandPublisher FROM Books where BCat='" + selecteditem + "' Group By Books.BAuthorandPublisher");
System.out.println("Executing");
while(rs.next())
data.add(rs.getString(1));
//((DefaultComboBoxModel)comboAuthor.getModel()).setVectorData(data);
comboAuthor.setModel(new DefaultComboBoxModel(data));
catch(SQLException ex)
System.out.println("ERROR");
private void displayavailablity(String selecteditem1)
try
Vector columnNames = new Vector();
Vector data1 = new Vector();
rs= st.executeQuery("SELECT * FROM Books where BAuthorandPublisher='" + selecteditem1 +"'");
ResultSetMetaData md= rs.getMetaData();
int columns =md.getColumnCount();
String booktblheading[]={"Book ID","Book NAME","BOOK AUTHOR/PUBLISHER","REFRENCE","CATEGORY"};
for(int i=1; i<= booktblheading.length;i++)
columnNames.addElement(booktblheading[i-1]);
while(rs.next())
Vector row = new Vector(columns);
for(int i=1;i<=columns;i++)
row.addElement(rs.getObject(i));
data1.addElement(row);
//System.out.println("data is:"+data);
((DefaultTableModel)table.getModel()).setDataVector(data1,columnNames);
//DefaultTableModel model = new DefaultTableModel(data1,columnNames);
//table.setModel(model);
rs.close();
st.close();
catch(SQLException ex)
}Please check my code and give me some Better Solution
Thank youYou already have a posting on this topic:
http://forum.java.sun.com/thread.jspa?threadID=5143235 -
Regardig error while updating the database table
hi experts,
i m trying to update the database table from the values containig in my internal table ,,,but the system is giving this error plz help me::::
The type of the database table and work area (or internal table)
"ITAB_UPDATE" are not Unicode convertible. Unicode convertible.
my internal table name itab_update and the database table name yitab.i m using this statement::
modify yitab from itab_update.Hi
1. You have to Declare the Itab with the same structure as DB table.
2. Use the statement
Modify <DBtable> from TABLE <itab>.
or
Update <DBtable> from TABLE <itab>.
Hope this will solve.
Reward .....if so.
Regards.
Maybe you are looking for
-
I need to understand how to get my master-detail html dataset to refresh.
My SPRY master-detail dataset does not refresh. Following is a description of what I have and what I am trying to do. The data source is an embedded table. Each row of the table has two fields: a thumbnail (for the master section) and a full size i
-
Subcontracting with external service / non-stock material
Hi, I have a scenarion in subcontracting when i provided the components / raw materials to the in-house workshop (workshop treated as an internal vendor) and further more our workshop required some external services / non-stok material from third par
-
I ditched my old DLink router to get a shiny Linksys WRT54GX4, and got nothing but disconnects ever since. From reading these forums it seem to be a real issue with a lot of peoplewith this series of routers. Do I need to return this while I still ha
-
Hi all, I need to set the tax cod as a field required (mwskz) in the PO. Would anyone can help me how to do? PS if possible step by step rsrs Thanks
-
Dear all I have two tables in my database like the following Table A Code Narr 1 Code1 2 Code2 3 Code3 4 Code4 Table B Code Data 2 Data1 3 Data2 By joining I want to display the matching records. But I want to display all the Codes from Table A. How