Solved

Using SQL 2005 database with asp

Posted on 2007-04-11
2
145 Views
Last Modified: 2010-03-19
Using SQL 2005

When using access.mbd with an asp website I usually create a database within the web site directory and then create a connection so that the pages can use the database.
I am wanting to use sql 2005 and I am not sure where the database should be placed or how and whether a connection is created.

Can anyone please offer some advice on this, I am finding it difficult to get this from the books I have.

Thanks
John
0
Comment
Question by:johnhardy
2 Comments
 
LVL 11

Accepted Solution

by:
dready earned 500 total points
Comment Utility
It doesnt matter where you put your sql server. It might be on the same server, or on another machine. You connect to the database using a connectionstring, something like:
connectionstring = "Server=myServer\myInstance;uid=sa;pwd=myPassword;database=myDB"

0
 

Author Comment

by:johnhardy
Comment Utility
Thank You
0

Featured Post

Threat Intelligence Starter Resources

Integrating threat intelligence can be challenging, and not all companies are ready. These resources can help you build awareness and prepare for defense.

Join & Write a Comment

So every once in a while at work I am asked to export data from one table and insert it into another on a different server.  I hate doing this.  There's so many different tables and data types.  Some column data needs quoted and some doesn't.  What …
Introduction: When running hybrid database environments, you often need to query some data from a remote db of any type, while being connected to your MS SQL Server database. Problems start when you try to combine that with some "user input" pass…
In this seventh video of the Xpdf series, we discuss and demonstrate the PDFfonts utility, which lists all the fonts used in a PDF file. It does this via a command line interface, making it suitable for use in programs, scripts, batch files — any pl…
Get a first impression of how PRTG looks and learn how it works.   This video is a short introduction to PRTG, as an initial overview or as a quick start for new PRTG users.

763 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

7 Experts available now in Live!

Get 1:1 Help Now