0

I'm new to asp.net programming and I'm trying to connect to the database using microsoft sql server. Is there any default connection string in accessing your database in mssql server through your aspx code behind?

1 Answer 1

1

A: There's really no such thing, there's too much variation.

You will have to make your own connection string. If the SQL Server is not located on the same machine where you are developing: http://www.connectionstrings.com/sql-server-native-client-10-0-oledb-provider/

Provider=SQLNCLI10;Server=myServerAddress;Database=myDataBase;Uid=myUsername; Pwd=myPassword;

If it is on your machine and you are using windows authentication (that is, if you log on to the server the same way you log on to your computer), see here Connection string using Windows Authentication

Sign up to request clarification or add additional context in comments.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.