1

1

Hello, I'm looking for some simple, standard, connection string snippets for MS SQL and MySQL databases, and an explanation of what the variables mean.

Thanks.

Steve

flag

2 Answers

2

Check out ConnectionStrings.com for a huge collection of samples broken down by product and technology. The whole site is devoted to connecting to databases so I'm sure you'll find what you're looking for there.

link|flag
You're certainly right about that. Thanks. That site is amazing. – steveT Oct 1 at 2:30
0

Here are some standard connection strings using .NET.

.NET to SQL Server 2005

Server=myServerAddress;Database=myDataBase;User ID=myUsername;Password=myPassword;Trusted_Connection=False;

.NET to SQL Server 2005 Trusted

Data Source=myServerAddress;Initial Catalog=myDataBase;Integrated Security=SSPI;

.NET to MYSQL Connector (with port)

Server=myServerAddress;Port=3306;Database=myDataBase;Uid=myUsername;Pwd=myPassword
link|flag

Your Answer

Not the answer you're looking for? Browse other questions tagged or ask your own question.