Solved

Using SQL 2005 database with asp

Posted on 2007-04-11
2
189 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
2 Comments
 
LVL 11

Accepted Solution

by:
dready earned 500 total points
ID: 18889274
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
ID: 18889720
Thank You
0

Featured Post

Get your Conversational Ransomware Defense e‑book

This e-book gives you an insight into the ransomware threat and reviews the fundamentals of top-notch ransomware preparedness and recovery. To help you protect yourself and your organization. The initial infection may be inevitable, so the best protection is to be fully prepared.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Have you ever needed to get an ASP script to wait for a while? I have, just to let something else happen. Or in my case, to allow other stuff to happen while I was murdering my MySQL database with an update. The Original Issue This was written…
In SQL Server, when rows are selected from a table, does it retrieve data in the order in which it is inserted?  Many believe this is the case. Let us try to examine for ourselves with an example. To get started, use the following script, wh…
Do you want to know how to make a graph with Microsoft Access? First, create a query with the data for the chart. Then make a blank form and add a chart control. This video also shows how to change what data is displayed on the graph as well as form…
Visualize your data even better in Access queries. Given a date and a value, this lesson shows how to compare that value with the previous value, calculate the difference, and display a circle if the value is the same, an up triangle if it increased…

623 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