MSSQL 2000 COnnect,Retreive, Delete

Reply

Join Date: Aug 2008
Posts: 4
Reputation: Farismkhalid is an unknown quantity at this point 
Solved Threads: 0
Farismkhalid Farismkhalid is offline Offline
Newbie Poster

MSSQL 2000 COnnect,Retreive, Delete

 
0
  #1
Nov 24th, 2008
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.
  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.
Reply With Quote Quick reply to this message  
Join Date: Apr 2004
Posts: 167
Reputation: Drew is an unknown quantity at this point 
Solved Threads: 7
Drew's Avatar
Drew Drew is offline Offline
Junior Poster

Re: MSSQL 2000 COnnect,Retreive, Delete

 
0
  #2
Nov 27th, 2008
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
Drew Gauderman
ASP / MSSQL Coder
http://www.iportalx.net - My ASP Portal
Reply With Quote Quick reply to this message  
Reply

This thread is more than three months old.
Perhaps start a new thread instead?
Message:



Other Threads in the ASP Forum
Thread Tools Search this Thread



About Us | Contact Us | Advertise | DaniWeb | Acceptable Use Policy | RSS Feed

©2003 - 2009 DaniWeb® LLC