
Signature
- Nicholas Paldino [.NET/C# MVP]
- mvp@spam.guard.caspershouse.com
Both replies so far contain useful information on this topic; however they do
not really help me with my base question. Perhaps a specific example may
clarify. Let's say that I want to connect to AdventureWorks. I know that this
string works using Windows Authentication:
Data Source=.\SQLEXPRESS;Initial Catalog=AdventureWorks;Integrated
Security=True
Now let's say I create a new SQL user and want to change to SqlServer
authentication. So I add the "User ID" and "Password" attributes to the
connection string. Is that all it takes? Do I need to add other attributes?
Or remove the "Integrated Security" ...?
Marc Gravell - 14 May 2007 20:06 GMT
Add the username & password; remove the integrated security. Job done.
Marc
PhilipDaniels@foo.com - 15 May 2007 09:43 GMT
>Both replies so far contain useful information on this topic; however they do
>not really help me with my base question. Perhaps a specific example may
[quoted text clipped - 8 lines]
>connection string. Is that all it takes? Do I need to add other attributes?
>Or remove the "Integrated Security" ...?
There are so many variations of connection strings it is easy to
forget exactly what you need...I find the following resource helpful
http://carlprothman.net/Default.aspx?tabid=81
--
Philip Daniels
Walter Wang [MSFT] - 17 May 2007 13:10 GMT
Hi,
As other community members suggested, you will need to remove the
"Integrity Security" and add "User ID"/Password to make it use sqlserver
authentication.
Please feel free to let us know if there's still anything unclear. Thanks.
Regards,
Walter Wang (wawang@online.microsoft.com, remove 'online.')
Microsoft Online Community Support
==================================================
When responding to posts, please "Reply to Group" via your newsreader so
that others may learn and benefit from your issue.
==================================================
This posting is provided "AS IS" with no warranties, and confers no rights.