Accu Web Hosting Accu Web Hosting Accuweb Hosting
Accu Web Hosting Accu Web Hosting Window Hosting Home Accu Web Hosting Window Hosting Accu Web Hosting PHP Hosting Accu Web Hosting Reseller Accu Web Hosting SQL Hosting Accu Web Hosting   accu web hosting
 

Go Back   Web Hosting Technical Support Discussion Forum > General Web Hosting Discussion Forum and Support > Windows Web Hosting Discussion Forum

Windows Web Hosting Discussion Forum Discussion Forum on Windows Web Hosting Related Support Issues. Discuss your Issues related to ASP.NET, MS SQL, ASP, DLL, Components, etc...

Reply
 
LinkBack Thread Tools
  #1 (permalink)  
Old 06-29-2006
Senior Member
 
Join Date: May 2005
Location: (.)
Age: 25
Posts: 144
Rep Power: 0
Manuel_ is on a distinguished road
Send a message via MSN to Manuel_
Default

For giving you perfect idea on how to work with DSN I am giving you full source code which you can use in your application but be sure that code is written for ASP.

To start coding using asp first of all you have to declare Scriplet tag which is the first line of ASP coding which you can see below

<%

set objcon=server.CreateObject("ADODB.Connection")

objcon.ConnectionTimeout=60

objcon.Open "DSN=dsnname"

Set RS2 = Server.CreateObject("Adodb.RecordSet")

rs2.ActiveConnection=objcon

rs2.LockType=1

rs2.CursorLocation=3

rs2.CursorType =1

query="select nm from Table"

rs2.open query

if rs2.recordcount > 0 then

do while not rs2.eof

Variable = rs2("fieldname")

response.Write(id)

rs2.movenext

loop

end if

rs2.close

‘Don’t forget to write below given lines

objcon.Close

Set objcon=Nothing

%>

__________________
Strat with Linux || Optimize, Secure and increase performance of Apache || Already Started
The visionary conceives the impossible, The missionary makes it possible. ...Gita.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Reply


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

Similar Threads
Thread Thread Starter Forum Replies Last Post
How can I get my site changed from asp.net 1.1 to 2.0? lelathrop Windows Web Hosting Discussion Forum 4 10-27-2006 11:11 AM
ASP.net medium trust level Manuel_ TroubleShooting 1 07-08-2006 02:06 AM
Get file size using ASP.net Manuel_ Windows Web Hosting Discussion Forum 0 06-30-2006 06:24 AM
How can I get my site changed from asp.net 1.1 to 2.0? nancy_accu Windows Web Hosting Discussion Forum 0 06-20-2006 03:56 PM
asp.net v.2.0 wlambrechts Windows Web Hosting Discussion Forum 2 07-11-2005 01:34 AM


All times are GMT -5. The time now is 08:40 PM.


Powered by vBulletin® Version 3.7.0
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Optimization by vBSEO 3.2.0 RC5
http://www.accuwebhosting.com/terms.htm

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31