I have an evaluation application that I am trying to configer to use SQL server instead of the built in Access database.
I have created and set up all the tables and fields on the SQL server, but cannot get the database functionality to connect and work correctly.
The string this is used for the Access DB is as follows:
' Connect the database
Set Conn = Server.CreateObject("ADODB.Connection")
Conn.Provider = "Microsoft.Jet.OLEDB.4.0"
Set OpenDB = Conn
For SQL server, the string is usually very different, like:
Conn = "Provider=SQLOLEDB.1;Persist Security Info=False;User ID=username;pwd=password;Initial Catalog=MyDatabse;Data Source=ServerName"
How and where can I make changes to this string, so that I can get things to work with SQL Server, rather than with Access?