<%

'Your connection here
set conn = server.createobject("ADODB.Connection")
conn.open "DSN=your-dsn; UID=sqldbuser; PWD=sqldbpass"
set rs = server.createobject("ADODB.recordset")

%>

Standard Security

Driver={SQL Native Client};Server=SQL-Server-Address;Database=your-sql-db;Uid=sqldbuser;Pwd=sqldbpass;

Visual Studio ASP.Net Connection String

<connectionStrings>
<add name="SampleConnectionString" connectionString="Data Source=sql-server;Initial Catalog=sql-database;User ID=dbuser;Password=dbpassword"
providerName="System.Data.SqlClient" />
</connectionStrings>

Esta resposta foi útil? 26 Utilizadores acharam útil (164 Votos)

Powered by WHMCompleteSolution