Quantcast
Channel: SQL Server Integration Services forum
Viewing all articles
Browse latest Browse all 24688

script component connection maanager

$
0
0

I am using a script component as a data source.<o:p></o:p>

I have set up the Connection Manager and used the following script:<o:p></o:p>

        conn = new MySqlConnection( Connections.Connection.ConnectionString.ToString());
        command = conn.CreateCommand();
        command.CommandText = "SELECT ID FROM asiarooms.bestdeals_categories";
        conn.Open();
        reader = command.ExecuteReader();<o:p></o:p>

When I run the package an error occurs.<o:p></o:p>

"Access denied for user 'xxxx' (using password: NO)...."<o:p></o:p>

I know that the connection manager credentials are correct since it is being used successfully in other places.<o:p></o:p>

Can anybody help?<o:p></o:p>



Mr Shaw


Viewing all articles
Browse latest Browse all 24688

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>