473,748 Members | 2,793 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Waarde uit tabel incompleet

Eus
Ik wil uit een tabel het gehele getal halen, de waarde staat als
05612123 maar wanneer ik dit
opvraag in bv. de Query Analyzer wordt de waarde gegeven als 5612123.
De 0 welke ervoor staat wordt
dus niet afgebeeld. De tabel in de kolom heeft als Data Type char, de
Length staat op 10 en Allow Nulls staat aangevinkt. Wie kan mij helpen?
Dank.

Nov 24 '06 #1
3 1987
Eus wrote:
Ik wil uit een tabel het gehele getal halen, de waarde staat als
05612123 maar wanneer ik dit
opvraag in bv. de Query Analyzer wordt de waarde gegeven als 5612123.
De 0 welke ervoor staat wordt
dus niet afgebeeld. De tabel in de kolom heeft als Data Type char, de
Length staat op 10 en Allow Nulls staat aangevinkt. Wie kan mij helpen?
Dank.
<babelfish>
Subject: Value table incomplete
I want obtain the whole number from a table, the value stands as
05612123 but when I ask this in e.g. the Query Analyzer are given the
value as 5612123. 0 which state is not represented therefore. The table
in the column has char as dates type, the Length stand up 10 and Allow
Nulls stand aangevinkt. Who help can me? Thanks.
</babelfish>

If you change e.g. SELECT FOO FROM BAR to SELECT 'X'+FOO FROM BAR, does
the 0 appear or not? If it does, then Query Analyzer was stripping the
0; if it doesn't, then the 0 was stripped during the insert, or quite
possibly before the insert (e.g. if the data passed through Excel on
its way to your database).
Nov 24 '06 #2
Eus wrote:
>
Ik wil uit een tabel het gehele getal halen, de waarde staat als
05612123 maar wanneer ik dit
opvraag in bv. de Query Analyzer wordt de waarde gegeven als 5612123.
De 0 welke ervoor staat wordt
dus niet afgebeeld. De tabel in de kolom heeft als Data Type char, de
Length staat op 10 en Allow Nulls staat aangevinkt. Wie kan mij helpen?
Dank.
In that case, there is probably something wrong with the query. There
might be an implicit conversion, for example if you assign the value to
a variable. Maybe if you post the query someone can help you out.

In dat geval is er waarschijnlijk iets mis met de query. Het kan een
impliciete conversie zijn, bijvoorbeeld wanneer de waarde in een
variabele wordt gezet (met een ander data type). Als je de query post
kan iemand je wellicht verder helpen.

Gert-Jan
Nov 24 '06 #3
On 24 Nov 2006 04:53:38 -0800, Eus wrote:
>Ik wil uit een tabel het gehele getal halen, de waarde staat als
05612123 maar wanneer ik dit
opvraag in bv. de Query Analyzer wordt de waarde gegeven als 5612123.
De 0 welke ervoor staat wordt
dus niet afgebeeld. De tabel in de kolom heeft als Data Type char, de
Length staat op 10 en Allow Nulls staat aangevinkt. Wie kan mij helpen?
Dank.
Beste Eus,

(English version below)

Ter aanvulling op de antwoorden van Ed en Gert-Jan: de voertaal in deze
groep is Engels. Als je hulp in het Nederlands prefereert, dan kun je
beter posten in de groep microsoft.publi c.nl.sql - hoewel het aantal
mensen dat daar vragen beantwoordt beperkt is (maar dat geldt ook voor
het aantal mensen dat Nederlands leest in deze groep <g>). Uiteraard kun
je ook deze groep blijven gebruiken, maar dan kun je beter in het Engels
schrijven. In dat geval zul je ook meer antwoorden krijgen!

(English translation)

In addition to the answers given by Ed and Gert-Jan: the language in
this group is English. If you prefer help in Dutch, you'd better post in
microsoft.publi c.nl.sql - though the number of people answering
questions over there is limited (but the same holds for the number of
Dutch-spoken people in this group <g>). You can of course keep using
this group, but in that case you're better advised to post in English.
You'll get more answers that way!

--
Hugo Kornelis, SQL Server MVP
Nov 25 '06 #4

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

Similar topics

3
2893
by: Maulin Vasavada | last post by:
Hi, I have DataTable and I want to actually put a LinkLabel in one the columns where I can click an do something BUT it seems I can't put LinkLabel in the table cell of DataTable. So as an alternative I thought if I can detect double click events on a cell I can get the text in there and do something but I am not able to do so. Please let me know if I have to provide more information to help solve this problem.
2
1224
by: gmalai | last post by:
Hi, I would like to know if it is possible to add a text box in table cell if I **double-click** in that particular table cell(the table was generated at runtime). If so, could you please give some helpful hints as to how to proceed. Thanks, Gayathri
15
2632
by: Geagleeye | last post by:
Hi. I need to interpolate som data i have in my tabel. my tabel looks like this. Y X 0 0 0,026 0,037 0,003 0,038 0,005 0,064
2
5949
by: Geagleeye | last post by:
hi. im trying to interpolate som data i got in my tabel. Does any one got any code or example i could use.. hope somone want to help
9
1507
by: elia | last post by:
Hello, I would like to show a line in a tabel in html if there is quantity of article choosed. My code is: <? if ($quantite1 0) { echo(' <tr>
7
1853
by: Kristiansj | last post by:
Hey, I am a fairly novice coder and I am having some trouble making an elegant solution to the following problem: (pseudocode) ------------ switch (something) { case (something1) tabel = tabel_1 case (something2) tabel = tabel_2 etc....
0
1522
by: Steve Kirby | last post by:
You can't ... What you might try is: desc tabe1 This will list the columns in that table. You can select what you want to pull from that way.
1
1153
by: arunbojan | last post by:
Dear All, Please advice me some tips in ASP.NET to make tabel attractive..... Arun
0
8830
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
9541
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
9321
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
9247
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
6074
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
4602
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
3312
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
2782
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
3
2215
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

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.