943,603 Members | Top Members by Rank

Ad:
  • ASP Discussion Thread
  • Unsolved
  • Views: 834
  • ASP RSS
Nov 24th, 2008
0

MSSQL 2000 COnnect,Retreive, Delete

Expand Post »
Hello, im a rookie
i would like to connect to a MSSQL2000 server
Retreive information
post it on the website
then detele it on a condition
please help i have compiled this so far.
asp Syntax (Toggle Plain Text)
  1. <%
  2. '* database server parameters
  3. Dim serverIP '* ip adress
  4. Dim serverPORT '* ip port
  5. Dim serverDB '* catalog/database name
  6. Dim serverLOGIN '* username
  7. Dim serverPASSWORD '* password
  8.  
  9. '* set your variables here
  10. serverIP = "192.168.100.1"
  11. serverPORT = "1433" '* default port is 1433/TCP
  12. serverDB = "Northwind"
  13. serverLOGIN = "login"
  14. serverPASSWORD = "pass"
  15.  
  16. '* open connection
  17. Dim con
  18. Set con = Server.CreateObject("ADODB.Connection")
  19. con.ConnectionString = "Provider=SQLOLEDB.1;" & _
  20. "Persist Security Info=False;" & _
  21. "Network Library=DBMSSOCN;" & _
  22. "Data Source=" & serverIP & "," & serverPORT & ";" & _
  23. "Initial Catalog=" & serverDB & ";" & _
  24. "User ID=" & serverLOGIN & ";" & _
  25. "Password=" & serverPASSWORD & ";" & _
  26. "Connect Timeout=5;Pooling=False"
  27. Call con.Open()
  28. %>
Last edited by peter_budo; Nov 28th, 2008 at 1:32 pm. Reason: Keep It Organized - For easy readability, always wrap programming code within posts in [code] (code blocks) and [icode] (inline code) tags.
Reputation Points: 10
Solved Threads: 0
Newbie Poster
Farismkhalid is offline Offline
4 posts
since Aug 2008
Nov 27th, 2008
0

Re: MSSQL 2000 COnnect,Retreive, Delete

So you want someone else to do all the work for you?

I suggest you take a look at all the tutorials on aspin.com or hotscripts.com
Reputation Points: 25
Solved Threads: 7
Junior Poster
Drew is offline Offline
166 posts
since Apr 2004

This thread is more than three months old

No one has posted to this discussion for at least three months. Please let old threads die and do not reply to them unless you feel you have something new and valuable to contribute that absolutely must be added to make the discussion complete. Otherwise, please start a new thread in this forum instead.
Message:
Previous Thread in ASP Forum Timeline: Previewing ASPX files in Dreamweaver 8
Next Thread in ASP Forum Timeline: Problem with resetting value in form!





About Us | Contact Us | Advertise | Acceptable Use Policy
Forum Index | Build Custom RSS Feed


Follow us on Twitter


© 2011 DaniWeb® LLC