473,651 Members | 3,036 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

database selection in deployment

I created customized application to Microsoft POS system. I am now
working on the installation package. Any one knows how to get the local
sql database settings, and get user select database, so I can make
necessary changes to the database ( create new tables, update some
records etc.) to make my application work properly.

Thanks
Leanne

Nov 6 '06 #1
1 933

"Leanne" <le******@conne ctretail.com.au wrote in message
news:11******** **************@ b28g2000cwb.goo glegroups.com.. .
>I created customized application to Microsoft POS system. I am now
working on the installation package. Any one knows how to get the local
sql database settings, and get user select database, so I can make
necessary changes to the database ( create new tables, update some
records etc.) to make my application work properly.

Thanks
Leanne
Hi,

Microsoft POS uses MSDE 2000. You can query a given server for all
instances of SQL Server using a combination of registry enumeration (for
local instances) and SMO EnumerateAllSQL Servers for remote servers. Once
your user has chosen a candidate (from a list), you can then enumerate all
databases on the server using the stored procedure "sp_Databas es", allowing
the user to choose one. Alternatively you can setup a registry key with a
default server/instance and catalog name and read that when your application
starts, allowing the user to change it using the previously mentioned
enumeration methods to populate selection list boxes.

It's also sometime useful to have a default stored procedure to call to
check to see if the selected database is compatible with your application.
I use a "Version" stored procedure, that returns a version record that
returns a GUID along with other information, so I know whether or not I'm
dealing with a database related to my application, or some other database
that just happens to be attached to the SQL server instance I'm using.
Hope this helps,
Robin
Nov 7 '06 #2

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

Similar topics

1
1894
by: DB developer | last post by:
Hello friends I am trying to create a deployment project to distribute my VB.NET application with MSDE database. I am using VS.NET with MSDE 2000 deployment toolkit (release candidate) to achieve this. I am facing the following problems I am deploying the database by copying to .MDF and .LDF files in destination folders using deployment package. The problem is that I am not able to attach the database to the MSDE instance as a part of setup...
0
3095
by: ImraneA | last post by:
Hi there Many thanks to those people who contributed to this group, helped me greatly. Enclose, my code, hope it helps others :- Public Function Export_Excel_9(tbx1 As Variant, tbx2 As Variant, tbx3 As Variant, tbx4 As Variant, tbx5 As Variant, tbx6 As Variant, tbx7 As
4
2743
by: Manu | last post by:
I would like to create a database for my application when it is deployed. This database can be from different types depending on the tool installed on the customer computer and will be chosen during the startup wizard. Where do I write the code in the project? How do I open a new database programmatically? How do I open a new database and copy data to it from my files programmatically? Is there an example explaining this?
2
991
by: z | last post by:
I'm developing a couple of applications that I need some advice on which database structure to use. My first thought is SQL Server of course, but after looking at my potential users and their needs, I'm having second thoughts. My #1 goal (besides the apps working properly of course) is to simplify deployment and database set up, as I will have a wide range of users, from those who have just bought a PC, to students, to companies with...
0
1137
by: Tamer Higazi | last post by:
Hi! I am trying to insert with PDO-Sqlite rows through a form. I can do whatever I want, I don't find the sollution where I made the error. Perhaps somebody of you could help me?! However, the database is created with sqlite, and the entries should be done with PDO_SQLITE. However, no entries are done anyways and I am one step going nuts, specially because I don't receive no warning or errormessage on the screen.
1
1829
by: BeanCounterCPA | last post by:
OK, I'm sure there is an easy way to do this, but I am just a novice at Access and can not find a solution. I have a database that I used to pull a confirmation sample from by using dollar unit sampling. The selection works just fine, however, when I finish doing the selection I want to resort the database in account number sequence and then assign a confirmation number to each item selected in the database. How do I set an index in VBA...
17
1469
by: Matko | last post by:
Hello, I need to store data in some database for my application. I need database for easy deployment (small size), that is reliable and maybe fast. What database is best to use in this case? Thanks in advance, John
0
1194
by: Just D | last post by:
All, What's the simplest way of a deployment of an application written in C# and using ADO.NET and MS SQL Server? I created a deployment project in the VS2005, aded it to the solution, configured, added the main project. The deployment project creates 2 files - setup.exe and MyApplication.msi, it automatically checks for the existence of MDAC and MS SQL Server 2005 Express Edition, that's fine. But to install the application correctly...
1
2764
by: kitemad69 | last post by:
How i can i deploy and attach a database from a C# project. I created the database in sql manager now i want to deploy it using a C# project is this possible
0
8807
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...
1
8466
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
8584
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...
0
7299
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, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
1
6158
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
5615
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
4144
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
0
4290
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
2701
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system

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.