473,405 Members | 2,354 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,405 software developers and data experts.

Installing an application

I have created my first application and stepped through the deployment
walkthrough. I've created an deployment project which works very well.
However, I several stored procedures that need to be added to an existing
database but I'm not sure how to install the stored procedures through the
installation routine.

Any help would be appreciated.

Regards,
Johnny
Nov 17 '05 #1
2 1697
psg
"Johnny" <Jo****@discussions.microsoft.com> wrote in message
news:E2**********************************@microsof t.com...
I have created my first application and stepped through the deployment
walkthrough. I've created an deployment project which works very well.
However, I several stored procedures that need to be added to an existing
database but I'm not sure how to install the stored procedures through the
installation routine.


In one of my projects I wrote a Console Application which was being run
during installation process, that application may add stored procedure by
connecting to the server through ODBC, but what I did was to make it to
prepeare (write to file) batch file (eg. "restoreRDS.bat") with stored
procedures (in my project they were restoring whole database) and then to
run so prepeared batch. As I was running it on MSDE batch file and its
stored procedures were correctly executed by SQLServer itself (directory,
connection etc. didn't really matter).

-------------------------
Process processRDS = new Process();
processRDS.EnableRaisingEvents = true;
processRDS.StartInfo.FileName = "restoreRDS.bat";
processRDS.StartInfo.UseShellExecute = false;

try
{
processRDS.Start();
processRDS.WaitForExit();
System.Threading.Thread.Sleep(5000);
System.IO.File.Delete("restoreRDS.bat");
}
catch
{
}

-------------------------

RGDS PSG

p.s. moreover what was really good, that Console Application could be run
from deployment project with arguments (in my example -restore [which was
restoring whole database] or -drop [which was dropping it during
uninstallation])
Nov 17 '05 #2
Thanks, I'll give that a shot.

"psg" wrote:
"Johnny" <Jo****@discussions.microsoft.com> wrote in message
news:E2**********************************@microsof t.com...
I have created my first application and stepped through the deployment
walkthrough. I've created an deployment project which works very well.
However, I several stored procedures that need to be added to an existing
database but I'm not sure how to install the stored procedures through the
installation routine.


In one of my projects I wrote a Console Application which was being run
during installation process, that application may add stored procedure by
connecting to the server through ODBC, but what I did was to make it to
prepeare (write to file) batch file (eg. "restoreRDS.bat") with stored
procedures (in my project they were restoring whole database) and then to
run so prepeared batch. As I was running it on MSDE batch file and its
stored procedures were correctly executed by SQLServer itself (directory,
connection etc. didn't really matter).

-------------------------
Process processRDS = new Process();
processRDS.EnableRaisingEvents = true;
processRDS.StartInfo.FileName = "restoreRDS.bat";
processRDS.StartInfo.UseShellExecute = false;

try
{
processRDS.Start();
processRDS.WaitForExit();
System.Threading.Thread.Sleep(5000);
System.IO.File.Delete("restoreRDS.bat");
}
catch
{
}

-------------------------

RGDS PSG

p.s. moreover what was really good, that Console Application could be run
from deployment project with arguments (in my example -restore [which was
restoring whole database] or -drop [which was dropping it during
uninstallation])

Nov 17 '05 #3

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

Similar topics

5
by: Sagaert Johan | last post by:
hi I have the following problem: I have a C# application that uses an activeX . I installed the application and the NET 1.1 Runtimes on a clean pc When running the application i discover...
7
by: Adam | last post by:
Im trying to add an httphandler for all *.sgf file extensions. I have developed the handler, 1. installed it into the gac 2. added it to the machine.config: <httpHandlers> <add verb="*"...
11
by: tshad | last post by:
I have a small Windows Service program that just has a timer on it and it built fine. I try to install it using InstallUtil and I get the following message: ...
1
by: Parveen | last post by:
I made changes to my VB.NET application so I need to uninstall the existing version of my app and reinstall the new changed version. I rebuilt my solution on my development computer and uninstalled...
1
by: Solution Seeker | last post by:
Hi, We have an application which is in almost completed stage. We are going to provide a key for activating the software which is also to be bundled. We are planned to write the validation in...
2
by: | last post by:
Hi all, I have a few servers running some apps on .net 1.1. I need to install 2.0 on them to run some new websites. Will installing 2.0 break my 1.1 apps? TIA!
3
by: Christof Nordiek | last post by:
Hi, i have a setup project, wich is configured so that new versions will automatically uninstall in older version. It all works fine, but the installation fails, if the user selects another...
0
by: C. Hughes | last post by:
Hi, I have used the standard tools in VS 2005 to compile my VB application into a setup file. After executing the setup file and installing the program, starting the program often presents an...
5
by: John | last post by:
Hi When I try to install a published app using a url like http://www.mydomain.com/publish.htm, it starts the download but then comes up with the eror given at the end below. I am installing the...
4
by: =?Utf-8?B?anAybXNmdA==?= | last post by:
I created a setup.exe/setup.msi installer using Visual Studio for my C# application, then copied it over to the network for others to use. It installs fine and the application works like it is...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
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,...
0
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...
0
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...
0
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...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...

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.