One Star

Connection with MS SQL Server component ???

Hello
I have installed SQL Server 2005 in localhost on my computer. I've tried to parameter an Db Connections but Talend can not initiate the connection with SQL Server.
Also, when I define an connection with odbc, I made it working with a dynamic port, and I can insert data on the database with the generic components.
I saw that odbc can not be connect with SQL Server if i define the port with the default value 1433.
I need to use the MS SQL Server component for some option like create table, so does someone can help me to set the good parameter for SQL Server 2005.
Thank you
Tibal

26 REPLIES
Community Manager

Re: Connection with MS SQL Server component ???

Hello
Which version of TOS are you using? What's your error message?
Best regards

shong
----------------------------------------------------------
Talend | Data Agility for Modern Business
One Star Krp
One Star

Re: Connection with MS SQL Server component ???

You should check your settings in SQL Server Configuration Manager. Maybe the port 1433 is not active.
Four Stars

Re: Connection with MS SQL Server component ???

I use SQL Server 2005 without a problem and without the need for ODBC. Check the configuration settings in the SQL Server Connection Manager, make sure the TCP/IP protocol is enabled and check the Client Protocols > TCP/IP > Default Port.

- Brian
One Star

Re: Connection with MS SQL Server component ???

Hi All,
I am using talend open studio but when i create the MS SQL Server connection then talend gives me
error "host name is not found". My sql server 2005 name is : "SSS\SQLEXPRESS" and when i
filled this name in host name so error is coming "Connection failure. You must change the Database Settings.
Unknown server host name 'SSS\SQLEXPRESS'.
".
plz solve my issue .
Thanks,
SSS
Email : syed2uk@gmail.com
Four Stars

Re: Connection with MS SQL Server component ???

One Star

Re: Connection with MS SQL Server component ???

I am having this same problem: TOS attempts to connect, and the error message is "java.sql.SQLException:Network Error IOException: connection refused: connect". I have validated the SQL Server configuration and the connect string appears to be correct. I have attempted to connect with both tMSSqlConnection (for which I can't find any documentation) and Metadata/Db Connections/Create Connection. Is this stuff documented anywhere?
One Star

Re: Connection with MS SQL Server component ???

Hi,
I'm not sure if you are still struggling with this.
In my case I discovered I had to use SQL Login Authentication (as opposed to Windows Authentication).
So here's my steps:
1. Create/Make sure I had a valid SQL Login with Log permissions on SQLServer and enough permission on the Dabatase I was trying to connect to.
2. Make sure that SQL Server was configure to accept Windows and SQL Server authentication
3. Test connecting to you Server/Database using the login you provided.
4. Then use same credentials/details on the Talend DI Connection Window.
Good luck guys,
I'm still a newbie on talend
One Star

Re: Connection with MS SQL Server component ???

Hi Bruno
Have you gotten some errors?
Regards,
Pedro
One Star

Re: Connection with MS SQL Server component ???

Hi its Ibran,
can anyone tell how to connect to mssql from talend i am getting
impossible to initialize the connection error please please help me..
my database settings in talend are
DB Type - Microsoft SQL Server
login - myusername
password - mypassword
server - localhost
port - 1433
database - myDatabaseName
schema - (blank)
Additional parameters - instance=SQLEXPRESS
and in sql server i have enable the tcp/ip port and default port is 1433
One Star

Re: Connection with MS SQL Server component ???

Hi Ibran
Welcome to Talend Community!
Please create a new topic next time. Smiley Happy
Did you encounter any issue about MSSQL connection?
We need more info.
Regards,
Pedro
One Star

Re: Connection with MS SQL Server component ???

Hi Ibran
Welcome to Talend Community!
Please create a new topic next time. Smiley Happy
Did you encounter any issue about MSSQL connection?
We need more info.
Regards,
Pedro

Hi
I am new to this talend please tell me how to connect to the mssql from talend and
i am able to connect to the mysql but with mssql its giving error impossible to initialize the connection.
One Star

Re: Connection with MS SQL Server component ???

Hi
Please show us the error info. Or upload a screen shot.
Regards,
Pedro
One Star

Re: Connection with MS SQL Server component ???

Hi
Please show us the error info. Or upload a screen shot.
Regards,
Pedro

hi,
i am getting this error
impossible to initialize the connection
One Star

Re: Connection with MS SQL Server component ???

Hi
Please show us the error info. Or upload a screen shot.
Regards,
Pedro

now i am connecting to the MsSql with general JDBC as DB Type
and i am getting this error now
Connection failure. You must change the Database Settings.
com.microsoft.sqlserver.jdbc.SQLServerException: The TCP/IP connection to the host locahost, port 1433 has failed. Error: "null. Verify the connection properties, check that an instance of SQL Server is running on the host and accepting TCP/IP connections at the port, and that no firewall is blocking TCP connections to the port.".
One Star

Re: Connection with MS SQL Server component ???

Hi
The error indicates that some settings like host or port is not correct.
Or go to SQL Server Configuration Manager to see whether TCP/IP has started.
Regards,
Pedro
One Star

Re: Connection with MS SQL Server component ???

Hi
The error indicates that some settings like host or port is not correct.
Or go to SQL Server Configuration Manager to see whether TCP/IP has started.
Regards,
Pedro

Thanks for your reply,
can you send me what should be the configuration in SQL Server.
One Star

Re: Connection with MS SQL Server component ???

Hi
Which version of TOS do you use?
Here is my SQL Server settings.
Regards,
Pedro
One Star

Re: Connection with MS SQL Server component ???

Hi
Which version of TOS do you use?
Here is my SQL Server settings.
Regards,
Pedro

this is Microsoft SQL Server Settings, I want general JDBC Settings .
and i am using TOS 5.1.1 version.
One Star

Re: Connection with MS SQL Server component ???

Hi
Which version of TOS do you use?
Here is my SQL Server settings.
Regards,
Pedro

i have tried your settings now i am getting this error
Connection failure. You must change the Database Settings.
java.lang.ClassCastException: net.sourceforge.jtds.jdbc.ConnectionJDBC3 cannot be cast to net.sourceforge.jtds.jdbc.ConnectionJDBC2
One Star

Re: Connection with MS SQL Server component ???

Hi
The JDBC url of SQL Server is like "jdbc:microsoft:sqlserver://localhost:1433;DatabaseName=pubs".
For driver jar and class name, you can find it on Google.
Besides, it seems to be a bug when you are using Microsoft SQL Server DB type.
Regards,
Pedro
One Star

Re: Connection with MS SQL Server component ???

Hi
The JDBC url of SQL Server is like "jdbc:microsoft:sqlserver://localhost:1433;DatabaseName=pubs".
For driver jar and class name, you can find it on Google.
Besides, it seems to be a bug when you are using Microsoft SQL Server DB type.
Regards,
Pedro

Hi,
thank you for your response now i am able to connect to the mssql from talend with General JDBC as a DB Type.
but when i changed the DB Type to Microsoft SQL Server i am getting this error can you help for this also,
Connection failure. You must change the Database Settings.
java.lang.ClassCastException: net.sourceforge.jtds.jdbc.ConnectionJDBC3 cannot be cast to net.sourceforge.jtds.jdbc.ConnectionJDBC2
Thank you.
One Star

Re: Connection with MS SQL Server component ???

Hi
The JDBC url of SQL Server is like "jdbc:microsoft:sqlserver://localhost:1433;DatabaseName=pubs".
For driver jar and class name, you can find it on Google.
Besides, it seems to be a bug when you are using Microsoft SQL Server DB type.
Regards,
Pedro

Hi,
thank you for your response now i am able to connect to the mssql from talend with General JDBC as a DB Type.
but when i changed the DB Type to Microsoft SQL Server i am getting this error can you help for this also,
Connection failure. You must change the Database Settings.
java.lang.ClassCastException: net.sourceforge.jtds.jdbc.ConnectionJDBC3 cannot be cast to net.sourceforge.jtds.jdbc.ConnectionJDBC2
Thank you.

please give me some suggestion for this above error.
One Star

Re: Connection with MS SQL Server component ???

Hi
I told you yesterday it seemed to be a bug...
But then you said it was OK and you fixed it...
If you still get this exception, please report it on BugTracker.
PS: Do not add the URL of this forum. Just describe the issue on BugTracker.
Regards,
Pedro
One Star

Re: Connection with MS SQL Server component ???

hi,
I Ibran now i am trying to run talend job from JAVA, I am successfully running the talend job from JAVA, but
can any one tell me how to pass parameter from java class to the talend this is very important in my project please help me out of it.
One Star

Re: Connection with MS SQL Server component ???

Ibram,
Start a new thread for this.
One Star

Re: Connection with MS SQL Server component ???

I can't create a Database creation using Talend. I want to use MS SQL server 2008r2  as a my database. when try create the connection in the  DatabaseConnection under MetaData tree like this
my SQL server name is ARUNRAJ-PC\SQLEXPRESS I found all detail given are right but when click Check button it shows the connection error.Please help me to resolve this by example.
Thanks
Arunraj