how can connect the database

Please support our ASP.NET advertiser: Intel Parallel Studio Home
Reply

Join Date: Jan 2008
Posts: 1
Reputation: snifer is an unknown quantity at this point 
Solved Threads: 0
snifer snifer is offline Offline
Newbie Poster

how can connect the database

 
0
  #1
Jan 22nd, 2008
hi friends,
i had a problem when connecting the database to the asp.net. My database is SQL server 2005
Reply With Quote Quick reply to this message  
Join Date: Apr 2005
Posts: 1
Reputation: Bombdrop is an unknown quantity at this point 
Solved Threads: 0
Bombdrop Bombdrop is offline Offline
Newbie Poster

Re: how can connect the database

 
0
  #2
Jan 22nd, 2008
the following site shows connection string for all manor of DB's Connectionstrings.com/
Reply With Quote Quick reply to this message  
Join Date: Nov 2007
Posts: 2,641
Reputation: Jx_Man is a glorious beacon of light Jx_Man is a glorious beacon of light Jx_Man is a glorious beacon of light Jx_Man is a glorious beacon of light Jx_Man is a glorious beacon of light Jx_Man is a glorious beacon of light 
Solved Threads: 245
Jx_Man's Avatar
Jx_Man Jx_Man is offline Offline
Posting Maven

Re: how can connect the database

 
0
  #3
Jan 22nd, 2008
this following code to connect asp.net with sqlserver
  1. Imports System.Data
  2. Imports System.Data.SqlClient
  3.  
  4. Module ConnectionDB
  5. Public conn As New SqlConnection("Server = j3rry;" & "initial Catalog = PP60;" & " Trusted_Connection=yes")
  6. End Module
Never tried = Never Know
So, Please do something before post your thread.
* PM Asking will be ignored *
Reply With Quote Quick reply to this message  
Join Date: Dec 2007
Posts: 291
Reputation: ericstenson is an unknown quantity at this point 
Solved Threads: 29
Team Colleague
ericstenson's Avatar
ericstenson ericstenson is offline Offline
Posting Whiz in Training

Re: how can connect the database

 
0
  #4
Jan 22nd, 2008
... try using the New SQL Datasource option to make sure your creds are good.
--
"Dummy."
Reply With Quote Quick reply to this message  
Join Date: Feb 2003
Posts: 793
Reputation: Paladine has a spectacular aura about Paladine has a spectacular aura about Paladine has a spectacular aura about 
Solved Threads: 26
Team Colleague
Paladine's Avatar
Paladine Paladine is offline Offline
Master Poster

Re: how can connect the database

 
0
  #5
Jan 22nd, 2008
You could also place this "connection" in a Web.config file, for security purposes...

And to be sure... what version of ASP.NET are you speaking of? .Net 1.0, 1.1, 2.0, 3.0 ?

2.0 Tutorial: http://aspnet.4guysfromrolla.com/articles/110905-1.aspx
Last edited by Paladine; Jan 22nd, 2008 at 10:46 pm. Reason: Adding URL
Assistant Manager, Pharmacy Informatics
Wordpress Learning Blog
Updated : ASP.Net Login Code
Reply With Quote Quick reply to this message  
Reply

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


Thread Tools Search this Thread



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

©2003 - 2009 DaniWeb® LLC