Please start any new threads on our new site at https://forums.sqlteam.com. We've got lots of great SQL Server experts to answer whatever question you can come up with.

 All Forums
 General SQL Server Forums
 New to SQL Server Programming
 ASP classic and SQL 2005?

Author  Topic 

erick
Starting Member

2 Posts

Posted - 2007-05-14 : 16:44:29
I want to know if it is possible to connect from classic ASP to a SQL 2005 database, and if so, can someone provide a sample connection string, I'm not sure if it is my connection string or server config. Thanks, Ed.

sshelper
Posting Yak Master

216 Posts

Posted - 2007-05-14 : 18:14:17
Check the following link to see the possible connection strings for SQL Server 2005:

http://www.connectionstrings.com/?carrier=sqlserver2005

SQL Server Helper
http://www.sql-server-helper.com
Go to Top of Page

erick
Starting Member

2 Posts

Posted - 2007-05-22 : 17:00:15
I have tried those connection strings without any luck, has anyone out there actually connected to SQL 2005 via a classic ASP web page? Is it even possible?
Go to Top of Page

toast31
Starting Member

3 Posts

Posted - 2007-05-22 : 17:35:53
yes, we use classic asp and sql 2005. The connection string looks like this...

<%
dim conn, SQLStringQWERTY
Set conn = Server.CreateObject("ADODB.Connection")
conn.Open("Provider=SQLOLEDB; Data Source=xxx.xxx.x.x,xxxxx; Initial Catalog=testdb; " & "User Id=xxxx; Password=xxxx;")
Dim day_no
day_no = 300
%>

xxxx's are representing proprietary information...
Go to Top of Page

Kristen
Test

22859 Posts

Posted - 2007-05-23 : 02:50:16
"Is it even possible?"

I'm a bit worried that you think it wouldn't be possible!

If you have a connection string to SQL 2000 in your Classic ASP application that should work, unchanged, with SQL 2005 (albeit that you may have to change the Data Source of course!)

Kristen
Go to Top of Page

pootle_flump

1064 Posts

Posted - 2007-05-23 : 07:48:38
You are using ado right?
Go to Top of Page
   

- Advertisement -