nsForum logo

Welcome Guest ( Log In )

 
Reply to this topicStart new topic
> Need Help With Connection String, ASP >> MS SQL
Vein
post Oct 6 2009, 10:31 PM
Post #1





Group: Verified NS Member
Posts: 4
Joined: 6-October 09
Member No.: 5,518



I can't seem to get it to work at all. I'm using asp and I'm just trying to connect to a MS SQL via IP address. (Not sure if the database is located in a different location). But thats besides the point. My current string is: ConnectionString="Data Source=205.178.###.###,####;Network Library=DBMSSOCN;Initial Catalog=XXXX;User ID=XXXX;Password=XXXX;"

I'm just wanting asp to write a slected table. Is there a place I could get this information?

--- EDIT ----
<%
Dim oConn, oRs, oRsT
Dim qry, connectstr
Dim db_name, db_username, db_userpassword
Dim db_server

db_server = "SOMETHING/SOMETHING"
db_name = "DATABASE_NAME"
db_username = "USERNAMEFORDATABASE"
db_userpassword = "PASSWORDFORDATABASE"

connectstr = "Driver={SQL Server};SERVER=" & db_server & ";DATABASE=" & db_name & ";UID=" & db_username & ";PWD=" & db_userpassword
Set oConn = Server.CreateObject("ADODB.Connection")
oConn.Open connectstr
%>


Thanks Networksolutions, thumbs up on your phone support. (IMG:http://forums.networksolutions.com/style_emoticons/default/smile.gif)
Go to the top of the page
 
+Quote Post
Metxtli
post Nov 10 2009, 10:56 AM
Post #2





Group: Verified NS Member
Posts: 5
Joined: 26-October 09
Member No.: 5,931



QUOTE (Vein @ Oct 6 2009, 10:39 PM) *
I can't seem to get it to work at all. I'm using asp and I'm just trying to connect to a MS SQL via IP address. (Not sure if the database is located in a different location). But thats besides the point. My current string is: ConnectionString="Data Source=205.178.###.###,####;Network Library=DBMSSOCN;Initial Catalog=XXXX;User ID=XXXX;Password=XXXX;"

I'm just wanting asp to write a slected table. Is there a place I could get this information?



Visit: http://www.connectionstrings.com/
Go to the top of the page
 
+Quote Post
Vein
post Feb 5 2010, 11:40 PM
Post #3





Group: Verified NS Member
Posts: 4
Joined: 6-October 09
Member No.: 5,518



*Bump* Resolution.
Go to the top of the page
 
+Quote Post

Reply to this topicStart new topic
Tags
No Tag inserted yet

1 User(s) are reading this topic (1 Guests and 0 Anonymous Users)
0 Members:

 

RSS Lo-Fi Version    Network Solutions © 2010 Time is now: 22nd March 2010 - 12:52 AM
Domain Names | Web Hosting | Web Design | Shopping Cart Software | Online Marketing | SSL Certificates