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

running DB scripts during installation

Hi Angela,

Although I'm not familiar with capabilities of
InstallShild's and the likes of it, you can easily
accomplish what you want in the following manner:
write a small tool that takes the scripts as string input
(e.g., from command-line), then use the "OleDbCommand" (or
SqlCommand, if target is Sql server only)
class's "ExecuteNonQuery" method, where you can run any
SQL script. It'll do the job for you.
As you see, rather trivial to write it (just connect to
data source, instantiate OleDbCommand, and run the script
(s) via "ExecuteNonQuery"). Then you just run this setup
utility from your installation program.

That assumes the target computer doesn't have an
application like SQL Server's Enterprise Manager or even
the QueryAnalyzer installed. If it has, then you can
accomplish what you want without coding.

Hope this helps..
Hayk

-----Original Message-----
I'm working on a Web Setup App and although its been a
rollercoaster ride, I think I'm doing ok so far. However,I can't find any documentation on how to run a DB script
during the installation.

advice?
.

Jul 19 '05 #1
0 1430

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

Similar topics

4
by: Damien Renwick | last post by:
I have a php script which simply stops midway through a while loop that processes records returned by a MySQL query. The HTML page continues trying to load the page but the php has stopped running...
1
by: Rolfe | last post by:
Hi, I struggled, and got mod_python running on Apache/Win2k. Follow these instructions verbatim and you shouldn't have any trouble. These instructions are based on...
2
by: Mike | last post by:
We have a large c++ program that runs under Windows NT Embedded to control an instrument. That program has been written to run external python scripts. The computer where this code runs does not...
2
by: Dave A | last post by:
I have an application that runs in the system tray (taskbar notification area) and it runs at startup. Occasionally I need to release a new version. I have created a deployment project in .Net. ...
0
by: Hayk Khachikyan | last post by:
Hi Angela, Although I'm not familiar with capabilities of InstallShild's and the likes of it, you can easily accomplish what you want in the following manner: write a small tool that takes the...
7
by: Raistlin Majere | last post by:
I installed Apache/MySQL/PHP on Windows XP. There was one problem. Microsoft IIS 4 or higher was defaultly selected for MySQL. It did not work. When I double-click a PHP file, a lightning-fast...
1
by: Dica | last post by:
i'm primarily a web developer, so this is probably a pretty stupid question to ask, but i'm trying to figure out how to run an installation package i'm writing in a VS setup project. as far as i've...
3
by: Mohit | last post by:
Hi All, I have some batch files which needs to be executed when installer is running. How can I achieve this functionality using .Net MSI installers. I didn't found any option where I can include...
22
by: V S Rawat | last post by:
(bringing the discussion here for php.general) I am on xpsp3, wampserver 2.0, having apache 2.2.8, php 5.2.6, MySQL 5.0.51b. http://localhost/ is E:\wamp\www\ I have put the first php script...
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
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: 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...
0
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...
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
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...

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.