Simple setup of TM1 to connect to SQL Server?
Posted: Tue Apr 19, 2016 2:52 pm
I am guessing this question must have been asked before... but I did a search and saw plenty of threads, many about going the other way. I'm wanting to teach myself how to connect TM1 to a SQL Server database and pull something into a Cube via a Process. Seems like a simple request, right?
I have a database in SQL Server and a table. I have a TI Process where the Datasource Type is ODBC. From there I must admit I'm pretty stuck. I assume a Data Source Name will be required - say "myDB" - but I've so far spectacularly failed to properly create an ODBC Data Source via the ODBC Data Source Administrator, at least one that I can use... I started on the User DSN tab and pressed Add, I selected SQL Server Native Client 2011.110.2100.60 (I'm using SQL Server 2012 Express on my laptop, where TM1 is running) and gave it a name - "myDB", description and selected the only option from the which SQL Server to connect to drop-down... I let it use Windows authentication (as I'd gone for that as I installed SQL Server). On the next page I first left Change the default database unchecked and pressed Next, then Finish, but it failed on Test Data Source... saying:
"Attempting connection
[Microsoft][SQL Server Native Client 11.0]Named Pipes Provider: Could not open a connection to SQL Server [2].
[Microsoft][SQL Server Native Client 11.0]Login timeout expired
[Microsoft][SQL Server Native Client 11.0]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."
So I went back and tried to check the "change the default database" hoping I could select the database I knew I had, but it would not show me anything.
I thought that the Server is basically my machine's name, right? I can see that in Services - and I can see that the Start menu option in SQL Server Management Studio is greyed-out, implying that it's started. However, I went back and changed it to my machine name followed by "\SQLEXPRESS" and I then saw:
"Microsoft SQL Server Native Client Version 11.00.2100
Running connectivity tests...
Attempting connection
Connection established
Verifying option settings
Disconnecting from server
TESTS COMPLETED SUCCESSFULLY!"
Which is nice. It seems like I have an ODBC data source created! However, Architect still moans at me, saying "unable to open connection to database" when I double-click on the Process, even though the data source name is set... so I figured I would click on Browse and that returned "An error occurred while retrieving datasource names from the server"... so I'm guessing I've missed some important step? I did change the default database to "myDB".
Is there any asset or person out there that could spoon-feed me a little bit? I'm much more interested in getting using things out of SQL Server into TM1 than struggling with the plumbing!
I have a database in SQL Server and a table. I have a TI Process where the Datasource Type is ODBC. From there I must admit I'm pretty stuck. I assume a Data Source Name will be required - say "myDB" - but I've so far spectacularly failed to properly create an ODBC Data Source via the ODBC Data Source Administrator, at least one that I can use... I started on the User DSN tab and pressed Add, I selected SQL Server Native Client 2011.110.2100.60 (I'm using SQL Server 2012 Express on my laptop, where TM1 is running) and gave it a name - "myDB", description and selected the only option from the which SQL Server to connect to drop-down... I let it use Windows authentication (as I'd gone for that as I installed SQL Server). On the next page I first left Change the default database unchecked and pressed Next, then Finish, but it failed on Test Data Source... saying:
"Attempting connection
[Microsoft][SQL Server Native Client 11.0]Named Pipes Provider: Could not open a connection to SQL Server [2].
[Microsoft][SQL Server Native Client 11.0]Login timeout expired
[Microsoft][SQL Server Native Client 11.0]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."
So I went back and tried to check the "change the default database" hoping I could select the database I knew I had, but it would not show me anything.
I thought that the Server is basically my machine's name, right? I can see that in Services - and I can see that the Start menu option in SQL Server Management Studio is greyed-out, implying that it's started. However, I went back and changed it to my machine name followed by "\SQLEXPRESS" and I then saw:
"Microsoft SQL Server Native Client Version 11.00.2100
Running connectivity tests...
Attempting connection
Connection established
Verifying option settings
Disconnecting from server
TESTS COMPLETED SUCCESSFULLY!"
Which is nice. It seems like I have an ODBC data source created! However, Architect still moans at me, saying "unable to open connection to database" when I double-click on the Process, even though the data source name is set... so I figured I would click on Browse and that returned "An error occurred while retrieving datasource names from the server"... so I'm guessing I've missed some important step? I did change the default database to "myDB".
Is there any asset or person out there that could spoon-feed me a little bit? I'm much more interested in getting using things out of SQL Server into TM1 than struggling with the plumbing!