Chnage connection string after moving database

re-configure database after moving

Hi marky101,
I would suggest you elaborate your scenario/environment/issue with more detail, so that the community members will help you in a effecient manner.
If you want to dynamic change the data connection string in your C# application, please take a look at the following article:
Dynamic Connection String:
http://www.codeproject.com/Articles/755380/Dynamic-Connection-String
If you have any concern regarding move a database from one server to another server, please see the article below:
Move a database from one server to another server in SQL Server 2008:
http://blogs.msdn.com/b/sreekarm/archive/2009/09/11/move-a-database-from-one-server-to-another-server-in-sql-server-2008.aspx
Elvis Long
TechNet Community Support

Similar Messages

  • After moving database, error on startup operations manager console

    Hello,
    may be someone can help me or give me a hint. I have moved the operational databas of SCOM 2012 to an other MSSQL-Server; from a SQL2008 Server to a SQL2012 Server.
    I used this document:
    http://technet.microsoft.com/en-us/library/hh278848.aspx
    After restarting the services i open the operations manager console, but it fails:
    Date: 28.08.2014 15:42:03
    Application: Operations Manager
    Application Version: 7.1.10226.0
    Severity: Error
    Message: Failed to connect to server 'name.foo.fodomain.de'
    Microsoft.EnterpriseManagement.Common.ServiceNotRunningException: The Data Access service is either not running or not yet initialized. Check the event log for more information. ---> System.ServiceModel.EndpointNotFoundException: Could not connect to net.tcp://name.foo.fodomain.de:5724/DispatcherService. The connection attempt lasted for a time span of 00:00:02.0060373. TCP error code 10061: No connection could be made because the target machine actively refused it 192.168.177.9:5724. ---> System.Net.Sockets.SocketException: No connection could be made because the target machine actively refused it 192.168.177.9:5724
    at System.Net.Sockets.Socket.DoConnect(EndPoint endPointSnapshot, SocketAddress socketAddress)
    at System.Net.Sockets.Socket.Connect(EndPoint remoteEP)
    at System.ServiceModel.Channels.SocketConnectionInitiator.Connect(Uri uri, TimeSpan timeout)
    --- End of inner exception stack trace ---
    Server stack trace:
    at System.ServiceModel.Channels.SocketConnectionInitiator.Connect(Uri uri, TimeSpan timeout)
    at System.ServiceModel.Channels.BufferedConnectionInitiator.Connect(Uri uri, TimeSpan timeout)
    at System.ServiceModel.Channels.ConnectionPoolHelper.EstablishConnection(TimeSpan timeout)
    at System.ServiceModel.Channels.ClientFramingDuplexSessionChannel.OnOpen(TimeSpan timeout)
    at System.ServiceModel.Channels.CommunicationObject.Open(TimeSpan timeout)
    at System.ServiceModel.Channels.CommunicationObject.Open(TimeSpan timeout)
    at System.ServiceModel.Channels.ServiceChannel.OnOpen(TimeSpan timeout)
    at System.ServiceModel.Channels.CommunicationObject.Open(TimeSpan timeout)
    at System.ServiceModel.Channels.ServiceChannel.CallOnceManager.CallOnce(TimeSpan timeout, CallOnceManager cascade)
    at System.ServiceModel.Channels.ServiceChannel.EnsureOpened(TimeSpan timeout)
    at System.ServiceModel.Channels.ServiceChannel.Call(String action, Boolean oneway, ProxyOperationRuntime operation, Object[] ins, Object[] outs, TimeSpan timeout)
    at System.ServiceModel.Channels.ServiceChannelProxy.InvokeService(IMethodCallMessage methodCall, ProxyOperationRuntime operation)
    at System.ServiceModel.Channels.ServiceChannelProxy.Invoke(IMessage message)
    Exception rethrown at [0]:
    at System.Runtime.Remoting.Proxies.RealProxy.HandleReturnMessage(IMessage reqMsg, IMessage retMsg)
    at System.Runtime.Remoting.Proxies.RealProxy.PrivateInvoke(MessageData& msgData, Int32 type)
    at Microsoft.EnterpriseManagement.Common.Internal.IDispatcherService.Connect(SdkClientConnectionOptions connectionOptions)
    at Microsoft.EnterpriseManagement.Common.Internal.SdkDataLayerProxyCore.Initialize(EnterpriseManagementConnectionSettings connectionSettings, SdkChannelObject`1 channelObjectDispatcherService)
    at Microsoft.EnterpriseManagement.Common.Internal.SdkDataLayerProxyCore.CreateEndpoint[T](EnterpriseManagementConnectionSettings connectionSettings, SdkChannelObject`1 channelObjectDispatcherService)
    --- End of inner exception stack trace ---
    at Microsoft.EnterpriseManagement.Common.Internal.ExceptionHandlers.HandleChannelExceptions(Exception ex)
    at Microsoft.EnterpriseManagement.Common.Internal.SdkDataLayerProxyCore.CreateEndpoint[T](EnterpriseManagementConnectionSettings connectionSettings, SdkChannelObject`1 channelObjectDispatcherService)
    at Microsoft.EnterpriseManagement.Common.Internal.SdkDataLayerProxyCore.ConstructEnterpriseManagementGroupInternal[T,P](EnterpriseManagementConnectionSettings connectionSettings, ClientDataAccessCore clientCallback)
    at Microsoft.EnterpriseManagement.Common.Internal.SdkDataLayerProxyCore.RetrieveEnterpriseManagementGroupInternal[T,P](EnterpriseManagementConnectionSettings connectionSettings, ClientDataAccessCore callbackDispatcherService)
    at Microsoft.EnterpriseManagement.Common.Internal.SdkDataLayerProxyCore.Connect[T,P](EnterpriseManagementConnectionSettings connectionSettings, ClientDataAccessCore callbackDispatcherService)
    at Microsoft.EnterpriseManagement.ManagementGroup.InternalInitialize(EnterpriseManagementConnectionSettings connectionSettings, ManagementGroupInternal internals)
    at Microsoft.EnterpriseManagement.Mom.Internal.UI.Common.ManagementGroupSessionManager.Connect(String server)
    at Microsoft.EnterpriseManagement.Monitoring.Console.Internal.ConsoleWindowBase.TryConnectToManagementGroupJob(Object sender, ConsoleJobEventArgs args)
    System.ServiceModel.EndpointNotFoundException: Could not connect to net.tcp://name.foo.fodomain.de:5724/DispatcherService. The connection attempt lasted for a time span of 00:00:02.0060373. TCP error code 10061: No connection could be made because the target machine actively refused it 192.168.177.9:5724. ---> System.Net.Sockets.SocketException: No connection could be made because the target machine actively refused it 192.168.177.9:5724
    at System.Net.Sockets.Socket.DoConnect(EndPoint endPointSnapshot, SocketAddress socketAddress)
    at System.Net.Sockets.Socket.Connect(EndPoint remoteEP)
    at System.ServiceModel.Channels.SocketConnectionInitiator.Connect(Uri uri, TimeSpan timeout)
    --- End of inner exception stack trace ---
    Server stack trace:
    at System.ServiceModel.Channels.SocketConnectionInitiator.Connect(Uri uri, TimeSpan timeout)
    at System.ServiceModel.Channels.BufferedConnectionInitiator.Connect(Uri uri, TimeSpan timeout)
    at System.ServiceModel.Channels.ConnectionPoolHelper.EstablishConnection(TimeSpan timeout)
    at System.ServiceModel.Channels.ClientFramingDuplexSessionChannel.OnOpen(TimeSpan timeout)
    at System.ServiceModel.Channels.CommunicationObject.Open(TimeSpan timeout)
    at System.ServiceModel.Channels.CommunicationObject.Open(TimeSpan timeout)
    at System.ServiceModel.Channels.ServiceChannel.OnOpen(TimeSpan timeout)
    at System.ServiceModel.Channels.CommunicationObject.Open(TimeSpan timeout)
    at System.ServiceModel.Channels.ServiceChannel.CallOnceManager.CallOnce(TimeSpan timeout, CallOnceManager cascade)
    at System.ServiceModel.Channels.ServiceChannel.EnsureOpened(TimeSpan timeout)
    at System.ServiceModel.Channels.ServiceChannel.Call(String action, Boolean oneway, ProxyOperationRuntime operation, Object[] ins, Object[] outs, TimeSpan timeout)
    at System.ServiceModel.Channels.ServiceChannelProxy.InvokeService(IMethodCallMessage methodCall, ProxyOperationRuntime operation)
    at System.ServiceModel.Channels.ServiceChannelProxy.Invoke(IMessage message)
    Exception rethrown at [0]:
    at System.Runtime.Remoting.Proxies.RealProxy.HandleReturnMessage(IMessage reqMsg, IMessage retMsg)
    at System.Runtime.Remoting.Proxies.RealProxy.PrivateInvoke(MessageData& msgData, Int32 type)
    at Microsoft.EnterpriseManagement.Common.Internal.IDispatcherService.Connect(SdkClientConnectionOptions connectionOptions)
    at Microsoft.EnterpriseManagement.Common.Internal.SdkDataLayerProxyCore.Initialize(EnterpriseManagementConnectionSettings connectionSettings, SdkChannelObject`1 channelObjectDispatcherService)
    at Microsoft.EnterpriseManagement.Common.Internal.SdkDataLayerProxyCore.CreateEndpoint[T](EnterpriseManagementConnectionSettings connectionSettings, SdkChannelObject`1 channelObjectDispatcherService)
    System.Net.Sockets.SocketException (0x80004005): No connection could be made because the target machine actively refused it 192.168.177.9:5724
    at System.Net.Sockets.Socket.DoConnect(EndPoint endPointSnapshot, SocketAddress socketAddress)
    at System.Net.Sockets.Socket.Connect(EndPoint remoteEP)
    at System.ServiceModel.Channels.SocketConnectionInitiator.Connect(Uri uri, TimeSpan timeout)
    My databaseadmin told me, that all is ok, the operations management server queries the new sql server, then close the connection. So we started again the old database server, there are still queries to this server.
    What i've done:
    - Changing the database servers name in the registry, Microsoft Operations Manager, 3.0, Setup, DatabaseServerName
    - changing the database entry at the file ConfigService.confg
    After my databaseadmin told me, that there are queries at the old database server, i searched in the registry and found two entries:
    - System Center
     Common
      Database
       DatabaseServerName
    - System Center Ooperations Manager
     12
      Reporting
       DWDBInstance
     .. i have still this error, no connection possible.
    What testing i can do?
    Kind regards
    Wolfgang

    You have to update the DB server names in the databases as well. Here are the instructions for SCOM07, I suspect it's similar in SCOM12
    Update the OperationsManager database with the New Database Server Name, and ensure that the account that you are logged on with has sufficient privileges on the SQL Server instance.
    Open SQL Server Management Studio.
    Expand
    Databases, OperationsManager, and Tables.
    Right-click
    dbo.MT_ManagementGroup, and then click Open Table if you are using SQL Server 2005 or click
    Edit Top 200 Rows if you are using SQL Server 2008.
    Change the value in the
    SQLServerName_6B1D1BE8_EBB4_B425_08DC_2385C5930B04 column to reflect the name of the new SQL Server-based computer.
    Save your change
    Configure the Operations Manager database with the name of the new Data Warehouse server as follows:
    On the server that hosts the Operations Manager database, open SQL Server
    Management Studio and navigate to Databases, OperationsManager, and then to
    Tables.
    Right-click
    dbo.MT_DataWarehouse, and then select Open Table if you are using SQL Server 2005 or select
    Edit Top 200 Rows if you are using SQL Server 2008.
    Change the value in the
    MainDatabaseServerName_16781F33_F72D_033C_1DF4_65A2AFF32CA3 column to the name of the new Data Warehouse server.
    Close SQL Server Management Studio to save your changes.
    "Fear disturbs your concentration"

  • How get connection string of default database of CreateUserWizard control

    hi,
    i am creating website in which I add create user wizard control, I want to restrict user to use one email id only for one time,
    but after creating and testing,I get that it allow same email id more than one time, for that I search lot and get this on msdn library,  they show that to change config file
    <configuration>
    <connectionStrings>
    <add name="MySqlConnection" connectionString="Data
    Source=MySqlServer;Initial Catalog=aspnetdb;Integrated
    Security=SSPI;" />
    </connectionStrings>
    <system.web>
    <membership defaultProvider="SqlProvider" userIsOnlineTimeWindow="15">
    <providers>
    <clear />
    <add
    name="SqlProvider"
    type="System.Web.Security.SqlMembershipProvider"
    connectionStringName="MySqlConnection"
    applicationName="MyApplication"
    enablePasswordRetrieval="false"
    enablePasswordReset="true"
    requiresQuestionAndAnswer="true"
    requiresUniqueEmail="true"
    passwordFormat="Hashed" />
    </providers>
    </membership>
    </system.web>
    </configuration>
    but,I didn't figure out any database in vs2010 that store data of create user wizard, mean i don't know how to access it in from vs2010
    site is working fine, it add new user , allow me login, but where the database???
    I want connection string of it's
    mandar26

    Hello Mandar26,
    The question should be asked on http://forums.asp.net/ Please reopen a new case there for help.
    Regards,
    Barry
    We are trying to better understand customer views on social support experience, so your participation in this interview project would be greatly appreciated if you have time. Thanks for helping make community forums a great place.
    Click
    HERE to participate the survey.

  • Powershell use Connection String to query Database and write to Excel

    Right now I have a powershell script that uses ODBC to query SQL Server 2008 / 2012 database and write to EXCEL
    $excel = New-Object -Com Excel.Application
    $excel.Visible = $True
    $wb = $Excel.Workbooks.Add()
    $ws = $wb.Worksheets.Item(1)
    $ws.name = "GUP Download Activity"
    $qt = $ws.QueryTables.Add("ODBC;DSN=$DSN;UID=$username;PWD=$password", $ws.Range("A1"), $SQL_Statement)
    if ($qt.Refresh()){
    $ws.Activate()
    $ws.Select()
    $excel.Rows.Item(1).HorizontalAlignment = $xlCenter
    $excel.Rows.Item(1).VerticalAlignment = $xlTop
    $excel.Rows.Item("1:1").Font.Name = "Calibri"
    $excel.Rows.Item("1:1").Font.Size = 11
    $excel.Rows.Item("1:1").Font.Bold = $true
    $filename = "D:\Script\Reports\Status_$a.xlsx"
    if (test-path $filename ) { rm $filename }
    $wb.SaveAs($filename, $xlOpenXMLWorkbook) #save as an XML Workbook (xslx)
    $wb.Saved = $True #flag it as being saved
    $wb.Close() #close the document
    $Excel.Quit() #and the instance of Excel
    $wb = $Null #set all variables that point to Excel objects to null
    $ws = $Null #makes sure Excel deflates
    $Excel=$Null #let the air out
    I would like to use connection string to query the database and write results to EXCEL, i.e.
    $SQL_Statement = "SELECT ..."
    $conn = New-Object System.Data.SqlClient.SqlConnection
    $conn.ConnectionString = "Server=10.10.10.10;Initial Catalog=mydatabase;User Id=$username;Password=$password;"
    $conn.Open()
    $cmd = New-Object System.Data.SqlClient.SqlCommand($SQL_Statement,$conn)
    do{
    try{
    $rdr = $cmd.ExecuteReader()
    while ($rdr.read()){
    $sql_output += ,@($rdr.GetValue(0), $rdr.GetValue(1))
    $transactionComplete = $true
    catch{
    $transactionComplete = $false
    }until ($transactionComplete)
    $conn.Close()
    How would I read the columns and data for $sql_output into an EXCEL worksheet. Where do I find these tutorials?

    Hi Q.P.Waverly,
    If you mean to export the data in $sql_output to excel document, please try to format the output with psobject:
    $sql_output=@()
    do{
    try{
    $rdr = $cmd.ExecuteReader()
    while ($rdr.read()){
    $sql_output+=New-Object PSObject -Property @{data1 = $rdr.GetValue(0);data2 =$rdr.GetValue(1)}
    $transactionComplete = $true
    catch{
    $transactionComplete = $false
    }until ($transactionComplete)
    $conn.Close()
    Then please try to use the cmdlet "Export-Csv" to export the data to excel like:
    $sql_output | Export-Csv d:\data.csv
    Or you can export to worksheet like:
    $excel = New-Object -ComObject Excel.Application
    $excel.Visible = $true
    $workbook = $excel.Workbooks.Add()
    $sheet = $workbook.ActiveSheet
    $counter = 0
    $sql_output | ForEach-Object {
    $counter++
    $sheet.cells.Item($counter,1) = $_.data1$sheet.cells.Item($counter,2) = $_.data2}
    Refer to:
    PowerShell and Excel: Fast, Safe, and Reliable
    If there is anything else regarding this issue, please feel free to post back.
    Best Regards,
    Anna Wang

  • Connection String to Local Database Problem

    I just copied a database on the development server which I am not owner of, but I have rights to the database. I copied it to my local server. Now I need to connect to the local database and I don't know how.
    Dim MM_cnnName_STRING
    MM_cnnName_STRING = "Provider=SQLOLEDB.1;Password=xxx;Persist Security Info=True;User ID=xxx;Initial Catalog=DBName;Data Source=DevComputerName"
    The above is what I used to connect to the development server. How can I figure out the string for my local MS SQL Server

    Now I have this error once I try to bring up a page that calls the db
    Microsoft OLE DB Provider for SQL Server error  '80004005'
    Login failed. The login is from an untrusted domain  and cannot be used with Windows authentication.
    /CourseList.asp, line  9

  • Errors after moving databases in SCOM 2012

    I have recently moved both the Operational DB and the DataWarehouse DB from the original server to a SQL cluster. Following the guides below worked and SCOM is up and running, at least some sort of success. The problem is that it seems SCOM is trying to
    contact the Operational DB on the original server even after the move.
    The only events showing up in the log after the moving is 29112 and 21023
    29112
    OpsMgr Management Configuration Service failed to execute bootstrap work item 'ConfigurationStoreInitializeWorkItem' due to the following exception
    System.Data.SqlClient.SqlException (0x80131904): Cannot open database "OperationsManager" requested by the login. The login failed.
    Login failed for user 'DOMAIN\Action Account'.
       at System.Data.ProviderBase.DbConnectionPool.GetConnection(DbConnection owningObject)
       at System.Data.ProviderBase.DbConnectionFactory.GetConnection(DbConnection owningConnection)
       at System.Data.ProviderBase.DbConnectionClosed.OpenConnection(DbConnection outerConnection, DbConnectionFactory connectionFactory)
       at System.Data.SqlClient.SqlConnection.Open()
       at Microsoft.EnterpriseManagement.ManagementConfiguration.DataAccessLayer.ConnectionManagementOperation.Execute()
       at Microsoft.EnterpriseManagement.ManagementConfiguration.DataAccessLayer.DataAccessOperation.ExecuteSynchronously(Int32 timeoutSeconds, WaitHandle stopWaitHandle)
       at Microsoft.EnterpriseManagement.ManagementConfiguration.SqlConfigurationStore.ConfigurationStore.ExecuteOperationSynchronously(IDataAccessConnectedOperation operation, String operationName)
       at Microsoft.EnterpriseManagement.ManagementConfiguration.SqlConfigurationStore.ConfigurationStore.Initialize()
       at Microsoft.EnterpriseManagement.ManagementConfiguration.Engine.ConfigurationStoreInitializeWorkItem.ExecuteWorkItem()
       at Microsoft.EnterpriseManagement.ManagementConfiguration.Interop.ConfigServiceEngineWorkItem.Execute()
    21023
    OpsMgr has no configuration for management group SCOMVIRIDIS and is requesting new configuration from the Configuration Service.
    Anyone who has seen this issue before? The guides were easy to follow and i can see som 31554 and similar events after restarting the Services but soon it goes back to just logging 29112 and 21023 in the event log.
    The links that i followed is listed below;
    Operational Database: http://technet.microsoft.com/en-us/library/hh278848.aspx
    DataWarehouse Database: http://technet.microsoft.com/en-us/library/hh268492.aspx
    I´m greatful for any help!
    Thanks,
    Daniel
    IT Consultant at Viridis IT

    Problem solved.
    I have been in contact with MS Support who solved the issue. What was wrong?
    It seems the documentation misses an important piece. In http://technet.microsoft.com/en-us/library/hh278848.aspx under 7. there is one more value that should be edited. Under the category named "ConfigStore", make sure the "ServerName" is pointing
    at the new SQL Server, otherwise the MS wont be able to receive configuration from the Operational DB.
    I think the documentation will be updated with this information but I want to share this if anyone else faces the same issue.
    /Daniel
    IT Consultant at Viridis IT
    Thx Daniel, 
    I had the exact same issue.
    In addition to what you have suggested I also had to make sure that the new SQL server is registered with only its name - without the Instance name.
    I have installed the new instance on the default MSSQLSERVER on the new SQL server.
    I have documented all the procedure in my blog - including the changes you have suggested, if someone needs it its here:
    Move SCOM 2012 Database to another server
    yuryk

  • Connecting printer after moving

    We recently moved and I can't seem to get my HP 5520 wireless printer hooked up.  Unfortunatly I deleted it from my laptop and I can't find the directions that came with the computer.  I have Windows 8.1.  Is there a way to hook this up or would it just be better to purchase a new printer?

    Hi jam48 ,
    Welcome to the HP Forums.
    I see that you are having an issue with connecting the printer on a wireless connection.
    On the front display of the printer, press the Wrench icon that is in the top right corner.  This will take you to the Setup Menu.  From here, use the right arrow key and navigate to the Wireless setup menu and scroll down until you see Restore Network Defaults.  Do the Restore.  Once you have the Restore completed, go back to the top of the Wireless menu and go through the Wireless Setup Wizard.
    The printer will then be connected to the network.
    Write me back and let me know how you make out.
    Cheers,  
    Click the “Kudos Thumbs Up" at the bottom of this post to say “Thanks” for helping!
    Please click “Accept as Solution ” if you feel my post solved your issue, it will help others find the solution.
    W a t e r b o y 71
    I work on behalf of HP

  • Database connection string

    how to find database connection string after instllation of Oracle 10g application server .
    any queries we have no documents.

    its ok i got it
    <my machine>:1521:databasename.
    ignore this.

  • Connection string fails in CS3

    Please tell me how to correct the following connection string
    to my database found at
    www.lazardev.com/homepage/cosmatic/database/cosmaticdb.mdb.
    The sting I'm using is
    "Provider=Microsoft.Jet.OLEDB.4.0;data
    source=www.lazardev.com/homepage/cosmatic/database/cosmaticdb.mdb"
    I'm using Dreamweaver CS3.
    Cliff

    This works in an IIS server:
    "Provider=Microsoft.Jet.OLEDB.4.0;Data
    Source=D:\Inetpub\wwwroot\001145\ylac611b\HomePage\Cosmatic\ASP\cosmaticdb.mdb"
    1. Type part exactly, including the double quote :
    "Provider=Microsoft.Jet.OLEDB.4.0;Data
    Source=D:\Inetpub\wwwroot
    2. Get this part from your ISP:
    \001145\ylac611b
    the first six numbers are the host computer
    the second six characters replace your domain
    3. The last part is the path after your domain name:
    \HomePage\Cosmatic\ASP\cosmaticdb.mdb"
    Include the double quote.
    Ask your ISP if your are in an IIS system.

  • Securely sending connection string to swf?

    ok so when i need to connect a swf to some sort of data
    source on the server be it XML, a .NET DLL, a CFC or what ever so
    that i can load data from a database or what ever, everyone is
    always saying that i shouldn't hard code the connection string into
    my actionscript as anyone can get it and do malicious things with
    it.
    So how should i load the connection string into flash. if i
    put them on the server in an XML file or somthing like that then i
    still need to put a connection string into the actionscript in
    order to load in my main connection strings into the actionscript.
    Basically i need to know how to load an external string into
    a swf without anyone else being able to get hold of that string for
    them selves.
    i realy need help with this because i am developing an app
    for somone and i need it to connect to a database and i need it to
    be secure. i have everything sorted except making the connection
    string to the database unstealable.

    Why aren't you just using regular form submissions to send
    data and regular string data or xml to load data?
    I don't think you can hide anything from the user. I think
    you have to handle security serverside and the client only gets to
    see his own user/pass and whatever data you send to him.

  • How to build a connection string if "Only variable names (i.e.: $variable) may be used as the target of an assignment statement."

    im looping through databases on a server & building  a connection string to each database.
    $SQLConn.ConnectionString = "Server=$SrvName; Database=$DBName; User ID =DBLogin; Password=myPassword;"
    The problem is i get this error:
    Only variable names (i.e.: $variable) may be used as the target of an assignment statement
    I can put the code into an Inlinescript, but then I lose the ability to perform paralellism. Is there any way to construct the connection string in PS Workflow without using an Inlinescript?

    Hi Winston,
    Why not just wrap the InlineScript blocks in a Parallel block, to cause them to execute in parallel?
    For example:
    workflow foo {
    parallel {
    inlinescript {
    start-sleep -Seconds (Get-Random -Minimum 1 -maximum 5)
    "a"
    inlinescript {
    start-sleep -Seconds (Get-Random -Minimum 1 -maximum 5)
    "b"
    Sometimes outputs "a b" and sometimes outputs "b a"

  • After moving datastores, default folders were created again +1

    Hello,
    After moving all mailboxes from one datastore to another (Move space around) everyone's default folders got recreated (Except Inbox). So now everyone has, Contacts1, Calendar1, Tasks1, ect... The original folder still exists, however the folder class was
    deleted, so each folder is classified as a message folder. I'm assuming this happened, because the folder class was lost, so exchange recreated the default folders with the correct classes.
    I ran a power shell script and re-classified all the old default folders back to how they're supposed to be, however smart devices are only pulling information from those recreated default folders, among other issues. Since business was being lost, i went
    through each mailbox and moved everything from contacts into contacts 1 and so on.
    My question is, why did this happen, and more importantly, how do I get back to the original state? I cannot rename the default folders but I am able to delete the originals. I am open to any suggestion to get back to the original state.
    I've tried other 3rd party apps to rename the folders such as mfcmapi, but I get errors.
    edit: I'm running exchange 2013 on Windows server 2012 R2
    Thanks in advance,
    Kevin

    Hi,
    This issue usually caused by mailbox language settings after moving databases.
    Please try to Close Outlook completely. Then run the following command:
    outlook.exe /resetfoldernames
    That should reset the folder names. If this didn’t work, please refer to the Script for renaming Mailbox Default Foldernames back to original language in the following thread.
    https://social.technet.microsoft.com/Forums/exchange/en-US/e767b141-ea56-424f-8e3e-09f776c71b46/newmailboximportrequest-mailbox-folders-in-different-languages-after-import?forum=exchange2010
    Hope this will be helpful for you.

  • How should load sensitive connection strings

    ok so when i need to connect a swf to some sort of data
    source on the server be it XML, a .NET DLL, a CFC or what ever so
    that i can load data from a database or what ever, everyone is
    always saying that i shouldn't hard code the connection string into
    my actionscript as anyone can get it and do malicious things with
    it.
    So how should i load the connection string into flash. if i
    put them on the server in an XML file or somthing like that then i
    still need to put a connection string into the actionscript in
    order to load in my main connection strings into the actionscript.
    Basically i need to know how to load an external string into
    a swf without anyone else being able to get hold of that string for
    them selves.
    i realy need help with this because i am developing an app
    for somone and i need it to connect to a database and i need it to
    be secure. i have everything sorted except making the connection
    string to the database unstealable.

    Hi
    1. The "GLOBAL.ASA" in ASP3 become "GLOBAL.ASAX" on ASP.Net and it is not the equivalent of web.config. ASP3 do not have an equivalent as this is dynamic tech and By default there is no precompile/compile action as in Dot.Net
     2. You can just move a text file which include the connection string outside the site's folder as we used to do 15 years ago when we used Microsoft Access as a database (When we need small database, before the SQL EXPRESS). This way there is no direct
    URL to get to file!
    * There are several option of restrict the use of a file in ASP3 and in the IIS configuration. check if this is what you want (restrict the use of a specific file/folder) 
    3. robot.txt is only for searching engine which keep "nice behavior". it do not stop any application including search engine from getting the file.
    Have fun :-)
    [Personal Site] [Blog] [Facebook]

  • I run Dev 6i on Windows 2008 R2 64-bit,the forms are working fine after connection to the database but the reports continue to request for username, password and database connection string every time i try to open a report.

    I receive REP-0501: Unable to connect to specified database. I run developer 6i application on windows 2008 r2. I have applied the nn60.dll and nnb60.dll files to the \BIN directory. The forms are working fine. The reports will only display after the correct user id (username, password and database connection string) is supplied. This is happening to all attempts to open already complied form. Pls, help.

    If you are connecting to an Oracle 11g database, remember that by default the passwords are case sensitive. To disable that, run
    ALTER SYSTEM SET SEC_CASE_SENSITIVE_LOGON = FALSE;

  • Error "no connect to database " after moving group to second node.

    hi experts,
    I set up ERP2005 SR1 and MSSQL2005 with two nodes MSCS.
    I am facing error "no connect to database session terminated mscs" from SAP GUI
    after moving group to second node.
    Now SPS level and kernel patch level has been not updated yet.
    I counld'nt find any sap notes, so any help and suggestion could be appreciated.
    Best Regards
    MASAKI

    solved myself . i was missing set SQL Service Account have Local Admnistrators.

Maybe you are looking for

  • My IPhone 3G will not load the home screen...

    Hi    I am having an issue with my phone. I can't get the home screen to load. I get the Apple Logo screen then it disappears and I get the black screen with a spinning beachball/gear ( like it's trying to load). A couple of days ago I had my phone i

  • XML and E4x help please

    var xml:XML=<data> <nodes>           <node>                     <title>First title</title>                     <category>good thing</category>                     <category>fuzzy</category>           </node>           <node>                     <titl

  • Transfer elements 8 to new iMac

    While attempting to transfer my Elements 8 program from a 2006 iMac to my new 2013 Mac, it looks like the new one will not run elements 8. Can this be true? Do I have to buy a new version of Elements, or is there a way to transfer my program?

  • PO warning message

    Hi. When I first time change the PO delivery date and press enter without save the PO, system will display warning message base on SAP calendar setting. Let say 1st, 2nd and 3rd September 2008 is already set as non working day and 4th September 2008

  • New SID doesnt work

    Hi I have configured oracle 9i with few oracle instances.Now i wanted to create a new instance via command line.I added those entries in tnsnames.ora ,listener.ora and oratab . But when i try to start the SID with respective of it's listener , i am g