473,321 Members | 1,667 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,321 software developers and data experts.

SQL Server 2005

OK, I have SQL2005/vs2005 and on my local machine I have SQL Express, so my
local connection string is like this. When i publish to the server, it of
course cannot find the instance for the server . I guess my question is

1.) Do I need an sql server on the server, I know this sounds like a dumb
question, but I was wondering if the providers could access it without as a
local database directly. I think the answer is no, but I thought I would
ask.

2.) If I need an sql server on the server, I do have one, so I could alter
the connection string so that the one on the server picks it up and then
just exclude the local web.config from the project so it doesent copy it
when publishing.

Any wisdom would be appreciated.

<connectionStrings>

<add name="MembersConnectionString1" connectionString="Data
Source=.\SQLEXPRESS;AttachDbFilename=|DataDirector y|\Members.mdf;Integrated
Security=True;User Instance=True"

providerName="System.Data.SqlClient" />

</connectionStrings>
Apr 21 '07 #1
2 1109
"Just Me" <news.microsoft.comwrote in message
news:uP**************@TK2MSFTNGP02.phx.gbl...
OK, I have SQL2005/vs2005 and on my local machine I have SQL Express, so
my local connection string is like this. When i publish to the server, it
of course cannot find the instance for the server . I guess my question is

1.) Do I need an sql server on the server, I know this sounds like a dumb
question, but I was wondering if the providers could access it without as
a local database directly. I think the answer is no, but I thought I would
ask.
If your web app uses SQL Server, your webserver will need to be able to
access the database one way or another - how you choose to architect that is
up to you...
2.) If I need an sql server on the server, I do have one, so I could alter
the connection string so that the one on the server picks it up and then
just exclude the local web.config from the project so it doesent copy it
when publishing.
Use Web Deployment Projects:
http://www.google.co.uk/search?sourc...oyment+Project

That will allow you to have separate sections in your web.config for
development, UAT, production etc
Apr 21 '07 #2
Many thanks Mark, your reply was helpful.
"Mark Rae" <ma**@markNOSPAMrae.netwrote in message
news:uS**************@TK2MSFTNGP04.phx.gbl...
"Just Me" <news.microsoft.comwrote in message
news:uP**************@TK2MSFTNGP02.phx.gbl...
>OK, I have SQL2005/vs2005 and on my local machine I have SQL Express, so
my local connection string is like this. When i publish to the server, it
of course cannot find the instance for the server . I guess my question
is

1.) Do I need an sql server on the server, I know this sounds like a dumb
question, but I was wondering if the providers could access it without as
a local database directly. I think the answer is no, but I thought I
would ask.

If your web app uses SQL Server, your webserver will need to be able to
access the database one way or another - how you choose to architect that
is up to you...
>2.) If I need an sql server on the server, I do have one, so I could
alter the connection string so that the one on the server picks it up and
then just exclude the local web.config from the project so it doesent
copy it when publishing.

Use Web Deployment Projects:
http://www.google.co.uk/search?sourc...oyment+Project

That will allow you to have separate sections in your web.config for
development, UAT, production etc

Apr 21 '07 #3

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

0
by: AlessanBar | last post by:
Hello Friends !! I have a strange problem, and I need to know what would be the source of this. I have a laptop computer with the following configuration: Pentium III Brand : Toshiba Speed :...
2
by: Kevin R | last post by:
I'm trying to get asp.net 1.1 running on my home PC. When I try creating a new ASP.NET Web Application in 'Visual Studio .NET 2003' I get the following error: "Visual Studio .NET has detected...
17
by: Danieltbt05 | last post by:
just installed SQL server 2000 and using my client , i can't locate the server. I used SQL query analyzer to search but no servers were found. Error message is as below Server : Msg17,level...
1
by: Peter | last post by:
I've purchased VS.NET 2005 Standard and have tried to install SQL Server 2005 Express, but get the following error in the error log. Please could someone help me.... Microsoft SQL Server 2005...
16
by: Jeremy S. | last post by:
I'm about to install VS.NET 2005 and SQL Server 2005 on a new/clean development machine (XP Pro/SP2 etc). Is the order of installation important (i.e., which product should I install first)? ...
10
by: amjad | last post by:
how to connection sql server table with aspx like pulling data from table to grid view.... simple example to start .... thanks
2
by: Jobs | last post by:
Download the JAVA , .NET and SQL Server interview with answers Download the JAVA , .NET and SQL Server interview sheet and rate yourself. This will help you judge yourself are you really worth of...
3
by: Steve | last post by:
Hi All I downloaded Sql server 2005 express SP2 and attempted to modify the Bootstrapper package files as I did with SP1 When i try to install SQL server as part of my VS 2005 deployment app I...
3
by: Lee T. Hawkins | last post by:
I am having a number of problems over the last two full days trying to get an ASP.NET 2.0 application to connect to a SQL Server 2005 database... First off, I built this application w/ Visual...
0
by: DolphinDB | last post by:
Tired of spending countless mintues downsampling your data? Look no further! In this article, you’ll learn how to efficiently downsample 6.48 billion high-frequency records to 61 million...
0
by: ryjfgjl | last post by:
ExcelToDatabase: batch import excel into database automatically...
0
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
0
by: Vimpel783 | last post by:
Hello! Guys, I found this code on the Internet, but I need to modify it a little. It works well, the problem is this: Data is sent from only one cell, in this case B5, but it is necessary that data...
0
by: jfyes | last post by:
As a hardware engineer, after seeing that CEIWEI recently released a new tool for Modbus RTU Over TCP/UDP filtering and monitoring, I actively went to its official website to take a look. It turned...
0
by: ArrayDB | last post by:
The error message I've encountered is; ERROR:root:Error generating model response: exception: access violation writing 0x0000000000005140, which seems to be indicative of an access violation...
1
by: Shællîpôpï 09 | last post by:
If u are using a keypad phone, how do u turn on JavaScript, to access features like WhatsApp, Facebook, Instagram....
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome former...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.