473,385 Members | 1,922 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,385 software developers and data experts.

Deploying a SQL Server App

If I have created my Web Application on my PC using command and connection
objects (dragging them onto the forms from the Server Explorer window) how do
I make it work when I deploy the application (and presumably the dB) to the
Host server? The connection objects all refer to my PC not the server the app
will eventually end up on?

I guess my question is general. Where do I find out how to deploy a SQL
Server/ASP.NET app to a server.....?

Thanks
Nov 19 '05 #1
6 1274
Put your connection strings and other settings in the web.config and then
when the app is deployed you only have one place to change it.
Nov 19 '05 #2
Skully:

Instread of using connection strings that are hard coded into your source
code, try placing them into the web.config file and reading them at run time.
When you deploy to a new server you'll just need to tweak web.config with
the right connection string.

there are ways to encrypt the string if you need the security boost.

There is some discussion here:
http://msdn.microsoft.com/library/de...redentials.asp

--
Scott
http://www.OdeToCode.com/blogs/scott/
If I have created my Web Application on my PC using command and
connection objects (dragging them onto the forms from the Server
Explorer window) how do I make it work when I deploy the application
(and presumably the dB) to the Host server? The connection objects all
refer to my PC not the server the app will eventually end up on?

I guess my question is general. Where do I find out how to deploy a
SQL Server/ASP.NET app to a server.....?

Thanks

Nov 19 '05 #3
Thanks Scott,
One more question. To deploy the database which database files do I put on
the server and where do I put them?

"Scott Allen" wrote:
Skully:

Instread of using connection strings that are hard coded into your source
code, try placing them into the web.config file and reading them at run time.
When you deploy to a new server you'll just need to tweak web.config with
the right connection string.

there are ways to encrypt the string if you need the security boost.

There is some discussion here:
http://msdn.microsoft.com/library/de...redentials.asp

--
Scott
http://www.OdeToCode.com/blogs/scott/
If I have created my Web Application on my PC using command and
connection objects (dragging them onto the forms from the Server
Explorer window) how do I make it work when I deploy the application
(and presumably the dB) to the Host server? The connection objects all
refer to my PC not the server the app will eventually end up on?

I guess my question is general. Where do I find out how to deploy a
SQL Server/ASP.NET app to a server.....?

Thanks


Nov 19 '05 #4
Generally you don't want to deploy the database files per se (although SQL
2005 should make this easy). You could copy all the .mdf and .ldf files from
one server to another and use a script or enterprise manager to 'attach'
the database to the server.

The usual appraoch is to generate SQL scripts to recreate the tables and
any data needed then execute those scripts on the destination server. You
can generate scripts through SQL Server's enterprise manger.

Making sense?

--
Scott
http://www.OdeToCode.com/blogs/scott/
Thanks Scott,
One more question. To deploy the database which database files do I
put on
the server and where do I put them?
"Scott Allen" wrote:
Skully:

Instread of using connection strings that are hard coded into your
source code, try placing them into the web.config file and reading
them at run time. When you deploy to a new server you'll just need to
tweak web.config with the right connection string.

there are ways to encrypt the string if you need the security boost.

There is some discussion here:
http://msdn.microsoft.com/library/de...ary/en-us/vbco
n/html/vbtskaccessingsqlserverwithexplicitcredentials.asp
--
Scott
http://www.OdeToCode.com/blogs/scott/
If I have created my Web Application on my PC using command and
connection objects (dragging them onto the forms from the Server
Explorer window) how do I make it work when I deploy the application
(and presumably the dB) to the Host server? The connection objects
all refer to my PC not the server the app will eventually end up on?

I guess my question is general. Where do I find out how to deploy a
SQL Server/ASP.NET app to a server.....?

Thanks

Nov 19 '05 #5
Thanks Scott,
Not sure I understand what you mean by "attach".
Once the scripts are generated, how do i execute them on the server if my
only view of it is through an ftp program?

"Scott Allen" wrote:
Generally you don't want to deploy the database files per se (although SQL
2005 should make this easy). You could copy all the .mdf and .ldf files from
one server to another and use a script or enterprise manager to 'attach'
the database to the server.

The usual appraoch is to generate SQL scripts to recreate the tables and
any data needed then execute those scripts on the destination server. You
can generate scripts through SQL Server's enterprise manger.

Making sense?

--
Scott
http://www.OdeToCode.com/blogs/scott/
Thanks Scott,
One more question. To deploy the database which database files do I
put on
the server and where do I put them?
"Scott Allen" wrote:
Skully:

Instread of using connection strings that are hard coded into your
source code, try placing them into the web.config file and reading
them at run time. When you deploy to a new server you'll just need to
tweak web.config with the right connection string.

there are ways to encrypt the string if you need the security boost.

There is some discussion here:
http://msdn.microsoft.com/library/de...ary/en-us/vbco
n/html/vbtskaccessingsqlserverwithexplicitcredentials.asp
--
Scott
http://www.OdeToCode.com/blogs/scott/
If I have created my Web Application on my PC using command and
connection objects (dragging them onto the forms from the Server
Explorer window) how do I make it work when I deploy the application
(and presumably the dB) to the Host server? The connection objects
all refer to my PC not the server the app will eventually end up on?

I guess my question is general. Where do I find out how to deploy a
SQL Server/ASP.NET app to a server.....?

Thanks


Nov 19 '05 #6
Attaching and detaching databases are
standard operations used in SQL Server.

See http://databasejournal.com/features/...le.php/2224361

1.
You should have a SQL Server Control Panel
of some sort provided by your ISP, so you can
work remotely on your SQL Server databases.

With it, you can execute system stored procedures,
like sp_detach_db and sp_attach_db, to detach and
attach databases.

2.
If you have SQL Server installed locally, too,
you can connect to the remote SQL Server
and execute sp_detach_db and sp_attach_db.

Juan T. Llibre
ASP.NET MVP
===========
"Skully" <Sk****@discussions.microsoft.com> wrote in message
news:AE**********************************@microsof t.com...
Thanks Scott,
Not sure I understand what you mean by "attach".
Once the scripts are generated, how do i execute them on the server if my
only view of it is through an ftp program?

"Scott Allen" wrote:
Generally you don't want to deploy the database files per se (although
SQL
2005 should make this easy). You could copy all the .mdf and .ldf files
from
one server to another and use a script or enterprise manager to 'attach'
the database to the server.

The usual appraoch is to generate SQL scripts to recreate the tables and
any data needed then execute those scripts on the destination server. You
can generate scripts through SQL Server's enterprise manger.

Making sense?

--
Scott
http://www.OdeToCode.com/blogs/scott/
> Thanks Scott,
> One more question. To deploy the database which database files do I
> put on
> the server and where do I put them?
> "Scott Allen" wrote:
>
>> Skully:
>>
>> Instread of using connection strings that are hard coded into your
>> source code, try placing them into the web.config file and reading
>> them at run time. When you deploy to a new server you'll just need to
>> tweak web.config with the right connection string.
>>
>> there are ways to encrypt the string if you need the security boost.
>>
>> There is some discussion here:
>> http://msdn.microsoft.com/library/de...ary/en-us/vbco
>> n/html/vbtskaccessingsqlserverwithexplicitcredentials.asp
>> --
>> Scott
>> http://www.OdeToCode.com/blogs/scott/
>>> If I have created my Web Application on my PC using command and
>>> connection objects (dragging them onto the forms from the Server
>>> Explorer window) how do I make it work when I deploy the application
>>> (and presumably the dB) to the Host server? The connection objects
>>> all refer to my PC not the server the app will eventually end up on?
>>>
>>> I guess my question is general. Where do I find out how to deploy a
>>> SQL Server/ASP.NET app to a server.....?
>>>
>>> Thanks
>>>


Nov 19 '05 #7

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

Similar topics

3
by: yoda | last post by:
Hi Guys, I've been used to deploying code to the production server by checking out of subversion and manually sorting out any kinks. (yes, I know, it sounds primitive) I realize I'm losing so...
10
by: Gerben van Loon | last post by:
Hi there, hope someone can help me on this: I'm planning to deploy several ASP.NET projects to a production server. Normally I used the "Project / Copy project" option in VS.NET, but to this...
2
by: Flip | last post by:
I am deploying webapps using XP (IIS5) and deploying them to a Windows 2003 Server box (IIS6). So far so good. However, when I try to manage my w2k3 server from XP, I get an error message saying...
3
by: Johnny | last post by:
Hi, I have created an ASP.NET application (let's call it FooBar) with VS.NET on my local machine, residing in http://localhost/FooBar. Deploying it to another folder on my machine works well...
3
by: Rachel | last post by:
Hi, I am using the data access application block successfully in our development environment, however when I deploy to our testing server as Private Assemblies I keep getting the following ...
10
by: Bryan Dickerson | last post by:
I fairly have my Web Service working the way that I want, so my next step will be to deploy it on a server. Do I just add a deployment/install project, build it and install it on the server? ...
1
by: Duncan | last post by:
Guys a little please, I'm creating a windows application that uses a webservice and WSE1.0 to talk to a database, currently this works fine when using localhost, I now want to test the...
0
by: geek-y-guy | last post by:
I have a "newbie" deployment question. I want to confirm what's involved in deploying a web created with Visual Web Developer Express Edition to a production Server2003/IIS 6 server. The...
0
by: sanjaypasumarty | last post by:
Hello, I am facing issues when i am deploying application on WebSphere Process server. The appplication is not deploying successfully and showing some DB2 errors in the logs. We are unable to find...
3
by: kkao77 | last post by:
can you show me in more detail? I have same problem where on the page it's https://service.premilance.com/Company.svc, but the svcutil tells me to get it from https://pserver1/Company.svc?wsdl...
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
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...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...

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.