473,786 Members | 2,462 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

help with DB2 prep and binding in C++ - static SQL

1 New Member
our code is written in C++ (unix) with SQL for connecting to db2 DB. we have dev (d30), systest(m30) schemas on same db (db2u). we need a solution to build once and use it on dev & systest environments. please suggest me some thing. we are totally stuck.
we are using: db2 prep bindfile using abc.bnd qualifier d30 collection d30_col
db2 bind abc.bnd qualifier d30 collection d30_col.
May 11 '07 #1
1 1976
weaknessforcats
9,208 Recognized Expert Moderator Expert
This sounds like a pathing issue. If the db is opened by the C++, you can always read a configuration file that contains the name and path to the correct database. You should be able to switch systems just by changing the configuration file. Probab;y, you would have lots of things in this file.

Your restriction of one build for all environments precludes setting build switches in the code or compiler switches for a particular environment.
May 11 '07 #2

Sign in to post your reply or Sign up for a free account.

Similar topics

0
911
by: Michael Rodriguez | last post by:
Due to what I would call a bug in VS (Whidbey), you can't have a textbox bound to an integer column. If you do, you can never wipe out the number in the textbox. When you try to, VS won't let the focus leave that field until you type in some number. I can get around it by manually changing the binding on the textbox like so: txtTitle.DataBindings.NullValue = string.Empty; What I would like to know is, is it possible to subclass the...
2
1546
by: Shrage Smilowitz | last post by:
I try to create a custom collection which i will then use to databind and its not working. Class Book Public BookName As String Sub New(ByVal lBookName As String) Me.BookName = BookName End Sub End Class
4
1807
by: Rick | last post by:
Hello, Below I create a static instance of an object, works well. public static BasicCounter GlobalCounter = new BasicCounter("GlobalCounter"); private void Page_Load(object sender, System.EventArgs e) { GlobalCounter.Increment();
3
946
by: serge calderara | last post by:
Dear all I have an asp 1.1 page on which I have place a dropdownlist and different text box It is a kind of information filled by my user similar as Country, area, telephon etc... What is the best way to populate other controls automatically according to the selection in the dropdowlist.
2
1229
by: serge calderara | last post by:
Dear all, I have the following item on my form : <asp:HyperLink id="lblEvtNb" runat="server" NavigateUrl="Event.aspx?id=">Click here</asp:HyperLink> I need to pass as url parameter an Id which is a label.Text string of my form At the end the url should be : "Event.aspx?Id=32"
1
1264
nomad
by: nomad | last post by:
Hi everyone: This project is driving me crazy and I need some help. I would post it here but I have worked so hard on it that I don't want someone else in my class to steal it. So if I can pm it to someone that would be great. here is part of my code where I'm having problems. Problem is at public static void main(String args) { The method main cannot be declared static; static methods can only be declared in a static or top level...
0
1257
jeffbroodwar
by: jeffbroodwar | last post by:
Hi Everyone, I'm using netbeans 5.5. I've read in an article that netbeans will allow data binding in their 6.0 release. Now, i know that the other way to achieve this is by binding the swing control manually by using Java Beans. I used this link as a reference : http://www.netbeans.org/kb/55/gui-database.html. Can someone help me create the classes that i'll need to bind jComboBox with one of the fields of a database? any help will be...
6
5685
by: crack.the.hack | last post by:
Hi All, If I am changing the database machine, what should I do not to prep bind the sqc files everytime. Because I need to build my application everytime the database is changed? Is there any way, to do prep bind with "defined timestamp" or something which does not require any prep - binding even when the
9
3245
by: Tool69 | last post by:
Hi, Until now, I was running my own static site with Python, but I'm in need of dynamism. After reading some cgi tutorials, I saw Joe Gregorio's old article "Why so many Python web frameworks?" about wsgi apps and have a question about it. The code he gave works like a charm (I had to make a little change because SQLAlchemy has changed since), but how the hell can I serve static files (css, js, images, etc.) within an wsgi
4
2218
by: HxRLxY | last post by:
I am having a compile-time problem with a simple program I am writing. When I attempt to compile, I get the error "non-static variable this cannot be referenced from a static context". The error point to where I try to create a new instance of 'ConvertToOunces' inside the main method. Any help would be greatly appreciated. Here is my source code. /******************************************************************************\ | |Try...
0
9647
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, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
9496
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
10363
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
10110
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
9961
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
8989
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...
0
5397
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...
1
4066
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
2
3669
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

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.