473,698 Members | 2,183 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

determining codepage of a database

Hi,

How can i determine the codepage of a database from a CLI (or embedded
SQL) program ? Is there a catalog table that i can query for this
information ?

Thanks

May 3 '07 #1
2 9610
Vivek,

For DB2 9 use 'select * from sysibmadm.dbcfg ' and see what you need.

Best regards,
Joachim Müller

"Vivek" <te*********@gm ail.comschrieb im Newsbeitrag
news:11******** **************@ e65g2000hsc.goo glegroups.com.. .
Hi,

How can i determine the codepage of a database from a CLI (or embedded
SQL) program ? Is there a catalog table that i can query for this
information ?

Thanks
May 3 '07 #2
On May 3, 7:38 pm, Joachim Müller <jom0...@dougla s-informatik.de>
wrote:
Vivek,

For DB2 9 use 'select * from sysibmadm.dbcfg ' and see what you need.

Best regards,
Joachim Müller

"Vivek" <teaaswew...@gm ail.comschrieb im Newsbeitragnews :11************ **********@e65g 2000hsc.googleg roups.com...
Hi,
How can i determine the codepage of a database from a CLI (or embedded
SQL) program ? Is there a catalog table that i can query for this
information ?
Thanks- Hide quoted text -

- Show quoted text -
Thanks Joachim. Is there an equivalent way for DB2 8 ? I see that i
can get the codepage (as a number) from syscat.datatype s ? Is there a
way to map this to a codeset (i.e. codepage as a name)

May 4 '07 #3

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

Similar topics

0
1450
by: Dmitry Davletbaev | last post by:
Hi! I use codepage 1251 to store data in MySQL tables. To support ORDER BY and LIKE on this data I must run MySQL server with "--default-character-set=cp1251" option. It's easy while I administrate this server. But what must I do if I can't start server myself? Is there way, for example, to specify codepage while connect to database (I use PHP)? Thanks. -- Dmitry Davletbaev
10
687
by: Christopher H. Laco | last post by:
Long story longer. I need to get web user input into a backend system that a) only grocks single byte encoding, b) expectes the data transer to be 1 bytes = 1 character, and c) uses the HP Roman-6 codepage system wide. As much as it sounds good, UTF/Unicode encoding is not an option, nor is changing the codepage. Tackling the first is easy via Encoding.Default.GetBytes and shoving it over the network. However, Encoding.Default is the...
8
8390
by: Kim Bundgaard | last post by:
Hi Anyone know where I can look for problem with codepage conversion between DB2 UDB Connect EE V8.2 (fixpak 3) and DB2 UDB z/OS V7. With DB2 UDB Connect EE V7.2 (fixpak 7) i get Ebcdic X'5A' converted to Ascii X'A4', but with V8 I get it converted to Ascii X'80'. I use Ebcdic codepage/ccsid 277 and client codepage 1252. It looks like a problem with Windows Latin-1 1252/5348 - the Euro codepage,
1
3940
by: Vladimir Khvostov | last post by:
Hi, We have some DB2 table on the host that has varchar(3200) columns that are used to store binary data (I know that "varchar(3200) for bit data" should have been used, by modifying host table is not an option at this time). I wrote a Win32 application, which is using DB2 Connect and ODBC to pull the data from the host. I am passing SQL_C_BINARY as a 3rd parameter in SQLBindCol() call, ::SQLBindCol(hStmt, nColNo + 1, SQL_C_BINARY,...
0
1149
by: bruce_pullen | last post by:
DB28.1 FP10 on AIX 5.3. SYSCAT.PACKAGES returns CODEPAGE=819 for certain packages. The database was created with CODEPAGE=1208. Should I be concerned? Thanks for any advice. Bruce
4
7120
by: Ram | last post by:
Dear All, Good Day I am trying to convert a file which is generated on AS400 with codepage 00420 (arabic & English data combination) with no success. But using the same code( and changing 20420 to 708) I am able to convert a file from codepage ASMO 708 to windows based file and it is perfect. The following is the code I tried. i used 20420 codepage which is the nearest match for 00420. but no luck. //Open file for reading and set...
0
1821
by: asklucas | last post by:
Hi there, I got an MS Access DB, which is causing problems when the client PC is running using a Traditional Chinese codepage. The DB was probably created with Access 97, Western European codepage. However, the DB I got is now already in Access 2002 / 2003 file format, thus should be already converted to Unicode. When I open the DB on my PC with Western European codepage, it runs
1
1648
by: ssijakovic | last post by:
Hi, I don't know where to ask this question, and I hope this is the right group for this. I've made one ASP+Access site. On that site I have few parts where it's grabbing data from the database, and shows only those that match particular query. When it's open, url looks something like: ...data.asp?city=Dubrovnik Now, here is a problem. I wasn't thinking, and during adding datas in
0
3316
by: Cuaracao | last post by:
This is my code: Code1: 'DoCmd.OpenTable "tblImport" 'DoCmd.TransferDatabase acExport, "dBASE IV", strOutputDir,acTable,"sel_TblImport", strDbfName & ".dbf", False ' DoCmd.Close acTable, "tblImport" ======================================================== Code2:
0
8603
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
9023
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
8893
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
8861
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
7721
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
6518
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
4615
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
3045
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
2327
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.