How to interpret the numerical values of SQL_ColType()?
Hello
After the execution of:
..
Call SQL_Connect("abcDB","user","pw","") ' abcDB is an ODBC link to my Mysql 5 database
Call SQL_ExecDirect ("SELECT id, temperature, tsdat FROM v$ _header WHERE id")< 1000")="">
..
> the SQL_ColType(1..ColumnNo) variable shows me the data types of each column to a numeric value, for example:
SQL_ColType (1) = 4
SQL_ColType (2) = - 9
SQL_ColType (3) = 93
What real data types are behind the values? It would be nice to get a complete list of all possible values?
Thank you.
Hi ddehn,
The SQL_... orders () are the old method for DIAdem to connect to SQL databases, using the ODBC approach. Since the tiara 10.2 the ADO approach is the recommended method. This is the function that I used to use to make sense of the values SQL_ColType():
Function GetODBColTypes()
Dim j, jMax, ChTypes
jMax = SQL_ResultCols
< 1="" then="" jmax="">
ReDim ChTypes (jMax)
FOR j = 1 TO jMax
IF SQL_ColType (j) = 93 THEN
ChTypes (j) = "DateTime".
Else if SQL_ColType = - 1 OR SQL_ColType (j) (j) > 8 THEN ' STRING
ChTypes (j) = "String".
ON THE OTHER
ChTypes (j) = 'number '.
END IF ' SQL_ColType (j)
NEXT ' j
GetODBColTypes = ChTypes
End Function ' GetODBColTypes()
Brad Turpin
Tiara Product Support Engineer
National Instruments
Tags: NI Software
Similar Questions
-
How to interpret the return value of $. colorPicker()
Hello
I have a questiion how to interpret the value returned by this function:
$. colorPicker()
It returns a number of strange how convert as usable values RGB.
Any help would be appeciated.
This should help:
function hexToColor (theHex) {}
var r = theHex > 16;
var g = (theHex & 0x00ff00) > 8;
var b = theHex & 0xff;
return [r/255, g/255, b/255,1];
}
hexColor var = $. colorPicker();
var newColor = hexToColor (hexColor);
Dan
-
How to get the numeric values.
Hello
A column in a table, cela studs as $ 12 / 3 #4 %5 '
and how can I get digital value only on top of the value as
like 12345
Thanks in advance
Hello
Try the following query:
([[Select regexp_replace('12$/3#4%5','[^[:digit:]]') of double;
-
How to pass the numeric value in the format hexadecimal teststep parameter?
Hello
My teststep is a custom c# function that has a parameter of type Number (byte).
How can I insert the data to hexadecimal? (Step parameters + tab Module)
Can I change like field insert in labview in decimal, hexadecimal, binary?
THX
Just use the notation '0 x '. For example, to 10 (decimal), you will place in "0xA".
-
How to get the numeric values with SCPI on an AG7034B
Hello
I use an Agilent 7034 osciloscope with 4 analog and 16 digital channels.
Read analog channels is no problem, but how do I get the digital channels (101010) waveform?
I see the digital signal on the screen of the instrument.
And: I want to do with SCPI commands and read/write Visa.
Thanks for all tips
Do you really mean the DSO7034B? If so, there are drivers available for LabVIEW and other programming environments. I suggest you only start with one of these. Check your manual to become familiar with the controls.
PS ad to the digital I/o Board is incorrect.
-
How to convert the numeric value to 2 decimal places in java
Hi all
My requirement is a double value in the print format #, #. ##. I used the following code
Double val = 1000;
DecimalFormat d = new DecimalFormat("#,###.##");
d.format (Val);
the output I got is 1,000, but I need the output as 1 000,00
Can someone please help?
Thank you
SunnyFelipe says:
If you still need print 2 decimal places, use model #, #. # 00Nope.
DB
-
How do you get the numeric value of an image
How do you get the numeric value of an image
This in a small example
var Red = ' \u00FF\u00D8\u00FF\u00E1\x05oExif\x00\x00MM\ '.
Here is a link to a script open source that generates a string that represents the data of a file binary, especially useful to integrate a small image in a script or file patterns in a JSON structure, for example:
Get the data from binary string
HTH,
Domestic-
-
SQL: How to tell the difference between the numerical value and Alpha numeric
Pls check the following requirements and let me know how to prepare the SQL:
1. I want to find the product that begins with Alpha value separately
2. I want to find the product that starts with the numerical value separately
data are the following:
CREATE TABLE prod (product_code VARCHAR2(4) NOT NULL)
Kind regardsINSERT INTO prod VALUES ('L016') / INSERT INTO prod VALUES ('A035') / INSERT INTO prod VALUES ('B001') / INSERT INTO prod VALUES ('1717') / INSERT INTO prod VALUES ('7151') / INSERT INTO prod VALUES ('7019') / INSERT INTO prod VALUES ('0729') / INSERT INTO prod VALUES ('0730') / INSERT INTO prod VALUES ('L007') / INSERT INTO prod VALUES ('C013') / INSERT INTO prod VALUES ('D008') / INSERT INTO prod VALUES ('L021') / INSERT INTO prod VALUES ('0710') / INSERT INTO prod VALUES ('0718') / INSERT INTO prod VALUES ('L005') / INSERT INTO prod VALUES ('0716') / INSERT INTO prod VALUES ('0711') / INSERT INTO prod VALUES ('0701') / INSERT INTO prod VALUES ('0724') / INSERT INTO prod VALUES ('0728') / INSERT INTO prod VALUES ('0714') / INSERT INTO prod VALUES ('0704') / INSERT INTO prod VALUES ('7150') / INSERT INTO prod VALUES ('L024') / INSERT INTO prod VALUES ('L033') / INSERT INTO prod VALUES ('0721') / INSERT INTO prod VALUES ('0708') / INSERT INTO prod VALUES ('0723') / INSERT INTO prod VALUES ('L004') / INSERT INTO prod VALUES ('L018') / INSERT INTO prod VALUES ('0725') / INSERT INTO prod VALUES ('0719') / INSERT INTO prod VALUES ('0726') / INSERT INTO prod VALUES ('0712') / INSERT INTO prod VALUES ('0727') / INSERT INTO prod VALUES ('0703') / INSERT INTO prod VALUES ('TEST') /
Yamen1)select * from prod where translate(substr(product_code,1,1),'#0123456789','#') != '#' 2)select * from prod where translate(substr(product_code,1,1),'#0123456789','#') is null
Ravi Kumar
-
How to interpret the data cache setting and the current value of data cache?
How to interpret the data cache setting and the current value of data cache? We found that even, we configure a larger data cache in Essbase 2 GB for example, the current value of the data cache is always much lower. Does that indicate an activities of data at very low recovery or something else?
Thanks in advance!Hello
When a block is requested, Essbase searches the data for the block cache. If Essbase is the block in the cache, it is immediately accessible. If the block is not found in the cache, Essbase in the index for the appropriate block number and then uses the index of the block entry to retrieve from the data on the disk file. Retrieve a block requested in the data cache is faster and therefore improves performance.
So as you say that its current value is much lower then % is very low, that a requested block is in the cache of Essbase data.
Hope that respond you to the.
Atul K
-
How can I get the numeric value of a reference?
I would like to get the numeric value of a reference. If I look at any reference with a probe, I can see it has value, i.e. F280006B. I would like to enter this value in a digital indicator for some troubleshooting I do. but running a Ref directly in a digital indicator introduced the code. Somehow the probe's work, it must be accessible. All advice out there?
Type caster in U32.
Lynn
-
How to interpret the Montior CPU for the merger activity data?
I had an interesting thing happen today:
I noticed that my Macbook Pro was a very high coverage of time CPU.
I checked the activity monitor to see what might happen - Firefox (as usual) was consuming more processor said cycles (30-50) - Fusion was well down the list (nevers merger seems to signal something more than 2-3).
I spent a lot of time trying to understand what could be the problem - juggling makes Firefox only a modest improvement.
Finally noticed that suspend the virtual machine (that worked only 1 app in XP) caused the CPU usage (as shown on the /graph/ in the activity monitor, not as shown in the numerical value of the VMWare Fusion line) to fall and the time quickly dropped by 20 + C.
Restared the VM - time go way up, but VMWare Fusion still report it is not using any CPU tasks stored in the virtual machine, and it was VMWareUser.exe (this, as I understand it, is a well known problem with drag-and-drop in a virtual machine), consuming 99% of the "VM - processor" I killed this process, the cpu of the VM goes to 99% idle and the falling time cpu for the ranges of normal temperatures.
So - my question is why the line in the report of Activity Monitor such a small numerical value for the processor utilization associated with VMWare Fusion when (at least in this example) it seems that the CPU was being seriously imposed by the leak inside the virtual machine process? How should I interpret it?
Thank you
Doug
As noted in the frequently asked Questions on VMware Fusion, Fusion uses a frontend/backend architecture. The merge process that appears in the default settings of the activity monitor is the user interface process, which manages receives them, drawing on the screen and so on. Work heavy is done by a process vmware-vmx belonging to root (one per VM) - view all processes to see / them.
With respect to the use of the CPU, see frequently asked Questions about VMware Fusion: high CPU utilization.
-
change the color of a function of the numeric value indicator bar
I'm trying to customize a digital indicator, a bar of tank, to change the color of the bar according to the numerical value.
I assumed that I could to make it by creating a property node for change FG and BG, connected to two color within a structure of the case box, but when I can function returns an error message.
does anyone know how to customize?
You must use the property 'fill color '.
-
How to get the updated values of the loops while they are running
Hello
I am trouble with a very basic problem, how to access the updated values of the "loop FOR" during operation? Basically, the VI I is currently working on two sub vis calls each sub VI has a loop for, and the two screws may or may not work for the same number of iterations. My goal is to read the values in each terminal within the loop of two sub VIs, in primary VI. I tried to do this using Global Variables, but in main VI it will display only the last iteration of the two value sub live. Could someone please tell me whrere I go wrong? Is there any other/better way to do this.
I appreciate any input on this issue.
Pass a reference of the main VI control to the Sub screws. See attached example.
-
kindly tell how to use the unique value of a table with the index 0
kindly tell how to use the unique value of a table with the index 0
Hi
Yep, use Index Array as Gerd says. Also, using the context help (+ h) and looking through the array palette will help you get an understanding of what each VI does.
This is fundamental LabVIEW stuff, perhaps you'd be better spending some time going through the basics.
-CC
-
Is it possible to connect a simple 1 d array to a digital indicator or what would be the best way to display the numeric values of the array on the front panel? Examples or suggestions would be greatly appreciated.
Thank you
Tunis
Thank you Adam, it's originally in a while loop, I placed it in a loop for example, wired County in the for loop and presto, this son of a digital indicator. It works very well. Thanks for the help folks.
Maybe you are looking for
-
Tecra 730XCDT size display - possible to repair problem?
In 1024 × 768, the screen is full, but change to 800 × 600 and 640 × 480, the visible screen shrinks a bit and drastically in that order. Is it possible to get a screen resolution less than completely fill the display area?I already have the BIOS to
-
Smart application wireless remote control
This application will be updated to run on MAC OS x (Snow Leopard) computers?
-
Windows Vista laptop is stuck in safe mode, how to fix?
stuck in SafeMode will not after I go to function normally... stay in safe mode it will be diognostic question of a certain type can someone help me?
-
Master list of exclusions: countries subject to embargo
Can add you something like '.cu' exclusion list to the master? or should it be a FQDN? Cuba is an embargoed country and we do not send emails to anyone who has an address .cu.
-
Why not LR 4.4 import my Canon's CR2 files suddenly
After working on my mac for years, I'm suddenly impossible to import camera raw, or any other.