Very strange SQLServer Connect Failed: 28000

More
4 years 6 months ago #21679 by Vassalli
Hi guy,
I'm experiencing a very strange SQLServer Connect Failed.
It's really strange because it happens in a loop.
The first time the loop is executed, there is nothing wrong and the SQL statement is processed, the second time it doesn't work.
You may see it in the picture below.


The error log states:
Failed To Connect SQLDriverConnect Failed: 28000 [Microsoft][ODBC SQL Server Driver][SQL Server]Login failed for user 'sa'.

You may check the log of the first step.
Moreover if the loop stops after a single step, the process is executed correctly.
Can you help me?
Pietro
Attachments:

Please Log in or Create an account to join the conversation.

More
4 years 6 months ago #21680 by admin
You might have a situation when the database password has the variable name inside

password = longcat1 and cat1 is variable name

So the first time it works fine but the second time cat1 is replaced with variable value therefore connection fails

Mike
ETL Architect

Please Log in or Create an account to join the conversation.

More
4 years 6 months ago #21683 by Vassalli
Hi Mike,
thank you for your quick response. I've been looking around and I've found out viewing variables that there is a Variable 1 whose value is 2.
At the very first loop step there is a Variable called modupdate that has a value of 1 and it's the only one having this particular value.
The next step appears this one.
It's not declared anywhere: can you give me some hints?
Thank you very much once again,
Pietro

Please Log in or Create an account to join the conversation.

More
4 years 6 months ago #21684 by admin
Maybe it is a global variable
/wiki/advanced-etl-processor/getting-started/options/?s[]=global

Please post some screenshots it is very difficult to provide support by guessing

Mike
ETL Architect

Please Log in or Create an account to join the conversation.

More
4 years 6 months ago #21685 by Vassalli
Thank you Mike,
here there are the screenshot of the package that I've created and of the objects inserted there.
Thank you! :)

Please Log in or Create an account to join the conversation.

More
4 years 6 months ago #21686 by admin
Very important thing to understand that
variables are replaced with actual values before execution

Variable value maupudatecreata is 1
SQL is;
select 'maupudatecreata', email from table
Again: variables are replaced with actual values before execution
The actual SQL executed
select '1', email from table
now you have variable '1' and it has some value
SQL server password is abc1dff
1 is replaced with a value
your connection fails

Please reset variables before the loop

Mike
ETL Architect
Attachments:
The following user(s) said Thank You: Vassalli

Please Log in or Create an account to join the conversation.

Cookies user preferences
We use cookies to ensure you to get the best experience on our website. If you decline the use of cookies, this website may not function as expected.
Accept all
Decline all
Read more
Marketing
Set of techniques which have for object the commercial strategy and in particular the market study.
Google
Accept
Decline
Analytics
Tools used to analyze the data to measure the effectiveness of a website and to understand how it works.
Google Analytics
Accept
Decline
Google Analytics
Accept
Decline
Functional
Tools used to give you more features when navigating on the website, this can include social sharing.
Advertisement
If you accept, the ads on the page will be adapted to your preferences.
Google Ad
Accept
Decline
Save