-
ODBC/ASP/Server connection
I'm a newbie and am having problems writing the script to connect to our SQL
Server using ASP. I know its possible but I can't do it. Could there be
complications with ODBC? Any examples would be appreciated.
Thanks
-
Re: ODBC/ASP/Server connection
"Wayne" <writter@marketingproducts.com> wrote:
>
>I'm a newbie and am having problems writing the script to connect to our
SQL
>Server using ASP. I know its possible but I can't do it. Could there be
>complications with ODBC? Any examples would be appreciated.
>Thanks
Take a look at my code:
var SQLString;
var rs;
var SQLConn;
SQLConn = Server.createobject("ADODB.Connection");
SQLConn.open(Application("WebDSN"));
rs = Server.CreateObject("ADODB.RecordSet");
rs.CursorType=1;
rs.activeConnection=SQLConn;
SQLString = "Select * from TableName";
rs.source = SQLString;
rs.open();
hope this will help...
-
Re: ODBC/ASP/Server connection
"kendel" <datsg_2000@yahoo.com> wrote:
>
>"Wayne" <writter@marketingproducts.com> wrote:
>>
>>I'm a newbie and am having problems writing the script to connect to our
>SQL
>>Server using ASP. I know its possible but I can't do it. Could there
be
>>complications with ODBC? Any examples would be appreciated.
>>Thanks
>
>Take a look at my code:
>
>var SQLString;
>var rs;
>var SQLConn;
>
>SQLConn = Server.createobject("ADODB.Connection");
>SQLConn.open(Application("WebDSN"));
>
>rs = Server.CreateObject("ADODB.RecordSet");
>rs.CursorType=1;
>rs.activeConnection=SQLConn;
>
>SQLString = "Select * from TableName";
>
>rs.source = SQLString;
>rs.open();
>
>hope this will help...
>
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
|
Top DevX Stories
Easy Web Services with SQL Server 2005 HTTP Endpoints
JavaOne 2005: Java Platform Roadmap Focuses on Ease of Development, Sun Focuses on the "Free" in F.O.S.S.
Wed Yourself to UML with the Power of Associations
Microsoft to Add AJAX Capabilities to ASP.NET
IBM's Cloudscape Versus MySQL
|
Bookmarks