ads-error 0x745 on twincat database server configuration - database

I am trying to set a "MS SQL server" using "twincat database server configuration", and always get the following error: "ADS error 0x745: Timeout elapsed"
In the picture attach is the configuration settings I'm using, what am I doing wrong?

Related

SSIS OLEDB Connection Manager - Unable to connect to a database (No database names appear)

I am trying to create a connection manager in Microsoft SQL Server Data Tools for Visual Studio 2017 (SSDT) for an integration services project.
In the Connection Manager:
The Provider is set to: Native OLE DB\SQL Server Naive Client 11.0
The Server name is set to: the name of the local machine
Log on to the server is set to: Windows Authentication
Connect to a database is set to: Select or enter a database name. However no database names appear in the drop down box - the drop down box is blank. I am expecting the name of the database i am working on, including the master database etc to be present.
When I Test Connection, I get an error message which says:
'Test connection failed because of an error in initializing provider. Login timeout expired
A network-related or instance-specific error has occurred while establishing a connection to SQL Server. Server is not found or not accessible. Check if instance name is correct and if SQL Server is configured to allow remote connections. For more information see SQL Server Books Online.
Named Pipes Provider: Could not open a connection to SQL Server [2]..'
I am using SQL Server 2017 and Microsoft SQL Server Management Studio 18.
Allow remote connections has been ticked in SSMS.
The only thing i can see is the SQL Server Agent and SQL Server Browser has stopped / is not running and the TCP/IP Protocols for SQLEXPRESS is set to disabled - I am unable to enable it without a further Access is denied (0x80070005) error.
I have tried to follow all of the guides but cannot progress. Could somebody please offer some further guidance?
I have resolved the issue. It was an extremely silly oversight! On installation, the server name in the Visual Studio 17 Connection Manager was listed as: Local MachineName only. In SQL Server, the Server Name was listed as: LocalMachineName\SQLEXPRESS. The Server Name in VS17 has to be exactly the same as SQL Server. As i said, this is a very silly oversight on my part but have documented for future reference.
SQL Server Configuration Manager ==> SQL Server Services(Left sidebar) ==> Right Click and Start all Stopped services

why does ssis transfer object stage return smo failure

I am trying to copy a database using SSIS Transfer SQL Server Objects Task.
[Transfer SQL Server Objects Task] Error: Execution failed with the following error: "An exception occurred in SMO.".
[Transfer SQL Server Objects Task] Error: Execution failed with the following error: "Value cannot be null.
Parameter name: server".
I hit test connection and prove that I have the right server name and password.
My guess is bug was introduced with 2017 version of SSDT. To fix you need to down level the project from 2017 to 2016 using these steps:
right click on the name of your project in the "Solution Explorer".
go to the "properties" menu
in the opened window titled "Deployment Property Pages", within the left-hand menu, drill down the "Configuration Properties" to the "General" attribute
you'll see a tab titled "Deployment Target Version" on the right pane on the menu, there - choose "SQL Server 2016"
click "OK" and agree to all later refactoring request and you're done.
I found out that if I am running the package locally from Visual Studio (VS), then I get the same error.
My workaround is:
Setup the SMO connection server as <my-server-name> in VS
Deploy it to the server from VS
Test-run it from the server itself (find the package in Integration Services Catalog > SSISDB, right-click and select 'Execute...')
<my-server-name> is the name of your server, could also be 'localhost'
For some reason VS does not get the server name, although I inserted it in the SMO connection. But running the package on the server itself, seems to have worked.

How do I create a new SQL database in Visual Studio 2015 for the first time?

I'm very confused, when I try to create a new database in Visual Studio 2015 when I right-click --> Add new item --> SQL Server Database, I get an error saying "A network-related or instance-specific error occurred while establishing a connection to SQL Server." I think this means I don't have the SQL Server running, which is correct.
But when I try to start the SQL Server, it gives me the error "Windows could not start the SQL Server (SQLEXPRESS) on Local Computer) (Error code 17113). The event viewer gives me this error "Error 3(The system cannot find the path specified.) occurred while opening file 'C:\Program Files (x86)\Microsoft SQL Server\MSSQL12.SQLEXPRESS\MSSQL\DATA\master.mdf' to obtain configuration information at startup. An invalid startup option might have caused the error. Verify your startup options, and correct or remove them if necessary." which I believe means that it won't start because there is no database.
So how am I supposed to create a database on a running SQL server when the SQL server won't run unless it has a database?
I don't know if this is relevant but I created it as an ASP.NET empty web site.

SQL Server Express 2012 Error: Cannot connect to Local DB

I have installed Sql Express 2012 version. I installed Local Db separately. i can see its installed when I click on "Installed Sql Server discovery report". However, I cannot connect to it using Sql Server Management Studio or Microsoft Visual Studio 2012 Professional Edition. I get the error:
"The attempt to attach to the database failed with the following
information: A network-related or instance-specific error occurred
while establishing a connection to SQL Server. The server was not
found or was not accessible. Verify that the instance name is correct
and that SQL Server is configured to allow remote connections.
(provider: SQL Network Interfaces, error: 50 - Local Database Runtime
error occurred. Cannot create an automatic instance. See the Windows
Application event log for error details."
In Windows Event viewer I see several of following errors with different regsistry keys each time:
"The DataDirectory registry value is missing in the LocalDb instance registry key:{-----}"
I checked in regsitry values for local db in HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\MicrosoftSQL Server Local DB and there's only one entry "Installed Version".
I have gone through several posts which state solution for the above error and have done almost everything they have suggested but still can't get localDb to work.
I'd appreciate any help that one can provide in order to solve this issue.
UPDATE:
Using Command Line Interface I verified that localDb v11.0 is installed. However, the command sqlLocalDb info v11.0 gives error:"The automatic instance "v11.0" is not created. If I try to create one it gives another error:"Unexpected error occured inside a localDb instance API method call."
You may try to use SQL Server Authentication. Also make sure that your SQL service is running.
Also you may try to delete the following registry:
HKEY_USERS\.DEFAULT\Software\Microsoft\Microsoft SQL Server\UserInstances\[GUID_FROM_EVENT_LOG]
You may also check Getting Started with SQL Server 2012 Express LocalDB
You need to start the SQL service for the local system.
Start Button
Write "SQL Server Configuration Manager" and click on it
After opening "SQL Server Configuration Manager" you need to start the local system services which are may be stopped in it that why your local Database not connected.
After starting local services you just connect the local system database. It should connected successfully.

Unable to connect to the database engine using SQL Server management studio

I installed SQLManagementStudio_x64_ENU from Microsoft site on my Windows 7 Home Premium.
It gave me compatibility warnings but I still installed because Microsoft site specified that I would receive warnings but suggested to click on Run Program, which I did.
It was successfully installed. I checked Services.msc, and I can see two SQL Server services are running. I checked SQL Server Configuration, and I can see services running under automatic mode, and the agent is off.
When I open my management studio and try to connect using "Server name" option, I can't see any server instance in browse option. There are no servers to connect. I am not able to connect to the database engine. I have tried at least 10 times, but still, it's not allowing me to connect.
I get the following error:
A network-related or instance-specific error occurred while establishing a
connectionto SQL Server. The server was not found or was not accessible.
Verify that the instance name is correct and that SQL Server is configured to
allow remote connections.
(provider: Named Pipes Provider, error: 40 - Could not open a connection
to SQL Server) (.Net SqlClient Data Provider)
Can someone help me with this problem?
In the Connect to server dialog of the SQL Server Management Studio (SSMS), type <your machine name>\SQLServer2008 to connect to SQLServer2008 instance. Otherwise, type <your machine name> alone in the server name text box to connect to the default instance SQLExpress.
Following link discusses how to fix the error Microsoft.SqlServer.Management.Dmf.PolicyStore
SSMS 2008 on Windows 7 throws exception when connecting Object Explorer

Resources