|
-
June 22nd, 2010, 02:58 PM
#1
Change ASP Connection String Access to SQL
Changing a connection string on Web Site.
They were using an Access connection to connect, and I want to substitute the SQL Server connection string. Just wanted to make sure I do it right.
This is the Acces Connection that I have:
Code:
Dim cn
Set cn=server.createobject("adodb.connection")
cn.ConnectionString = "Provider=Microsoft.Jet.OLEDB.4.0;Data Source=" & Server.MapPath("\") & "\data\kallenrs.mdb;"
cn.open
This is the SQL Connection that I want for LOCAL testing, and I can change that later:
Code:
Driver={SQL Server Native Client 10.0};Server=.\SQLEXPRESS; Database=tracking2010;Trusted_Connection=yes;
I'll use "Select fID as FileNumber, x as a, y as b, z as c" to keep the naming convention the same.
Thanks!
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|