473,725 Members | 2,127 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 9614
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
1451
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
8394
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
3944
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
1153
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
7121
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
1826
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
1651
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
3321
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
8888
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
8752
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
9401
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...
0
9257
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
9176
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,...
1
6702
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
4519
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
4784
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
2
2635
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.