codetoad.com
  ASP Shopping CartForum & BBS
  - all for $20 from CodeToad Plus!
  
  Home || ASP | ASP.Net | C++/C# | DHTML | HTML | Java | Javascript | Perl | VB | XML || CodeToad Plus! || Forums || RAM 
Search Site:
Search Forums:
  how to connect asp.net to sql server 2000  guyver at 07:02 on Wednesday, August 09, 2006
 

hi everybody im a newbie in asp.net my current programming is vb/sql2k. im looking for a code that can connect asp.net application to my sqlserver2k. i have a problem with the connection because my sqlserver2k is installed on other machine and my web server is installed in my local pc with my .net framework. how im going supposed to do that, please please help me, to all experts.

  Re: how to connect asp.net to sql server 2000  timmy123 at 04:38 on Thursday, August 10, 2006
 

Hi,

Dim myCon As Sqlonnection=New SqlConnection("Data Source=SYS1;Integrated Security=SSPI;Initial Catalog=FinAccounting")

The Data Source:

The datasource is the location of the database or database server.
For example, if your database server is on the same machine as your development environment, you could use the name localhost. If the database is remote, we must provide the name of the database server .Here, The SYS1 is the Database Server name(Where SQL Server is installed).

Security Information:

The Integrity Security setting is to specify that the connection is secure. SSPI is essentially a buffer between your application and various security protocols used by data and service providers, such as databases or web servers. If integrated security is not supported, the connection must indicate a valid user and password combination. For a newly installed SQLServer database, the sa(system administrator) account is present without a password.

Regards
bhar
http://www.vkinfotek.com






  Re: how to connect asp.net to sql server 2000  guyver at 00:24 on Monday, August 14, 2006
 

thanks timmy123, i got to try this one i hope it will work in my pc. see you soon

  Re: how to connect asp.net to sql server 2000  amery buck at 05:58 on Monday, April 05, 2010
 

Ground shaking content i get form your blog. Very nice post about sql server 2000. Thanks for your beneficial information about testking 646-985, testking 70-270 and testking 70-271 certifications. These are the best certifications in the world.








CodeToad Experts

Can't find the answer?
Our Site experts are answering questions for free in the CodeToad forums








Recent Forum Threads
•  Re: MS Access connection in JSP
•  Re: execute linux commands in perl script
•  Re: Server Name or Address could not be resolved?
•  Re: is null or not an object error
•  Re: Using Crystal Reports for generating dynamic reports in JAVA
•  Re: how to connect asp.net to sql server 2000
•  Re: Dissolve effect for images using Javascript!
•  Re: convert minutes into hours and minutes
•  how to write asp.net code to post the question to create a forum?


Recent Articles
ASP GetTempName
Decode and Encode UTF-8
ASP GetFile
ASP FolderExists
ASP FileExists
ASP OpenTextFile
ASP FilesystemObject
ASP CreateFolder
ASP CreateTextFile
Javascript Get Selected Text


© Copyright codetoad.com 2001-2010