Well you see, the Import and Export wizard in its internals uses SSIS, and within that it uses an OLEDB connection. An as usual an OLEDB connection uses a connection string, and when the password is given in the connection string... all hell breaks lose (if I were to exaggerate a little). Why you ask? Because the connection string would now have an extra ';' in its midst:
Data Source=SERVERX;User ID=sa;Password=P@ssW0r;D;Initial Catalog=DBX
To correct this problem, I simply included double quotes at the beginning and at the end of the password in the password field of the wizard.
This worked like a charm, since the connection string in the internal workings of the wizard would now look something like this:
Data Source=SERVERX;User ID=sa;Password="P@ssW0r;D"Initial Catalog=DBX
Now, this got me thinking: "What if my password contained a semi-colon (;) and a double-quote (") ?"
Answer: I didn't want to find out.





0 comment(s):
Post a Comment