Headers when create a Database table

Hi,
I think this question would be simple.
I'm working with a mySQL Database. I proceed as follow:
1) I open the connexion (OK),
2) Insert data on table -table1- (OK),
3) Execute a query (OK?)
4) Create a new table (table2) and Insert data from query.
In step 3, when I visualize all data (fetch all) in table, the headers belong to table1, but data are correct.
Also, in step 4, no data has been inserted in new table (in fact, the new table has not been created). This is the error:
"Error 1 occurred at DB Tools Create Table If Not Exist.vi->DB Tools Insert Data.vi->00_Volcado a la BD.vi
Possible reason(s):
Argument error; the number of columns does not equal the number of parameters."
Any idea?
Thank you
Attachments:
create new table.JPG ‏113 KB

Thanks for answering chad_vi,
Finally I decided to create the table from mysql. The next step was to select the data to insert (via query).
I ask myself the following:
The recordeset reference of subvi 'DB tool execute query ' maintains the structure of the table read (in this case table 1) but only shows me the desired values in the query? If so would mean that do not match the number of columns.
Attachments:
solution.JPG ‏27 KB

Similar Messages

  • How to create a database table at runtime

    Hai all,
    i have a table control having the field names as rows, when i select the rows (not all) i want to create a database table( not internal table ) in the background and for that table table maintainence generator also (in abap don;t tell in OOPS Concepts ).
    please help on the above issue it's very urgent.
    Regards
    Lucky

    You cn use the <b>FM DD_CREATE_TABLE</b> to achieve the same.
    Here it is with example code
    FM DD_CREATE_TABLE
    Or using Native SQL,
    When execute native SQL....
    Regards
    Kathirvel

  • SSMS crash when creating new database diagram

    For several years I have been unable to create database diagrams from within SSMS.  I have tried every combination of VS2005, VS2008, VS2012 and VS2013 with every combination of SQL2005, SQL2008, SQL2012 and SQL2014.
    I have installed, uninstalled, and repaired many dozens of times.  I am currently using VS2013 ultimate with SQL2014 express.
    I have tried every related 'workaround' that I can find on the internet.  Still the problem persists.
    Any help would be deeply appreciated.
    Here are the relevant details with file versions:
    In SSMS, I right-click on a database and choose New Database Diagram.  A Blank diagram window appears with the SSMS error dialog:
    ===================================
    Attempted to read or write protected memory. This is often an indication that other memory is corrupt. (Microsoft.VisualStudio.OLE.Interop)
    Program Location:
       at Microsoft.VisualStudio.OLE.Interop.IOleCommandTarget.QueryStatus(Guid& pguidCmdGroup, UInt32 cCmds, OLECMD[] prgCmds, IntPtr pCmdText)
       at Microsoft.VisualStudio.Platform.WindowManagement.DocumentObjectSite.QueryStatus(Guid& pguidCmdGroup, UInt32 cCmds, OLECMD[] prgCmds, IntPtr pCmdText)
       at Microsoft.VisualStudio.Platform.WindowManagement.WindowFrame.QueryStatus(Guid& pguidCmdGroup, UInt32 cCmds, OLECMD[] prgCmds, IntPtr pCmdText)
       at Microsoft.Internal.VisualStudio.Shell.Interop.IVsTrackSelectionExPrivate.Register()
       at Microsoft.VisualStudio.Platform.WindowManagement.WindowFrame.ConnectSelectionContext()
       at Microsoft.VisualStudio.Platform.WindowManagement.WindowFrame.Activate()
       at Microsoft.VisualStudio.Platform.WindowManagement.WindowManagerService.viewManager_ActiveViewChanged(Object sender, ActiveViewChangedEventArgs e)
       at System.EventHandler`1.Invoke(Object sender, TEventArgs e)
       at Microsoft.VisualStudio.PlatformUI.ExtensionMethods.RaiseEvent[TEventArgs](EventHandler`1 eventHandler, Object source, TEventArgs args)
       at Microsoft.VisualStudio.PlatformUI.Shell.ViewManager.SetActiveView(View view, ActivationType type)
       at Microsoft.VisualStudio.Platform.WindowManagement.WindowFrame.ShowInternal(ShowFlags showFlags)
       at Microsoft.VisualStudio.Platform.WindowManagement.WindowFrame.<Show>b__26()
       at Microsoft.VisualStudio.ErrorHandler.CallWithCOMConvention(Func`1 method)
       at Microsoft.VisualStudio.Platform.WindowManagement.WindowFrame.Show()
       at Microsoft.VisualStudio.Platform.WindowManagement.WindowFrame.MarshalingWindowFrame.<Microsoft.VisualStudio.Shell.Interop.IVsWindowFrame.Show>b__7a()
       at Microsoft.VisualStudio.Shell.ThreadHelper.Invoke[TResult](Func`1 method)
       at Microsoft.VisualStudio.Platform.WindowManagement.WindowFrame.MarshalingWindowFrame.Microsoft.VisualStudio.Shell.Interop.IVsWindowFrame.Show()
       at Microsoft.SqlServer.Management.UI.VSIntegration.Editors.VirtualProject.CreateDesigner(Urn origUrn, DocumentType editorType, DocumentOptions aeOptions, IManagedConnection con, String fileName)
       at Microsoft.SqlServer.Management.UI.VSIntegration.Editors.VirtualProject.Microsoft.SqlServer.Management.UI.VSIntegration.Editors.ISqlVirtualProject.CreateDesigner(Urn origUrn, DocumentType editorType, DocumentOptions aeOptions, IManagedConnection
    con, String fileName)
       at Microsoft.SqlServer.Management.UI.VSIntegration.Editors.ISqlVirtualProject.CreateDesigner(Urn origUrn, DocumentType editorType, DocumentOptions aeOptions, IManagedConnection con, String fileName)
       at Microsoft.SqlServer.Management.UI.VSIntegration.Editors.VsDocumentMenuItem.CreateDesignerWindow(IManagedConnection mc, DocumentOptions options)
       at Microsoft.SqlServer.Management.UI.VSIntegration.Editors.VsDocumentMenuItem.InvokeDesigner(IManagedConnection connection)
       at Microsoft.SqlServer.Management.UI.VSIntegration.Editors.VsDocumentMenuItem.Invoke()
       at Microsoft.SqlServer.Management.UI.VSIntegration.ObjectExplorer.ToolsMenuItemBase.MenuInvokedHandler(Object sender, EventArgs args)
    Version info taken from Sql Server  Management Studio/Help/About dialog:
    Microsoft SQL Server Management Studio      12.0.2000.8
    Microsoft Analysis Services Client Tools    12.0.2000.8
    Microsoft Data Access Components (MDAC)     6.1.7601.17514
    Microsoft MSXML                             3.0 4.0 5.0 6.0
    Microsoft Internet Explorer                 9.11.9600.17358
    Microsoft .NET Framework                    4.0.30319.18444
    Operating System                            6.1.7601
    DLL versions
    c:\Program Files(x86)\Common Files\microsoft shared\Visual Database Tools
    dsref80.dll  version 12.0.21005.1
    c:\Program Files(x86)\Common Files\microsoft shared\MSDesigners8
    msdds.dll    12.0.21005.1
    msddsf.dll   12.0.21005.1
    msddslm.dll  12.0.21005.1
    msdds.mp.dll 12.0.21005.1
    msddsp.dll   12.0.21005.1
    c:\Program Files(x86)\Common Files\microsoft shared\MSDesigners8\Resources\1033
    msddsui.dll 12.0.21005.1

    Hello,
    There is a Connect item related to this issue. This is the link of that Connect item:
    https://connect.microsoft.com/SQLServer/feedback/details/730985/smss-crashes-when-creating-new-database-diagram
    Try the workarounds posted there (Workarounds section).
    Hope this helps.
    Regards,
    Alberto Morillo
    SQLCoffee.com

  • Issue creating a Database table with a decimal key field

    Hi guys!
    Can you try this?
    - Create a Database Table ZTEST via SE11 with just the client field and a decimal field (which has to be a key field)
    - Create a corresponding text table for ZTEST with SPRAS, and a TEXT field
    - Create the dialog maintance view and enter some random data through SM30 (5 or 6 rows)
    Then go to SE11, display table ZTEST and click contents to show the data you just entered.
    Is there anything strange? In my case there is, actually: Not all text fields are shown, nevertheless if i try to display the data through SM30 the data is shown correctly....
    I've tried this in several releases and is always the same.
    Do you know why this is?
    Thanks in advance.

    Thanks for the answer.
    Unfortunately, this is not the case, the tables are correctly linked.
    Please look at the following snapshot, the first one, corresponds to the SE11 of the original table, the second one is the SE11 of the text table, and finally the third one is the SM30 of the original table.
    [Snapshot|http://img100.imageshack.us/img100/5071/testkl.jpg]

  • Request time out when creating content database

    Hello,
    my problem is, that i cannot create a SharePoint content database via the central administration.
    My Setup is the following:
    SharePoint Server 2013 Enterprise Farm
    1x Applikation Server/WFE (Windows Server 2012 SP 1)
    1x Database Server MSSQL Server 2012 (Windows Server 2012 SP 1)
    1x TFS 2013 (Windows Server 2012 SP 1)
    all of them are hosted in the same Hyper-V Environment. It is not the fasted Hyper-V Environment existing on planet earth.
    The weirdest part of the problem is, i am able to create a content database via powershell.
    I am running in some kind of time out issue related to the IIS and CA of that Applikation Server.
    Here is the ULS Log from the failling content database creation via CA
    12.18.2014 10:26:09.47 w3wp.exe (0x2304)
    0x1B40 SharePoint Foundation
    Monitoring b4ly
    High Leaving Monitored Scope (PostAuthenticateRequestHandler). Execution Time=8,5997
    4deed69c-2f53-a086-14bb-cbf40b020025
    12.18.2014 10:26:09.66 w3wp.exe (0x2304)
    0x1B40 SharePoint Foundation
    General g3qj
    High [Forced due to logging gap, cached @ 12/18/2014 10:26:09.50, Original Level: Verbose] url is in site
    4deed69c-2f53-a086-14bb-cbf40b020025
    12.18.2014 10:26:09.66 w3wp.exe (0x2304)
    0x1B40 SharePoint Foundation
    Asp Runtime aj1kp
    High [Forced due to logging gap, Original Level: Verbose] SPRequestModule.PreSendRequestHeaders
    4deed69c-2f53-a086-14bb-cbf40b020025
    12.18.2014 10:26:09.73 w3wp.exe (0x2304)
    0x1B40 SharePoint Foundation
    Database ahjqp
    High [Forced due to logging gap, cached @ 12/18/2014 10:26:09.70, Original Level: Verbose] SQL connection time: 14.765 for Data Source=SQLSERVER\DATABASE;Initial Catalog=master;Integrated Security=True;Pooling=False
    4deed69c-2f53-a086-14bb-cbf40b020025
    12.18.2014 10:26:09.73 w3wp.exe (0x2304)
    0x1B40 SharePoint Foundation
    Topology 8xqz
    High [Forced due to logging gap, Original Level: Medium] Updating SPPersistedObject {0}. Version: {1} Ensure: {2}, HashCode: {3}, Id: {4}, Stack: {5}
    4deed69c-2f53-a086-14bb-cbf40b020025
    12.18.2014 10:26:09.77 w3wp.exe (0x2304)
    0x1B40 SharePoint Foundation
    Upgrade aj2jl
    High 12/18/2014 10:26:09.77 w3wp (0x2304) 0x1B40 SharePoint Foundation Upgrade ServerSequence aj2jl DEBUG Search ServerSequence returns TargetBuildVersion '15.0.4675.1000' 4deed69c-2f53-a086-14bb-cbf40b020025
    4deed69c-2f53-a086-14bb-cbf40b020025
    12.18.2014 10:26:09.77 w3wp.exe (0x2304)
    0x1B40 SharePoint Foundation
    Upgrade aj2jk
    High 12/18/2014 10:26:09.77 w3wp (0x2304) 0x1B40 SharePoint Foundation Upgrade ServerSequence aj2jk DEBUG Setting Search ServerSequence version (guid '53d65723-a256-48d7-a477-1d3466089eef') to BuildVersion '15.0.4675.1000'
    4deed69c-2f53-a086-14bb-cbf40b020025 4deed69c-2f53-a086-14bb-cbf40b020025
    12.18.2014 10:26:09.77 w3wp.exe (0x2304)
    0x1B40 SharePoint Foundation
    Upgrade aj2jl
    High 12/18/2014 10:26:09.77 w3wp (0x2304) 0x1B40 SharePoint Foundation Upgrade ServerSequence aj2jl DEBUG Search ServerSequence returns TargetBuildVersion '15.0.4675.1000' 4deed69c-2f53-a086-14bb-cbf40b020025
    4deed69c-2f53-a086-14bb-cbf40b020025
    12.18.2014 10:26:09.83 w3wp.exe (0x2304)
    0x1B40 SharePoint Foundation
    Database 8acb
    High [Forced due to logging gap, cached @ 12/18/2014 10:26:09.81, Original Level: VerboseEx] Reverting to process identity
    4deed69c-2f53-a086-14bb-cbf40b020025
    12.18.2014 10:26:09.83 w3wp.exe (0x2304)
    0x1B40 SharePoint Foundation
    Database ahjqp
    High [Forced due to logging gap, Original Level: Verbose] SQL connection time: 0.2565 for Data Source=SQLSERVER\DATABASE;Initial Catalog=SharePoint_2013_Prod_Config;Integrated Security=True;Enlist=False;Pooling=True;Min
    Pool Size=0;Max Pool Size=100;Connect Timeout=400
    4deed69c-2f53-a086-14bb-cbf40b020025
    12.18.2014 10:26:12.16 w3wp.exe (0x2304)
    0x1B40 SharePoint Foundation
    Database ahjqp
    High [Forced due to logging gap, cached @ 12/18/2014 10:26:09.86, Original Level: Verbose] SQL connection time: 0.1719 for Data Source=SQLSERVER\DATABASE;Initial Catalog=SharePoint_2013_Prod_Config;Integrated Security=True;Enlist=False;Pooling=True;Min
    Pool Size=0;Max Pool Size=100;Connect Timeout=400
    4deed69c-2f53-a086-14bb-cbf40b020025
    12.18.2014 10:26:12.16 w3wp.exe (0x2304)
    0x1B40 SharePoint Foundation
    Database 8acb
    High [Forced due to logging gap, Original Level: VerboseEx] Reverting to process identity
    4deed69c-2f53-a086-14bb-cbf40b020025
    12.18.2014 10:26:12.19 w3wp.exe (0x2304)
    0x1B40 SharePoint Foundation
    Topology 84y4
    High Granting VIEW SERVER STATE permission for S-1-5-21-3747686279-3738247048-1854932723-1131.
    4deed69c-2f53-a086-14bb-cbf40b020025
    12.18.2014 10:26:12.23 w3wp.exe (0x2304)
    0x1B40 SharePoint Foundation
    Topology 84y5
    High VIEW SERVER STATE permission updated successfully.
    4deed69c-2f53-a086-14bb-cbf40b020025
    12.18.2014 10:26:12.23 w3wp.exe (0x2304)
    0x1B40 SharePoint Foundation
    Topology 84y4
    High Granting CONTROL SERVER permission for S-1-5-21-3747686279-3738247048-1854932723-1131.
    4deed69c-2f53-a086-14bb-cbf40b020025
    12.18.2014 10:26:12.25 w3wp.exe (0x2304)
    0x1B40 SharePoint Foundation
    Topology 84y5
    High CONTROL SERVER permission updated successfully.
    4deed69c-2f53-a086-14bb-cbf40b020025
    12.18.2014 10:26:12.33 w3wp.exe (0x2304)
    0x1B40 SharePoint Foundation
    Database 8acb
    High [Forced due to logging gap, cached @ 12/18/2014 10:26:12.30, Original Level: VerboseEx] Reverting to process identity
    4deed69c-2f53-a086-14bb-cbf40b020025
    12.18.2014 10:26:12.33 w3wp.exe (0x2304)
    0x1B40 SharePoint Foundation
    Database ahjqp
    High [Forced due to logging gap, Original Level: Verbose] SQL connection time: 16.4685 for Data Source=SQLSERVER\DATABASE;Initial Catalog=master;Integrated Security=True;Enlist=False;Pooling=False;Min Pool Size=0;Max
    Pool Size=100;Connect Timeout=400 4deed69c-2f53-a086-14bb-cbf40b020025
    12.18.2014 10:26:12.39 w3wp.exe (0x2304)
    0x1B40 SharePoint Foundation
    Database 8acb
    High [Forced due to logging gap, cached @ 12/18/2014 10:26:12.38, Original Level: VerboseEx] Reverting to process identity
    4deed69c-2f53-a086-14bb-cbf40b020025
    12.18.2014 10:26:12.39 w3wp.exe (0x2304)
    0x1B40 SharePoint Foundation
    Database ahjqp
    High [Forced due to logging gap, Original Level: Verbose] SQL connection time: 11.6743 for Data Source=SQLSERVER\DATABASE;Initial Catalog=master;Integrated Security=True;Enlist=False;Pooling=False;Min Pool Size=0;Max
    Pool Size=100;Connect Timeout=400 4deed69c-2f53-a086-14bb-cbf40b020025
    12.18.2014 10:26:12.42 w3wp.exe (0x2304)
    0x1B40 SharePoint Foundation
    Database 7t6o
    High The WSS_Content_uitest database does not exist.  It will now be created.
    4deed69c-2f53-a086-14bb-cbf40b020025
    12.18.2014 10:26:15.11 w3wp.exe (0x2304)
    0x1B40 SharePoint Foundation
    Database ahjqp
    High [Forced due to logging gap, cached @ 12/18/2014 10:26:12.44, Original Level: Verbose] SQL connection time: 9.9785 for Data Source=SQLSERVER\DATABASE;Initial Catalog=master;Integrated Security=True;Enlist=False;Pooling=False;Min
    Pool Size=0;Max Pool Size=100;Connect Timeout=400
    4deed69c-2f53-a086-14bb-cbf40b020025
    12.18.2014 10:26:15.11 w3wp.exe (0x2304)
    0x1B40 SharePoint Foundation
    Database ab20s
    High [Forced due to logging gap, Original Level: Medium] Setting the {0} option to {1} on the database {2}.
    4deed69c-2f53-a086-14bb-cbf40b020025
    12.18.2014 10:26:15.14 w3wp.exe (0x2304)
    0x1B40 SharePoint Foundation
    Upgrade ajy0d
    High 12/18/2014 10:26:15.14 w3wp (0x2304) 0x1B40 SharePoint Foundation Upgrade SPUtility ajy0d DEBUG File C:\Program Files\Common Files\Microsoft Shared\Web Server Extensions\15\Template\sql\store.sql, Time out =
    0 sec 4deed69c-2f53-a086-14bb-cbf40b020025
    4deed69c-2f53-a086-14bb-cbf40b020025
    12.18.2014 10:28:07.46 w3wp.exe (0x2304)
    0x1B40 SharePoint Foundation
    Database ahjqp
    High [Forced due to logging gap, cached @ 12/18/2014 10:26:15.16, Original Level: Verbose] SQL connection time: 11.4389 for Data Source=SQLSERVER\DATABASE;Initial Catalog=WSS_Content_uitest;Integrated Security=True;Enlist=False;Pooling=False;Min
    Pool Size=0;Max Pool Size=100;Connect Timeout=400
    4deed69c-2f53-a086-14bb-cbf40b020025
    12.18.2014 10:28:07.46 w3wp.exe (0x2304)
    0x1B40 SharePoint Foundation
    Database fa45
    High System.Threading.ThreadAbortException: Thread was being aborted.     at SNIReadSyncOverAsync(SNI_ConnWrapper* , SNI_Packet** , Int32 )     at SNINativeMethodWrapper.SNIReadSyncOverAsync(SafeHandle
    pConn, IntPtr& packet, Int32 timeout)     at System.Data.SqlClient.TdsParserStateObject.ReadSniSyncOverAsync()     at System.Data.SqlClient.TdsParserStateObject.TryReadNetworkPacket()     at System.Data.SqlClient.TdsParserStateObject.TryPrepareBuffer()
        at System.Data.SqlClient.TdsParserStateObject.TryReadByte(Byte& value)     at System.Data.SqlClient.TdsParser.TryRun(RunBehavior runBehavior, SqlCommand cmdHandler, SqlDataReader dataStream, BulkCopySimpleResultSet bulkCopyHandler,
    TdsParserStateObject stateObj, Boolean& dataReady)     at System.Data.SqlClient.SqlCommand.RunExecuteNonQueryTds(String methodName, Boolean async, Int32 timeout, Boolean asyncWrite)     at System.Data.SqlClient.SqlCommand.InternalExecuteNonQuery(TaskCompletionSource`1
    completion, String methodName, Boolean sendToPipe, Int32 timeout, Boolean asyncWrite)     at System.Data.SqlClient.SqlCommand.ExecuteNonQuery()     at Microsoft.SharePoint.Utilities.SqlSession.ExecuteScript(TextReader textReader, Int32
    commandTimeout) 4deed69c-2f53-a086-14bb-cbf40b020025
    12.18.2014 10:28:07.47 w3wp.exe (0x2304)
    0x1B40 SharePoint Foundation
    Database fa46
    High at Microsoft.SharePoint.Utilities.SqlSession.ExecuteScript(String path, Int32 commandTimeout)     at Microsoft.SharePoint.Upgrade.SPUtility.ExecuteSqlFile(SqlSession sqlSession, ISqlSession isqlSession,
    SqlFile sqlFileId, Int32 timeOut)     at Microsoft.SharePoint.Administration.SPDatabase.Provision(SPDatabase database, SqlConnectionStringBuilder connectionString, SqlFile sqlFileId, Dictionary`2 options)     at Microsoft.SharePoint.Administration.SPContentDatabase.Provision()
        at Microsoft.SharePoint.Administration.SPContentDatabaseCollection.Add(SPContentDatabase database, Boolean provision, Guid webApplicationLockId, Int32 addFlags)     at Microsoft.SharePoint.Administration.SPContentDatabaseCollection.Add(Guid
    newDatabaseId, String strDatabaseServer, String strDatabaseName, String strDatabaseUsername, String strDatabasePassword, Int32 warningSiteCount, Int32 maximumSiteCount, Int32 status, Boolean provision, Guid lockId, Int32 addFlags)     at Microsoft.SharePoint.ApplicationPages.NewContentDBPage.BtnSubmit_Click(Object
    sender, EventArgs e)     at System.Web.UI.WebControls.Button.RaisePostBackEvent(String eventArgument)     at System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint)    
    at System.Web.UI.Page.ProcessRequest(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint)     at System.Web.UI.Page.ProcessRequest()     at System.Web.UI.Page.ProcessRequest(HttpContext context)     at
    System.Web.HttpApplication.CallHandlerExecutionStep.System.Web.HttpApplication.IExecutionStep.Execute()     at System.Web.HttpApplication.ExecuteStep(IExecutionStep step, Boolean& completedSynchronously)     at System.Web.HttpApplication.PipelineStepManager.ResumeSteps(Exception
    error)     at System.Web.HttpApplication.BeginProcessRequestNotification(HttpContext context, AsyncCallback cb)     at System.Web.HttpRuntime.ProcessRequestNotificationPrivate(IIS7WorkerRequest wr, HttpContext context)     at
    System.Web.Hosting.PipelineRuntime.ProcessRequestNotificationHelper(IntPtr rootedObjectsPointer, IntPtr nativeRequestContext, IntPtr moduleData, Int32 flags)     at System.Web.Hosting.PipelineRuntime.ProcessRequestNotification(IntPtr rootedObjectsPointer,
    IntPtr nativeRequestContext, IntPtr moduleData, Int32 flags)     at System.Web.Hosting.UnsafeIISMethods.MgdIndicateCompletion(IntPtr pHandler, RequestNotificationStatus& notificationStatus)     at System.Web.Hosting.UnsafeIISMethods.MgdIndicateCompletion(IntPtr
    pHandler, RequestNotificationStatus& notificationStatus)     at System.Web.Hosting.PipelineRuntime.ProcessRequestNotificationHelper(IntPtr rootedObjectsPointer, IntPtr nativeRequestContext, IntPtr moduleData, Int32 flags)     at System.Web.Hosting.PipelineRuntime.ProcessRequestNotification(IntPtr
    rootedObjectsPointer, IntPtr nativeRequestContext, IntPtr moduleData, Int32 flags)
    4deed69c-2f53-a086-14bb-cbf40b020025
    12.18.2014 10:28:07.47 w3wp.exe (0x2304)
    0x1B40 SharePoint Foundation
    Database tzku
    High ConnectionString: 'Data Source=SQLSERVER\DATABASE;Initial Catalog=WSS_Content_uitest;Integrated Security=True;Enlist=False;Pooling=False;Min Pool Size=0;Max Pool Size=100;Connect Timeout=400'    Partition:
    NULL ConnectionState: Closed ConnectionTimeout: 400
    4deed69c-2f53-a086-14bb-cbf40b020025
    12.18.2014 10:28:07.50 w3wp.exe (0x2304)
    0x1B40 SharePoint Foundation
    Database tzkv
    High SqlCommand: '--FixO15:3174405 create role SPReadOnly This line should not be changed or removed, otherwise upgrade would fail.  IF NOT EXISTS (SELECT * FROM sys.database_principals WHERE name = N'SPReadOnly'
    AND type = 'R')  CREATE ROLE [SPReadOnly]  DECLARE @objname sysname, @objtype NVARCHAR(max), @datatype NVARCHAR(max), @query NVARCHAR(max)  -- Grant SELECT on all SharePoint stored procedures and functions  DECLARE c CURSOR LOCAL FAST_FORWARD
    FOR      SELECT ROUTINE_NAME, ROUTINE_TYPE, DATA_TYPE      FROM INFORMATION_SCHEMA.ROUTINES      WHERE ROUTINE_SCHEMA = 'DBO'  OPEN c  WHILE 1 = 1  BEGIN      FETCH NEXT FROM c INTO
    @objname, @objtype, @datatype      IF @@FETCH_STATUS = -1          BREAK      IF @@FETCH_STATUS = 0      BEGIN          -- Inline table-valued functions    
         IF (@objtype = 'FUNCTION' AND @datatype = 'TABLE')              SET @query = 'GRANT SELECT ON [dbo].' + quotename(@objname) + ' TO [SPReadOnly]'          EXEC sp_executesql
    @query      END  END  CLOSE c  DEALLOCATE c  -- Grant SELECT on all SharePoint tables  DECLARE c CURSOR LOCAL FAST_FORWARD FOR      SELECT TABLE_NAME      FROM INFORMATION_SCHEMA.TABLES
         WHERE TABLE_SCHEMA = 'DBO'  OPEN c  WHILE 1 = 1  BEGIN      FETCH NEXT FROM c INTO @objname      IF @@FETCH_STATUS = -1          BREAK      IF @@FETCH_STATUS
    = 0      BEGIN          SET @query = 'GRANT SELECT ON [dbo].' + quotename(@objname) + ' TO [SPReadOnly]'          EXEC sp_executesql @query      END  END  CLOSE
    c  DEALLOCATE c  -- Grant EXECUTE on User-defined type where schema is dbo  DECLARE c CURSOR LOCAL FAST_FORWARD FOR      SELECT NAME      FROM SYS.TYPES      WHERE IS_USER_DEFINED = 1    
     AND SCHEMA_ID = schema_id(N'dbo')  OPEN c  WHILE 1 = 1  BEGIN      FETCH NEXT FROM c INTO @objname      IF @@FETCH_STATUS = -1          BREAK      IF @@FETCH_STATUS
    = 0      BEGIN          SET @query = 'GRANT EXECUTE ON TYPE::[dbo].' + quotename(@objname) + ' TO [SPReadOnly]'          EXEC sp_executesql @query      END  END  CLOSE
    c  DEALLOCATE c  '     CommandType: Text CommandTimeout: 0
    4deed69c-2f53-a086-14bb-cbf40b020025
    12.18.2014 10:28:07.50 w3wp.exe (0x2304)
    0x1B40 SharePoint Foundation
    Database aek90
    High SecurityOnOperationCheck = False
    4deed69c-2f53-a086-14bb-cbf40b020025
    12.18.2014 10:28:07.50 w3wp.exe (0x2304)
    0x1B40 SharePoint Foundation
    Monitoring b4ly
    High Leaving Monitored Scope (Database.Provision (WSS_Content_uitest on SQLSErver\database)). Execution Time=115148.4664
    4deed69c-2f53-a086-14bb-cbf40b020025
    12.18.2014 10:28:07.50 w3wp.exe (0x2304)
    0x1B40 SharePoint Foundation
    Topology 8dyx
    High Deleting the SPPersistedObject, SPContentDatabase Name=WSS_Content_uitest.
    4deed69c-2f53-a086-14bb-cbf40b020025
    12.18.2014 10:28:07.56 w3wp.exe (0x2304)
    0x1B40 SharePoint Foundation
    Topology bw4w
    High [Forced due to logging gap, cached @ 12/18/2014 10:28:07.53, Original Level: Medium] {0}
    4deed69c-2f53-a086-14bb-cbf40b020025
    12.18.2014 10:28:07.56 w3wp.exe (0x2304)
    0x1B40 SharePoint Foundation
    Database 8acb
    High [Forced due to logging gap, Original Level: VerboseEx] Reverting to process identity
    4deed69c-2f53-a086-14bb-cbf40b020025
    12.18.2014 10:28:07.60 w3wp.exe (0x2304)
    0x1B40 SharePoint Foundation
    Monitoring b4ly
    High Leaving Monitored Scope (Creating Content Database (WSS_Content_uitest on SQLServer\Database)). Execution Time=115311.5636
    4deed69c-2f53-a086-14bb-cbf40b020025
    12.18.2014 10:28:07.64 w3wp.exe (0x2304)
    0x1B40 SharePoint Foundation
    Runtime tkau
    Unexpected System.Web.HttpException: Request timed out.
    4deed69c-2f53-a086-14bb-cbf40b020025
    12.18.2014 10:28:07.64 w3wp.exe (0x2304)
    0x1B40 SharePoint Foundation
    General ajlz0
    High Getting Error Message for Exception System.Web.HttpException (0x80004005): Request timed out.
    4deed69c-2f53-a086-14bb-cbf40b020025
    12.18.2014 10:28:07.69 w3wp.exe (0x2304)
    0x1B40 SharePoint Foundation
    Micro Trace uls4
    High Micro Trace Tags: 0 b4ly,301 aj2jl,3 aj2jk,0 aj2jl,2423 84y4,35 84y5,4 84y4,11 84y5,181 7t6o,2714 ajy0d,112321 fa45,10 fa46,3 tzku,23 tzkv,0 aek90,0 b4ly,6 8dyx,91 b4ly,38 tkau,13 ajlz0
    4deed69c-2f53-a086-14bb-cbf40b020025
    The working content database creation from powershell looks like this
    12.18.2014 09:45:37.52 PowerShell.exe (0x2058)
    0x1E28 SharePoint Foundation
    Upgrade aj2jl
    High 12/18/2014 09:45:37.52 powershell (0x2058) 0x1E28 SharePoint Foundation Upgrade ServerSequence aj2jl DEBUG Search ServerSequence returns TargetBuildVersion '15.0.4675.1000' 43dae8a1-02e3-43f5-8a06-0417221e6385
    43dae8a1-02e3-43f5-8a06-0417221e6385
    12.18.2014 09:45:37.52 PowerShell.exe (0x2058)
    0x1E28 SharePoint Foundation
    Upgrade aj2jk
    High 12/18/2014 09:45:37.52 powershell (0x2058) 0x1E28 SharePoint Foundation Upgrade ServerSequence aj2jk DEBUG Setting Search ServerSequence version (guid '53d65723-a256-48d7-a477-1d3466089eef') to BuildVersion '15.0.4675.1000'
    43dae8a1-02e3-43f5-8a06-0417221e6385 43dae8a1-02e3-43f5-8a06-0417221e6385
    12.18.2014 09:45:37.52 PowerShell.exe (0x2058)
    0x1E28 SharePoint Foundation
    Upgrade aj2jl
    High 12/18/2014 09:45:37.52 powershell (0x2058) 0x1E28 SharePoint Foundation Upgrade ServerSequence aj2jl DEBUG Search ServerSequence returns TargetBuildVersion '15.0.4675.1000' 43dae8a1-02e3-43f5-8a06-0417221e6385
    43dae8a1-02e3-43f5-8a06-0417221e6385
    12.18.2014 09:45:39.98 PowerShell.exe (0x2058)
    0x1E28 SharePoint Foundation
    Topology 84y4
    High Granting VIEW SERVER STATE permission for S-1-5-21-3747686279-3738247048-1854932723-1131.
    43dae8a1-02e3-43f5-8a06-0417221e6385
    12.18.2014 09:45:40.02 PowerShell.exe (0x2058)
    0x1E28 SharePoint Foundation
    Topology 84y5
    High VIEW SERVER STATE permission updated successfully.
    43dae8a1-02e3-43f5-8a06-0417221e6385
    12.18.2014 09:45:40.02 PowerShell.exe (0x2058)
    0x1E28 SharePoint Foundation
    Topology 84y4
    High Granting CONTROL SERVER permission for S-1-5-21-3747686279-3738247048-1854932723-1131.
    43dae8a1-02e3-43f5-8a06-0417221e6385
    12.18.2014 09:45:40.03 PowerShell.exe (0x2058)
    0x1E28 SharePoint Foundation
    Topology 84y5
    High CONTROL SERVER permission updated successfully.
    43dae8a1-02e3-43f5-8a06-0417221e6385
    12.18.2014 09:45:40.23 PowerShell.exe (0x2058)
    0x1E28 SharePoint Foundation
    Database 7t6o
    High The WSS_Content_powershelltest database does not exist.  It will now be created.
    43dae8a1-02e3-43f5-8a06-0417221e6385
    12.18.2014 09:45:43.03 PowerShell.exe (0x2058)
    0x1E28 SharePoint Foundation
    Upgrade ajy0d
    High 12/18/2014 09:45:43.03 powershell (0x2058) 0x1E28 SharePoint Foundation Upgrade SPUtility ajy0d DEBUG File C:\Program Files\Common Files\Microsoft Shared\Web Server Extensions\15\Template\sql\store.sql, Time
    out = 0 sec 43dae8a1-02e3-43f5-8a06-0417221e6385
    43dae8a1-02e3-43f5-8a06-0417221e6385
    12.18.2014 09:48:52.70 PowerShell.exe (0x2058)
    0x1E28 SharePoint Foundation
    Database 944r
    High Adding S-1-5-21-3747686279-3738247048-1854932723-1131 to the role, db_owner, in the database, WSS_Content_powershelltest.
    43dae8a1-02e3-43f5-8a06-0417221e6385
    12.18.2014 09:48:52.81 PowerShell.exe (0x2058)
    0x1E28 SharePoint Foundation
    Monitoring b4ly
    High Leaving Monitored Scope (Database.Provision (WSS_Content_powershelltest on SQLSERVER\DATABASE)). Execution Time=192653,1989
    43dae8a1-02e3-43f5-8a06-0417221e6385
    12.18.2014 09:48:57.90 PowerShell.exe (0x2058)
    0x1E28 SharePoint Foundation
    Upgrade al2ph
    High 12/18/2014 09:48:57.90 powershell (0x2058) 0x1E28 SharePoint Foundation Upgrade SPContentDatabaseSequence al2ph DEBUG Executing SQL DDL Script. 43dae8a1-02e3-43f5-8a06-0417221e6385
    43dae8a1-02e3-43f5-8a06-0417221e6385
    12.18.2014 09:48:58.03 PowerShell.exe (0x2058)
    0x1E28 SharePoint Foundation
    Upgrade al2ph
    High 12/18/2014 09:48:58.03 powershell (0x2058) 0x1E28 SharePoint Foundation Upgrade SPContentDatabaseSequence al2ph DEBUG Executing SQL DDL Script. 43dae8a1-02e3-43f5-8a06-0417221e6385
    43dae8a1-02e3-43f5-8a06-0417221e6385
    12.18.2014 09:48:58.04 PowerShell.exe (0x2058)
    0x1E28 SharePoint Foundation
    Upgrade al2ph
    High 12/18/2014 09:48:58.04 powershell (0x2058) 0x1E28 SharePoint Foundation Upgrade SPContentDatabaseSequence2 al2ph DEBUG Executing SQL DDL Script. 43dae8a1-02e3-43f5-8a06-0417221e6385
    43dae8a1-02e3-43f5-8a06-0417221e6385
    12.18.2014 09:48:58.15 PowerShell.exe (0x2058)
    0x1E28 SharePoint Foundation
    Upgrade ajyw6
    High 12/18/2014 09:48:58.15 powershell (0x2058) 0x1E28 SharePoint Foundation Upgrade SPHierarchyManager ajyw6 DEBUG [SPTree Value=SPContentDatabase Name=WSS_Content_powershelltest] added to dependency cache by lookup
    43dae8a1-02e3-43f5-8a06-0417221e6385 43dae8a1-02e3-43f5-8a06-0417221e6385
    12.18.2014 09:48:58.23 PowerShell.exe (0x2058)
    0x1E28 SharePoint Foundation
    Database 944r
    High Adding S-1-5-21-3747686279-3738247048-1854932723-1131 to the role, SPDataAccess, in the database, WSS_Content_powershelltest.
    43dae8a1-02e3-43f5-8a06-0417221e6385
    12.18.2014 09:48:58.59 PowerShell.exe (0x2058)
    0x1E28 SharePoint Foundation
    Database bx4r
    High All documents with forward links in content database [SPContentDatabase Name=WSS_Content_powershelltest] is being dirtied.
    43dae8a1-02e3-43f5-8a06-0417221e6385
    12.18.2014 09:48:58.97 PowerShell.exe (0x2058)
    0x1E28 SharePoint Foundation
    Database 944r
    High Adding S-1-5-21-3747686279-3738247048-1854932723-1131 to the role, SPDataAccess, in the database, WSS_Content_powershelltest.
    43dae8a1-02e3-43f5-8a06-0417221e6385
    12.18.2014 09:48:58.98 PowerShell.exe (0x2058)
    0x1E28 SharePoint Foundation
    Monitoring b4ly
    High Leaving Monitored Scope (Creating Content Database (WSS_Content_powershelltest on SQLSERVER\DATABASE)). Execution Time=198893,1578
    43dae8a1-02e3-43f5-8a06-0417221e6385
    The fact that i am able to create a content database through powershell sorts out permissions problems. I am certain of that because the w3wp.exe and the powershell.exe used for both creations were run under the same user.
    The timeout always happens aroud 120 seconds after i started the creation. The creation via powershell takes about 3,5 minutes.
    Here for the folks that ask me, why i haven't asked google or bing or some other search engine.
    I tried the solutions suggested here
    http://www.sharepointpals.com/post/Error-while-Creating-Web-Application-through-Central-Administration , here
    http://anthonyspiteri.net/sharepoint-2010-web-ui-timeout-creating-web-application-quick-fix/ and here
    http://blogs.ibs.com/Duane.Odum/Lists/Posts/Post.aspx?ID=33
    which i thought pointed me to the right solution.
    But those post unfortunatly didnt worked out.
    I also tried to alter the web.config files (i know that isn't recommended or supported, but it didn't change anything so those are back to normal as well)
    So here are my question:
    Can you guys help me solve this issue?
    Are there any other places where timeouts can be managed or defined?
    P.S.: I am new to using this forum. so pls don't crucify me for doing a mistake.
    P.S.S: My english is very poor also :D
    With best regards
    Simon

    Be careful with settings like these because there may be a much deeper issue at hand. I have had an issue with a customer that manifests itself as a timeout on a site collection. It was very hard to track since it didn't happen frequently. We engaged Microsoft
    Support to find out the root cause but all they could point at is a general network issue that pertains to authentication. After digging deeper, we found out that the network issue was caused by a saturated network connectivity to the domain controller that
    impacts a site collection when the database is making an authentication call. Keep this solution as more of a quick fix but be sure to conduct a deeper investigation of the real root cause
    Edwin Sarmiento SQL Server MVP | Microsoft Certified Master
    Blog |
    Twitter | LinkedIn
    SQL Server High Availability and Disaster Recover Deep Dive Course

  • Sntax error when creating a temp table

    Hi All,
    I get a syntax error when I try to create a  temporary table using the below sql statement.
    create global temporary column table prc as table precipitation;
    The  table precipitation exists in the database under my ID.
    Could anyone please let me know what is wrong with the above statement.
    Thanks,
    Goutham

    Try:
    create global temporary column table prc like precipitation;
    or
    create global temporary column table prc as (select * from precipitation);
    Cheers,
    Jody
    (HANA SQL Reference Manual:  https://websmp201.sap-ag.de/~sapidb/011000358700000604922011)

  • Issue When Creating a Database View

    Hi
           I am trying two join two tables using a database view through SE11 and this tables are related to SAP HR.
          As per the requirement we need to create a table join using SQVI in which  we are facing a issue where the transaction  is freezed as as we create a
          Table join using SQVI.
          So..
          Is their any alternative method to join two tables in HR ABAP apart from SQVI.
          When I try to create a DATBASE VIEW  in SE11  it says no relation exists even there is one primary key in both the tables.
          Can we do this using SE11 or is there any other way two join these tables or infotypes..for ex how we join p0008 and p0002
          I am new to this pls help me.(Sry for posting ths in ABAP DEV)..

    Hi,
    there is a difference between database tables and structures. Structures do no exist in the database, they are just a grouping of fields in ABAP dictionary. P0002 ans P0008 are structures that do not contain any data by definition.
    You can create SQVI quick view or database view using database tables PA0002 and PA0008.
    Check if all join conditions can be used in your case, you may change or delete join conditions using right-mouse-click.
    Regards
    Clemens

  • Error when creating a database diagram

    Hi, this is the error that I receive when I try to create a database diagram with aprox. 20 tables:
    BME-99003: An error occurred, so processing could not continue.
    Cause:
    The application has tried to de-reference an invalid pointer. This exception should have been dealt with programmatically. The current activity may fail and the system may have been left in an unstable state. The following is a stack trace.
    java.lang.NullPointerException
         at oracle.jdeveloper.dbmodeler.diagram.shape.DBBaseShape.notifyChange(DBBaseShape.java:226)
         at oracle.bm.diagrammer.shape.BaseDiagramShape.initShape(BaseDiagramShape.java:367)
         at oracle.bm.diagrammer.shape.BaseDiagramNode.initShape(BaseDiagramNode.java:291)
         at oracle.bm.diagrammer.BaseDiagram.addShape(BaseDiagram.java:6921)
         at oracle.bm.diagrammer.BaseDiagram.addShape(BaseDiagram.java:6846)
         at oracle.bm.diagrammer.BaseDiagram$1ShapeCreator$1.performAction(BaseDiagram.java:5494)
         at oracle.bm.diagrammer.DistributableLockMonitor.performLockedAction(DistributableLockMonitor.java:70)
         at oracle.bm.diagrammer.BaseDiagram.performDiagramResizeLockedAction(BaseDiagram.java:2521)
         at oracle.bm.diagrammer.BaseDiagram$1ShapeCreator.doIt(BaseDiagram.java:5471)
         at oracle.bm.diagrammer.BaseDiagram.createShapesFromInfo(BaseDiagram.java:5729)
         at oracle.bm.diagrammer.registry.RCompositeDiagram.dropList(RCompositeDiagram.java:1258)
         at oracle.bm.addinUtil.IDEAppContext$4$2$2.run(IDEAppContext.java:4643)
         at java.awt.event.InvocationEvent.dispatch(InvocationEvent.java:199)
         at oracle.ide.controls.progress.AbstractProgressDialog.dispatchThisEvent(AbstractProgressDialog.java:463)
         at oracle.ide.controls.progress.AbstractProgressDialog.showDialog(AbstractProgressDialog.java:318)
         at oracle.bm.addinUtil.IDEAppContext$4$1.performAction(IDEAppContext.java:4735)
         at oracle.bm.diagrammer.DistributableLockMonitor.performLockedAction(DistributableLockMonitor.java:70)
         at oracle.bm.diagrammer.BaseDiagram.performDiagramResizeLockedAction(BaseDiagram.java:2521)
         at oracle.bm.addinUtil.IDEAppContext$4.performAction(IDEAppContext.java:4730)
         at oracle.bm.diagrammer.LockMonitor.performLockedAction(LockMonitor.java:64)
         at oracle.bm.diagrammer.BaseDiagram.performDiagramLockedAction(BaseDiagram.java:2437)
         at oracle.bm.addinUtil.IDEAppContext.dropNavigatorNodeLater(IDEAppContext.java:4395)
         at oracle.bm.addinUtil.IDEAppContext$5.run(IDEAppContext.java:4374)
         at java.awt.event.InvocationEvent.dispatch(InvocationEvent.java:209)
         at java.awt.EventQueue.dispatchEvent(EventQueue.java:461)
         at java.awt.EventDispatchThread.pumpOneEventForHierarchy(EventDispatchThread.java:242)
         at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:163)
         at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:157)
         at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:149)
         at java.awt.EventDispatchThread.run(EventDispatchThread.java:110)
    funny thing is that it worked with bigger diagrams but for some reason when I select these tables it crashes.

    Don't know the cause, but my advice would be to try and create the diagram in small steps.
    In similar situations I always found that a problem like this occurred when adding some specific table or other component and when investigating found out that there was a problem with that specific component. So it would be interesting to know when this error exactly occurs and review the corresponding component.
    Jan Kettenis

  • Labview database problem: Create a database table from user defined fields

    I am trying to create a new table in an access database opened by an ODBC connection from information entered a table stored in the database, but every time I try to create the table, the Labview Database connectivity toolkit VI for creating a table throws a cryptic error
    "Exception occured in Microsoft OLE DB Provider for ODBC Drivers: [Microsoft][ODBC Microsoft Access Driver] Syntax error in field definition. in NI_Database_API.lvlib:Conn Execute.vi->NI_Database_API.lvlibB Tools Create Table.vi->DatabaseCreateHeaders.vi"
    I think this is becuase I am trying to re-create the database  column variable type, but I am not sure what I am doing wrong.  Everything seems to be fine as the data types go, and everything works as long as I use a constant to create the database columns.  I even tried putting all of the information into the format labview defined, changed that to a variant, and redefined it as the labview database column type. 
    I have attached a simplified VI and a picture of what I am trying to
    do, but I would appreciate any help I can get.  Hopefully I won't have
    pulled out all of my hair by the time some one replies!
    Solved!
    Go to Solution.
    Attachments:
    DatabaseUserDefinedTable.vi ‏14 KB
    UserDefinedColumns.JPG ‏48 KB

    Hi everyone. I am new to the database tool kit using labview. I am using labview 9.0f2 on Windows Xp. I am required to create a database (task is to create a table and to insert values into the table using Microsoft access 2007). I am trying to learn using the Create Database table.vi found with the software. I understand that need to create an access file and also had a mdl file which is name after it.(I had created them). Looking at the example given, I would like to add a few more variables, to be exact 6 more variables(therefore i would have 6 colum in my access file rite?). From the "connection information" the help information shows that it contain an 1D array of DB tools colum. ctl and also a cluster of 4 elements. the link to the access file, LabVIEW.udl shows that it restrict the colum in the access file.eg it has only stringcol,intcol,doublecol. I need to add more colum but cant add just like tt.
    qn1: How to i add insert more varibles into the database so that it will apprears in access.
    qn2: I cant drag and insert the "connection information" just to have more input. how do i do it?
    qn3: where can i edit the info so that i can add more cluster into the access? when i drag out the input turn greyish.

  • Error when creating a database on SQL Server 2012(Virtual Machine)

    Hi,
    I create a virtual machine on VMWare Workstation 10, then install Windows 7(32bit), then install SQL Server 2012 Enterprise version.
    Then I write a Visual C++2008 program and using ADO to connect to the local SQL Server, with the connection string below:
    “Provider=sqloledb;Data Source=(local);Integrated Security=SSPI;”
    The connect succeed, then I try to create a new SQL Server database by calling:
    m_pConnection->Execute(_T(“create database MyDatabase on primary (name = ‘MyDatabase’, filename = ‘E:\\MyDatabase.mdf’)”), NULL, 0);
    where E: is a USB drive plugged in.
    When running the above statement, I can even see the MyDatabase.mdf file is being created, but finally get an error and error number is 80040e31 when checking the error from m_pConnection, after analyzing the com exception, we find it reports the error as
    “IDispath error #3121”. Both errors seem to indicate a “Timeout error”.
    Then I try to create the database on the local drive in the virtual machine, as follows:
    m_pConnection->Execute(_T(“create database MyDatabase on primary (name = ‘MyDatabase’, filename = ‘C:\\MyDatabase.mdf’)”), NULL, 0);
    Then I get error number: 80040e14 from m_pConnection, and com error is “IDispath error #3092”
    What is the problem?
    Thanks

    Hello chcw,
    SQL Server 2012 Enterprise doesn't support to install on Windows 7 Opeating System. For detail information, please refer to the article below:
    The article shows the operating system requirements for the principal editions of SQL Server 2012:
    http://msdn.microsoft.com/en-us/library/ms143506.aspx#top_principal
    Here is an article for your reference, please see:
    How To  Create a SQL Server Database Programmatically by Using ADO.NET and Visual C# .NET:
    https://support.microsoft.com/kb/307283/en-us
    If you have any feedback on our support, please click
    here.
    Regards,
    Elvis Long
    TechNet Community Support

  • Controlfile corrupted when creating a database - ORA-00202

    Hi Oracle experts,
    I have two virtual machines, the clusterware installed fine and is accessing shared disks, also ASM is running fine.
    When I created the database using dbca everything went fine until the very last end, I saw a window indicating that instances on both nodes were starting then I got this error for the second instance:
    PRKP-1001 : Error starting instance vrac2 on node monoravpc11
    CRS-0215: Could not start resource 'ora.vrac.vrac2.inst'
    In the alert there are these errors:
    Tue Jul 29 09:44:49 2008
    Hex dump of (file 0, block 1) in trace file /u01/app/oracle/admin/vrac/udump/vrac2_ora_31504.trc
    Corrupt block relative dba: 0x00000001 (file 0, block 1)
    Completely zero block found during control file header read
    Tue Jul 29 09:44:52 2008
    Errors in file /u01/app/oracle/admin/vrac/udump/vrac2_ora_31504.trc:
    ORA-00202: control file: '+DATA/vrac/controlfile/current.257.661336023'
    Then I checked the ASM disks on the second instance and everything looks fine, disks are accesible and mounted:
    SQL> select instance_name from v$instance;
    INSTANCE_NAME
    +ASM2
    SQL> select group_number, disk_number, mount_status, state from v$asm_disk
    2 /
    GROUP_NUMBER DISK_NUMBER MOUNT_S STATE
    0 2 CLOSED NORMAL
    0 3 CLOSED NORMAL
    1 1 CACHED NORMAL
    1 0 CACHED NORMAL
    SQL> select group_number, disk_number, reads, writes, read_errs, write_errs from v$asm_disk;
    GROUP_NUMBER DISK_NUMBER READS WRITES READ_ERRS WRITE_ERRS
    0 2
    0 3
    1 1 25 1 0 0
    1 0 37 0 0 0
    ASMCMD> pwd
    +data/vrac/controlfile
    ASMCMD> ls
    Current.256.661336019
    Current.257.661336023
    Then I went to the first instance, wich is up and running and query the control files:
    Valid     File Name     File Directory
    VALID     current.256.661336019     +DATA/vrac/controlfile/
    VALID     current.257.661336023     +DATA/vrac/controlfile/
    They are good and valid.
    So, any hint? any suggestion? I am lost here, I even created a new controlfile I still received the very same message.
    Regards,
    Carlos Acosta

    Yes, sorry, I was so focused on writing a well redacted message that I forgot to send the versions ;)
    OS: Linux Redhat AS 3, 32bit
    Oracle Database and clusterware: 10.2.0.1
    Here is the complete messages file for today:
    Jul 29 09:36:15 monoravpc11 rsh(pam_unix)[22309]: session opened for user oracle by (uid=0)
    Jul 29 09:36:15 monoravpc11 rsh(pam_unix)[22309]: session closed for user oracle
    Jul 29 09:36:36 monoravpc11 pam_rhosts_auth[22717]: allowed to [email protected] as oracle
    Jul 29 09:36:37 monoravpc11 rsh(pam_unix)[22717]: session opened for user oracle by (uid=0)
    Jul 29 09:36:37 monoravpc11 rsh(pam_unix)[22717]: session closed for user oracle
    Jul 29 09:36:37 monoravpc11 pam_rhosts_auth[22750]: allowed to [email protected] as oracle
    Jul 29 09:36:37 monoravpc11 rsh(pam_unix)[22750]: session opened for user oracle by (uid=0)
    Jul 29 09:36:37 monoravpc11 rsh(pam_unix)[22750]: session closed for user oracle
    Jul 29 09:36:38 monoravpc11 pam_rhosts_auth[22783]: allowed to [email protected] as oracle
    Jul 29 09:36:38 monoravpc11 rsh(pam_unix)[22783]: session opened for user oracle by (uid=0)
    Jul 29 09:36:38 monoravpc11 rsh(pam_unix)[22783]: session closed for user oracle
    Jul 29 09:36:39 monoravpc11 pam_rhosts_auth[22793]: allowed to [email protected] as oracle
    Jul 29 09:36:39 monoravpc11 rsh(pam_unix)[22793]: session opened for user oracle by (uid=0)
    Jul 29 09:36:39 monoravpc11 rsh(pam_unix)[22793]: session closed for user oracle
    Jul 29 09:36:40 monoravpc11 pam_rhosts_auth[22828]: allowed to [email protected] as oracle
    Jul 29 09:36:40 monoravpc11 rsh(pam_unix)[22828]: session opened for user oracle by (uid=0)
    Jul 29 09:36:40 monoravpc11 rsh(pam_unix)[22828]: session closed for user oracle
    Jul 29 09:36:40 monoravpc11 pam_rhosts_auth[22836]: allowed to [email protected] as oracle
    Jul 29 09:36:40 monoravpc11 rsh(pam_unix)[22836]: session opened for user oracle by (uid=0)
    Jul 29 09:36:41 monoravpc11 rsh(pam_unix)[22836]: session closed for user oracle
    Jul 29 09:36:41 monoravpc11 pam_rhosts_auth[22871]: allowed to [email protected] as oracle
    Jul 29 09:36:41 monoravpc11 rsh(pam_unix)[22871]: session opened for user oracle by (uid=0)
    Jul 29 09:36:42 monoravpc11 rsh(pam_unix)[22871]: session closed for user oracle
    Jul 29 09:36:42 monoravpc11 pam_rhosts_auth[22879]: allowed to [email protected] as oracle
    Jul 29 09:36:42 monoravpc11 rsh(pam_unix)[22879]: session opened for user oracle by (uid=0)
    Jul 29 09:36:42 monoravpc11 rsh(pam_unix)[22879]: session closed for user oracle
    Jul 29 09:36:57 monoravpc11 pam_rhosts_auth[23164]: allowed to [email protected] as oracle
    Jul 29 09:36:57 monoravpc11 rsh(pam_unix)[23164]: session opened for user oracle by (uid=0)
    Jul 29 09:36:58 monoravpc11 pam_rhosts_auth[23213]: allowed to [email protected] as oracle
    Jul 29 09:36:58 monoravpc11 rsh(pam_unix)[23213]: session opened for user oracle by (uid=0)
    Jul 29 09:36:58 monoravpc11 rsh(pam_unix)[23213]: session closed for user oracle
    Jul 29 09:36:58 monoravpc11 pam_rhosts_auth[23249]: allowed to [email protected] as oracle
    Jul 29 09:36:58 monoravpc11 rsh(pam_unix)[23249]: session opened for user oracle by (uid=0)
    Jul 29 09:36:58 monoravpc11 rsh(pam_unix)[23249]: session closed for user oracle
    Jul 29 09:37:07 monoravpc11 pam_rhosts_auth[23434]: allowed to [email protected] as oracle
    Jul 29 09:37:07 monoravpc11 rsh(pam_unix)[23434]: session opened for user oracle by (uid=0)
    Jul 29 09:37:07 monoravpc11 rsh(pam_unix)[23434]: session closed for user oracle
    Jul 29 09:37:08 monoravpc11 pam_rhosts_auth[23444]: allowed to [email protected] as oracle
    Jul 29 09:37:08 monoravpc11 rsh(pam_unix)[23444]: session opened for user oracle by (uid=0)
    Jul 29 09:37:08 monoravpc11 rsh(pam_unix)[23444]: session closed for user oracle
    Jul 29 09:37:08 monoravpc11 pam_rhosts_auth[23477]: allowed to [email protected] as oracle
    Jul 29 09:37:08 monoravpc11 rsh(pam_unix)[23477]: session opened for user oracle by (uid=0)
    Jul 29 09:39:10 monoravpc11 pam_rhosts_auth[25874]: allowed to [email protected] as oracle
    Jul 29 09:39:10 monoravpc11 rsh(pam_unix)[25874]: session opened for user oracle by (uid=0)
    Jul 29 09:40:02 monoravpc11 rsh(pam_unix)[25874]: session closed for user oracle
    Jul 29 09:40:17 monoravpc11 pam_rhosts_auth[27528]: allowed to [email protected] as oracle
    Jul 29 09:40:17 monoravpc11 rsh(pam_unix)[27528]: session opened for user oracle by (uid=0)
    Jul 29 11:55:54 monoravpc11 sshd(pam_unix)[3752]: session closed for user oracle
    Jul 29 11:55:57 monoravpc11 sshd(pam_unix)[26631]: session opened for user oracle by (uid=500)

  • Installation problem when creating first database

    Hy , I have a dell power edge with Windows 2003 R2 32bit. 4Gb RAm. I am installing oracle standard edition 11g. the installation completed successfully, when creating the default database i got an error. It refered me to the log below
    Location of the file is : D:\Oracle\app\Administrator\cfgtoollogs\dbca\ORCL\emConfig.log
    SEVERE: Error starting Database Control
    Refer to the log file at D:\Oracle\app\Administrator\cfgtoollogs\dbca\ORCL\emConfig.log for more details.
    Nov 10, 2008 5:07:32 AM oracle.sysman.emcp.EMConfig perform
    CONFIG: Stack Trace:
    oracle.sysman.emcp.exception.EMConfigException: Error starting Database Control
         at oracle.sysman.emcp.EMDBPostConfig.performConfiguration(EMDBPostConfig.java:869)
         at oracle.sysman.emcp.EMDBPostConfig.invoke(EMDBPostConfig.java:250)
         at oracle.sysman.emcp.EMDBPostConfig.invoke(EMDBPostConfig.java:213)
         at oracle.sysman.emcp.EMConfig.perform(EMConfig.java:235)
         at oracle.sysman.assistants.util.em.EMConfiguration.run(EMConfiguration.java:460)
         at java.lang.Thread.run(Thread.java:595)
    I have tried deleting the database and recreating it. Still the same.
    I have put the ip and host name of the server in the host file . does not work.
    Can you help me please

    D:\Oracle\app\Administrator\cfgtoollogs\dbca\ORCL\emConfig.log contains the following information
    CONFIG: Waiting for service 'OracleDBConsoleORCL' to fully start
    Nov 10, 2008 5:07:32 AM oracle.sysman.emcp.EMConfig perform
    SEVERE: Error starting Database Control
    Refer to the log file at D:\Oracle\app\Administrator\cfgtoollogs\dbca\ORCL\emConfig.log for more details.
    Nov 10, 2008 5:07:32 AM oracle.sysman.emcp.EMConfig perform
    CONFIG: Stack Trace:
    oracle.sysman.emcp.exception.EMConfigException: Error starting Database Control
         at oracle.sysman.emcp.EMDBPostConfig.performConfiguration(EMDBPostConfig.java:869)
         at oracle.sysman.emcp.EMDBPostConfig.invoke(EMDBPostConfig.java:250)
         at oracle.sysman.emcp.EMDBPostConfig.invoke(EMDBPostConfig.java:213)
         at oracle.sysman.emcp.EMConfig.perform(EMConfig.java:235)
         at oracle.sysman.assistants.util.em.EMConfiguration.run(EMConfiguration.java:460)
         at java.lang.Thread.run(Thread.java:595)
    Nov 10, 2008 5:07:32 AM oracle.sysman.emcp.EMConfig restoreOuiLoc
    CONFIG: Restoring oracle.installer.oui_loc to D:\Oracle\app\Administrator\product\11.1.0\db_1\oui

  • Oracle 11g Install hangs when "creating clon database"

    hi, i'm new with all this stuff, i'm trying to install oracle 11g on a windows 2003 standard edition and the installation hangs in this point:
    http://img233.imageshack.us/img233/1458/installni7.jpg
    it's almost an hour and it's stuck in 45% when trying to create clon database in "Creating and starting oracle instance".
    I checked the log file but it says nothing weird, just that everything went well and a "restore" was made.
    what can i do?
    thanks!!!

    If someone still needs an answer to this:
    I had a similar problem with 10g. If you use certain special characters in the password for the database during its creation, some script will hang forever at 45% of the database creation. Just use a plain password without special characters. At the end of the database creation you can change all passwords. At that stage you can use special characters without any problem.
    I don't know if this is the same in 11g, but it sounds very similar.
    JD

  • Problem occured when create a tree table for master-detail view objects using SQL queries?

    I am programming a tree table for master-detail view objects using SQL queries and these 2 view objects are not simple singel tables queries, and 2 complex SQL are prepared for master and view objects. see below:
    1. Master View object (key attribute is SourceBlock and some varaible bindings are used for this view object.)
    SELECT  cntr_list.SOURCE_BLOCK,                   
            sum(                   
             case when cntr_list.cntr_size_q = '20'                   
                  then cntr_list.cntr_qty                   
                  else 0 end ) as cntr20 ,                   
            sum(                   
             case when cntr_list.cntr_size_q = '40'                   
                  then cntr_list.cntr_qty                   
                  else 0 end ) as cntr40 ,                   
             sum(                   
             case when cntr_list.cntr_size_q = '45'                   
                  then cntr_list.cntr_qty                   
                  else 0 end ) as cntr45                    
    FROM (       
        SELECT yb1.BLOCK_M as SOURCE_BLOCK,       
               scn.CNTR_SIZE_Q,        
               count(scn.CNTR_SIZE_Q) AS cntr_qty        
        FROM  SHIFT_CMR scm, SHIFT_CNTR scn, YARD_BLOCK yb1, YARD_BLOCK yb2       
        WHERE       
        scm.cmr_n = scn.cmr_n             
        AND (scm.plan_start_dt BETWEEN to_date(:DateFrom,'YYYY/MM/DD HH24:MI:SS') AND to_date(:DateTo,'YYYY/MM/DD HH24:MI:SS')                 
        OR scm.plan_end_dt BETWEEN to_date(:DateFrom,'YYYY/MM/DD HH24:MI:SS') AND to_date(:DateTo,'YYYY/MM/DD HH24:MI:SS'))                 
        AND scm.shift_mode_c = :ShiftModeCode                           
        AND scm.end_terminal_c = :TerminalCode      
        AND scm.start_terminal_c = yb1.terminal_c                  
        AND scm.start_block_n = yb1.block_n                  
        AND substr(scn.start_location_c,(instr(scn.start_location_c,',',1,5)+1),instr(scn.start_location_c,',',1,6)-(instr(scn.start_location_c,',',1,5)+1)) BETWEEN yb1.slot_from_n AND yb1.slot_to_n                  
        AND scm.end_terminal_c = yb2.terminal_c                  
        AND scm.end_block_n = yb2.block_n                  
        AND substr(scn.end_location_c,(instr(scn.end_location_c,',',1,5)+1),instr(scn.end_location_c,',',1,6)-(instr(scn.end_location_c,',',1,5)+1)) BETWEEN yb2.slot_from_n AND yb2.slot_to_n           
        AND scn.status_c not in (1, 11)             
        AND scn.shift_type_c = 'V'             
        AND scn.source_c = 'S'       
        GROUP BY yb1.BLOCK_M, scn.CNTR_SIZE_Q       
    ) cntr_list       
    GROUP BY cntr_list.SOURCE_BLOCK
    2. Detail View object (key attributes are SourceBlock and EndBlock and same varaible bindings are used for this view object.)
    SELECT  cntr_list.SOURCE_BLOCK, cntr_list.END_BLOCK,                
            sum(                     
             case when cntr_list.cntr_size_q = '20'                     
                  then cntr_list.cntr_qty                     
                  else 0 end ) as cntr20 ,                     
            sum(                     
             case when cntr_list.cntr_size_q = '40'                     
                  then cntr_list.cntr_qty                     
                  else 0 end ) as cntr40 ,                     
             sum(                     
             case when cntr_list.cntr_size_q = '45'                     
                  then cntr_list.cntr_qty                     
                  else 0 end ) as cntr45                      
    FROM (         
        SELECT yb1.BLOCK_M as SOURCE_BLOCK,     
               yb2.BLOCK_M as END_BLOCK,  
               scn.CNTR_SIZE_Q,          
               count(scn.CNTR_SIZE_Q) AS cntr_qty          
        FROM  SHIFT_CMR scm, SHIFT_CNTR scn, YARD_BLOCK yb1, YARD_BLOCK yb2         
        WHERE         
        scm.cmr_n = scn.cmr_n               
        AND (scm.plan_start_dt BETWEEN to_date(:DateFrom,'YYYY/MM/DD HH24:MI:SS') AND to_date(:DateTo,'YYYY/MM/DD HH24:MI:SS')                   
        OR scm.plan_end_dt BETWEEN to_date(:DateFrom,'YYYY/MM/DD HH24:MI:SS') AND to_date(:DateTo,'YYYY/MM/DD HH24:MI:SS'))                   
        AND scm.shift_mode_c = :ShiftModeCode                             
        AND scm.end_terminal_c = :TerminalCode        
        AND scm.start_terminal_c = yb1.terminal_c                    
        AND scm.start_block_n = yb1.block_n                    
        AND substr(scn.start_location_c,(instr(scn.start_location_c,',',1,5)+1),instr(scn.start_location_c,',',1,6)-(instr(scn.start_location_c,',',1,5)+1)) BETWEEN yb1.slot_from_n AND yb1.slot_to_n                    
        AND scm.end_terminal_c = yb2.terminal_c                    
        AND scm.end_block_n = yb2.block_n                    
        AND substr(scn.end_location_c,(instr(scn.end_location_c,',',1,5)+1),instr(scn.end_location_c,',',1,6)-(instr(scn.end_location_c,',',1,5)+1)) BETWEEN yb2.slot_from_n AND yb2.slot_to_n             
        AND scn.status_c not in (1, 11)               
        AND scn.shift_type_c = 'V'               
        AND scn.source_c = 'S'         
        GROUP BY yb1.BLOCK_M, yb2.BLOCK_M, scn.CNTR_SIZE_Q         
    ) cntr_list         
    GROUP BY cntr_list.SOURCE_BLOCK, cntr_list.END_BLOCK
    3. I create a view link to create master-detail relationship for these 2 view objects.
    masterview.SourceBlock (1)->detailview.SourceBlock (*).
    4. I create a tree table using these 2 view objects with master-detail relationship.
    When I set default value for variable bindings of these 2 view objects and the matching records exist, tree table can work well. I can expand the master row to display detail row in UI.
    But I need to pass in dymamic parameter value for variable bindings of these 2 view objects, tree table cannnot work again. when I expand the master row and no detail row are displayed in UI.
    I am sure that I pass in correct parameter value for master/detail view objects and matching records exist.
    Managed Bean:
            DCIteratorBinding dc = (DCIteratorBinding)evaluteEL("#{bindings.MasterView1Iterator}");
            ViewObject vo = dc.getViewObject();
            System.out.println("Before MasterView1Iterator vo.getEstimatedRowCount()="+ vo.getEstimatedRowCount());
            System.out.println("Before MasterView1Iterator ShiftModeCode="+ vo.ensureVariableManager().getVariableValue("ShiftModeCode"));
            vo.ensureVariableManager().setVariableValue("DateFrom", dateFrom);
            vo.ensureVariableManager().setVariableValue("DateTo", dateTo);
            vo.ensureVariableManager().setVariableValue("ShiftModeCode", shiftModeC);
            vo.ensureVariableManager().setVariableValue("TerminalCode", terminalCode);
            vo.executeQuery();
            System.out.println("MasterView1Iterator vo.getEstimatedRowCount()="+ vo.getEstimatedRowCount());
            DCIteratorBinding dc1 = (DCIteratorBinding)evaluteEL("#{bindings.DetailView1Iterator}");
            ViewObject vo1 = dc1.getViewObject();
            System.out.println("Before DetailView1Iterator vo1.getEstimatedRowCount()="+ vo1.getEstimatedRowCount());
            System.out.println("Before DetailView1Iterator ShiftModeCode="+ vo1.ensureVariableManager().getVariableValue("ShiftModeCode"));
            vo1.ensureVariableManager().setVariableValue("DateFrom", dateFrom);
            vo1.ensureVariableManager().setVariableValue("DateTo", dateTo);
            vo1.ensureVariableManager().setVariableValue("ShiftModeCode", shiftModeC);
            vo1.ensureVariableManager().setVariableValue("TerminalCode", terminalCode);
            vo1.executeQuery();
            System.out.println("after DetailView1Iterator vo1.getEstimatedRowCount()="+ vo1.getEstimatedRowCount());
    5.  What's wrong in my implementation?  I don't have no problem to implement such a tree table if using simple master-detail tables view object, but now I have to use such 2 view objects using complex SQL for my requirement and variable bindings are necessary for detail view object although I also think a bit strange by myself.

    Hi Frank,
    Thank you and it can work.
    public void setLowHighSalaryRangeForDetailEmployeesAccessorViewObject(Number lowSalary,
                                                                              Number highSalary) {
            Row r = getCurrentRow();
            if (r != null) {
                RowSet rs = (RowSet)r.getAttribute("EmpView");
                if (rs != null) {
                    ViewObject accessorVO = rs.getViewObject();
                    accessorVO.setNamedWhereClauseParam("LowSalary", lowSalary);
                    accessorVO.setNamedWhereClauseParam("HighSalary", highSalary);
                executeQuery();
    but I have a quesiton in this way. in code snippet, it is first getting current row of current master VO to determine if update variables value of detail VO. in my case, current row is possibly null after executeQuery() of master VO and  I have to change current row manually like below.
    any idea?
                DCIteratorBinding dc = (DCIteratorBinding)ADFUtil.evaluateEL("#{bindings.SSForecastSourceBlockView1Iterator}");
                ViewObject vo = dc.getViewObject();           
                vo.ensureVariableManager().setVariableValue("DateFrom", dateFrom);
                vo.ensureVariableManager().setVariableValue("DateTo", dateTo);
                vo.ensureVariableManager().setVariableValue("ShiftModeCode", shiftModeC);
                vo.ensureVariableManager().setVariableValue("TerminalCode", terminalCode);
                vo.executeQuery();
                vo.setCurrentRowAtRangeIndex(0);
                ((SSForecastSourceBlockViewImpl)vo).synchornizeAccessorVOVariableValues();

  • Com.mysql.jdbc.PacketTooBigException when creating a DB Table resource

    Hellos.
    I am trying to add an Oracle Database Table resource to my IDM 6.0 system.
    On the the last screen of the wizard, when I save my details, I see this error in red:
    ==> com.mysql.jdbc.PacketTooBigException: Packet for query is too large (1340540 > 1048576). You can change this value on the server by setting the max_allowed_packet' variable.
    I have a mysql repository and use Tomcat 4.1 (on Windows).
    Questions...
    What file do I edit?
    Do I add this parameter.. if so what value do I use?
    Who else has seen this?
    thanks.. GF

    You need to change "my.ini" file for MySQL, usualy it is in windows folder.
    Change the value of 'max_allowed_packet' in my.ini file to some thing like 16M.
    I hope it helps..
    --Vipul                                                                                                                                                                                                                                                                                                                                                                           

Maybe you are looking for

  • Mass Approval of leave

    Hi All, I am santosh chauhan, responsible for a gamut of SAP functions. of late, i am faced with an error. Being an administrator, we are often reported a variety of leave problem wherein we come across one issue of Mass Approval of leave. Now this l

  • White macbook sound problem

    i have my mac hooked to my tv with HDMI i get everything but sound i thought HDMI has sound anyone no what problem may be

  • Export mac mail to outlook

    dear sir \madam                              we have mac note book which i want export mail to other system in outlook 2007,please help me i to do

  • Cs6 installing problems

    while i was intalling adobe cs6 there was a halt stoping at "installing adobe help" how to solve the problem please tell me.....

  • FX1 or DVX100B?

    I'm looking for a camcorder to shoot short films with. My price range is around $3000 and below and it seems the two cameras in this range folks pick are the Sony FX1 or Panasonic DVX100B. Hard to get a definitive choice between these two. I'll be ed