473,756 Members | 8,174 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

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 1290
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/vbtskaccessings qlserverwithexp licitcredential s.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/vbtskaccessings qlserverwithexp licitcredential s.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****@discuss ions.microsoft. com> wrote in message
news:AE******** *************** ***********@mic rosoft.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/vbtskaccessings qlserverwithexp licitcredential s.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
2601
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 much time I could spend more productively. I'd therefore like to know the different approaches you guys employ to deploy builds from your staging servers (or laptops:) to the production server in an automated repeatable safe manner.
10
2080
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 production server I only have FTP access. I tried copying the files with a FTP tool, but it seems that every application needs to have an own virtual directory, is this true? Or is it possible to just make 1 virtual directory and put al the projects...
2
1336
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 I can't manage an IIS6 box from IIS5. Is anyone else seeing this? Can I take my w2k3 server CDs and install IIS6 on my XP box? Do I have to uninstall of IIS5 first? Thanks.
3
2189
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 with FrontPage Server Extensions, but I don't manage to deploy the application to my web provider http root folder. When I run Copy Project, I get an error message just saying 'Unable to create Web project 'myname'. Not found.'.
3
1900
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 Configuration Error Description: An error occurred during the processing of a configuration file required to service this request. Please review the specific error details below and modify your configuration file appropriately.
10
2147
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? TIA! -- TFWBWY...A
1
2781
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 deployment of this webservice on another server (inhouse) so I know it will work when I come to put the webservice on to the webserver (external), I have used the copy project wizard in VB2K3 using file share and it puts the files on to the server, when I...
0
1007
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 project to be deployed has a typical membership database created through the administrative interface ("App_Data/ASPNETDB.MDF"). For that dB to work on the webserver, does SQL Server Express Ed. have to be installed on the webserver as well?
0
2349
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 out the solution with the SDLCODE and SQLSTATE. Please help me to resole this issue. Please check the below snipet. 0000013c BpelEngine E <Null Message> com.ibm.db2.jcc.a.SqlException: DB2 SQL error:...
3
2778
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 which is incorrect.. I have no clue how to fix it and i'm struggling for two days already :( On Mar 13, 3:09 pm, "Tiago Halm" <th...@nospam.hotmail.comwrote:
0
9212
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
9973
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
0
9790
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
1
9779
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
9645
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
1
7186
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 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 a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
5247
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
2
3276
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
3
2612
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

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.