How do I determine the length of a column?
Does anyone know how to determine the length of an Oracle column through sql statements? I know in SQL Server you can use the COL_LENGTH function to find the maximum length for a particular column, but I haven't been able to find an equivalent for Oracle.
We have a column in a database that is a VARCHAR2 and can be any szie from 64 to 255 characters. I need to determine on the fly from a running client application what size the column is in the current database.
Thank you very much for any help you can give me.
select data_length from user_tab_columns
where table_name='YOUR_TABLE' and column_name='YOUR_COLUMN';
if you want function to return this value, create function like below..
create or replace function col_len(t varchar2,c varchar2)
return number is
n number;
begin
select data_length into n from user_tab_columns
where table_name=upper(t) and column_name=upper(c);
return n;
exception
when others then
return 0;
end;
/
Similar Messages
-
How do I change the length of a column in the metadata?
A very simple package, reads data from SQL Server and FTPs it to a destination. I have zero experience with SSIS.
I had to add a new column (HEA_ID) to the input and output. The output record has a filler at the end (I hope you know what a filler is) and the new column has to go before the filler and the filler length reduced accordingly.
Problem: there is no apparent way to place the new column anywhere but after the Filler. The filler in the metadata is the wrong length and there is no way that I can see to change the length.
There is a yellow exclamation mark on the Flat File destination (where the filler is wrong length)
I get these erros when I run the updated package.
"The external metadata column is out of sync with the data source column. The column 'HEA_ID' needs to be updated in the external metadata column collection".
"The column filler needs to be updated in the external metadata column collection"
I have no idea how to fix these errors. Help needed.Hi AllTheGoodNamesWereTaken,
According to your description, you add a new column HEA_ID and make some changes in filler column in the External Columns, so those two columns are out of sync with the data source column.
Please note that columns are created based on the data source columns. So we couldn’t directly change them in the Flat File Destination Advanced Editor.
To avoid this error message, just as Visakh said, just review mappings once again in the Flat File Destination. If we want to change the columns in the Flat File Destination, we need change the source columns.
Thanks,
Katherine Xiong
Katherine Xiong
TechNet Community Support -
How to determine the length of a LRAW field
Hi
I'm trying to write a generic persistency class that saves data in a table with a lraw field.
As required the lraw field must be preceded by a length field of type INT2, but how can I calculate the actual length of the lraw field?
kind regards ThomasHi Martin
I'm sorry to tell you that you are wrong. The INT2 field must contain the actual length.
I have a table with a LRAW of 1024 bytes, but if I put 15 to the length field, then only 15 bytes are stored in the database.
Of course I could just enter 1024 for the length, but that would wast a lot of database space - and performance.
My class has a persistency method that inserts or updates a record in the database. The data that should be stored in the LRAW is sent to the method via a pointer (field symbol) of type X. This pointer can point at any data type.
Something like this:
field-symbols: <input> type x.
field-symbols: <lraw> type x.
*assign any field to <input>
assign <lraw> to mydbtable-lraw_field casting.
<lraw> = <input>.
*here i need to determine the length of mydbtable-lraw_field before i store the content to the database.
By debugging I can tell that if the pointer points to a char 32 field then the length of the X pointer is 64 and if the pointer points to a timestamp then the length of the x pointer is 8, but how can I determine this length programmatically - either from the x pointer or from the LRAW?
Best regards
Thomas -
How to determine the length of a curved path in illustrator CS2
how to determine the length of a curved path in illustrator CS2?
bornfree,
The free Patharea/Pathlength Filters from Telegraphics is your friend (the former gives you both area and length, both in different units):
Telegraphics - Free plugins for Photoshop & Illustrator...and other software -
How to determine the length of variable based on the character contents
Hi Experts,
I need to determine the length of variable based on the character contents I am looking for.
Example;
lv = 'FENCE - Construction bond'
Where I need to know the exact field length of 'FENCE -'.
It's possible that variable will have different values in different lengths.
Thanks.
KathKathy Amion ,
hello Will you please elaborate ...!
The suggestion for your proble as i understood it is you will have to split the string at seperator '-' in two say variable name and conten. and then you will calculate the length of the VARIable name by using string function. -
Should be simple - how do I see the length of a clip?
I know "clip" isn't the right word — I'm talking about any movable fragment of audio, be it a loop or something I recorded or whatever. What are these fragments called, and where can I see how long it is in seconds?
The "clips" are called regions in GB - so much for nomenclature. The only way to determine the length is to switch the LED display to show real time (the clock symbol) and either to the math (subtract start time from end time) or move the region to the zero point briefly, read its length, and hit "undo" to put it back where it belongs.
-
How can I determine the type of video out connector I need?
Howdy,
I have a white macbook purchased Jun/2008. I want to connect to a TV but don't know what adapter I need. How can I determine the type of video out jack my macbook has?
System Profiler says the model identifier is "MacBook 4,1". Under Graphics/Displays the only thing it says about the "Display Connector" is that no display is connected. Too bad it doesn't tell me what type of connector it is. If I knew the name of the connector I'd probably be home free. But it seems like every macbook model has a different video connector (since the state of the art has advanced over the years) and I haven't been able to keep up with the names.
Now, I have a 6" long adapter that will convert this connector to VGA. And searching the Apple store for VGA adapters, the existence of mine says my connector is might be one of "Mini DisplayPort", "Apple Mini DVI", "Apple DVI", or "Apple Micro-DVI". But then there is also the connector at
http://store.apple.com/us/product/M8639G/A?mco=MTY3ODQ5OTY
and that looks like the one I have. But unlike the other adapters, this one is just called a "VGA Display Adapter". Does the connector have a name? How can I find adapters that have that same connector?
I know I could use the adapter I have, plus a VGA to VGA cable, to hook up to a TV. But the quality of the VGA signal is poor in the digital world. My goal is to hook up to the TV via HDMI. Is this even possible? By which I mean, will my macbook generate the signals necessary to be able to be converted to HDMI?
Thanks for any help,
Zebulon TThanks, Ded,
You're right, the cable that I have won't work. I't from my previous, 2004 iBook. This is pretty embarrassing... I looked at the cable but didn't bother to try plugging it in.
Looking at the close-up picture of the Mini-DVI to VGA adapter, that does look like the right connector. So I have Mini-DVI, and the other apter you pointed to can convert this to DVI. I'll take a look to see what makes the most sense, connector wise, downstream from that.
Thanks very much.
Zeb T -
Hello,
I am at my wits end into this. Either I am doing it the wrong way or it is not possible.
Let me explain. I need a vb script for the following scenario:
1. The script is to run on multiple Windows 7 machines (32-Bit & 64-Bit alike).
2. These are shared workstation i.e. different users login to these machines from time to time.
3. The objective of this script is to traverse through each User Profile folder and get the size of the 'My Documents' folder within each User Profile folder. This information is to be written to a
.CSV file located at C:\Temp directory on the machine.
4. This script would be pushed to all workstations from SCCM. It would be configured to execute with
System Rights
I tried the script detailed at:
http://blogs.technet.com/b/heyscriptingguy/archive/2005/03/31/how-can-i-determine-the-size-of-the-my-documents-folder.aspx
Const MY_DOCUMENTS = &H5&
Set objFSO = CreateObject("Scripting.FileSystemObject")
Set objShell = CreateObject("Shell.Application")
Set objFolder = objShell.Namespace(MY_DOCUMENTS)
Set objFolderItem = objFolder.Self
strPath = objFolderItem.Path
Set objFolder = objFSO.GetFolder(strPath)
Wscript.Echo objFolder.Size
The Wscript.Echo objFolder.Size command in the script at the above mentioned link returned the value as
'0' (zero) for the current logged on user. Although the actual size was like 30 MB or so.
I then tried the script at:
http://www.experts-exchange.com/Programming/Languages/Visual_Basic/VB_Script/Q_27869829.html
This script returns the correct value but only for the current logged-on user.
Const blnShowErrors = False
' Set up filesystem object for usage
Set objFSO = CreateObject("Scripting.FileSystemObject")
Set objShell = CreateObject("WScript.Shell")
' Display desired folder sizes
Wscript.Echo "MyDocuments : " & FormatSize(FindFiles(objFSO.GetFolder(objShell.SpecialFolders("MyDocuments"))))
' Recursively tally the size of all files under a folder
' Protect against folders or files that are not accessible
Function FindFiles(objFolder)
On Error Resume Next
' List files
For Each objFile In objFolder.Files
On Error Resume Next
If Err.Number <> 0 Then ShowError "FindFiles:01", objFolder.Path
On Error Resume Next
FindFiles = FindFiles + objFile.Size
If Err.Number <> 0 Then ShowError "FindFiles:02", objFile.Path
Next
If Err.Number = 0 Then
' Recursively drill down into subfolder
For Each objSubFolder In objFolder.SubFolders
On Error Resume Next
If Err.Number <> 0 Then ShowError "FindFiles:04", objFolder.Path
FindFiles = FindFiles + FindFiles(objSubFolder)
If Err.Number <> 0 Then ShowError "FindFiles:05", objSubFolder.Path
Next
Else
ShowError "FindFiles:03", objFolder.Path
End If
End Function
' Function to format a number into typical size scales
Function FormatSize(iSize)
aLabel = Array("bytes", "KB", "MB", "GB", "TB")
For i = 0 to 4
If iSize > 1024 Then iSize = iSize / 1024 Else Exit For End If
Next
FormatSize = Round(iSize, 2) & " " & aLabel(i)
End Function
Sub ShowError(strLocation, strMessage)
If blnShowErrors Then
WScript.StdErr.WriteLine "==> ERROR at [" & strLocation & "]"
WScript.StdErr.WriteLine " Number:[" & Err.Number & "], Source:[" & Err.Source & "], Desc:[" & Err.Description & "]"
WScript.StdErr.WriteLine " " & strMessage
Err.Clear
End If
End Sub
The only part pending, is to achieve this for the 'My Documents' folder within each User Profile folder.
Is this possible?
Please help.Here are a bunch of scripts to get folder size under all circumstances. Take your pick.
https://gallery.technet.microsoft.com/scriptcenter/site/search?query=get%20folder%20size&f%5B0%5D.Value=get%20folder%20size&f%5B0%5D.Type=SearchText&ac=2
¯\_(ツ)_/¯ -
HELP!! My voicemail cuts in after just 15 seconds of ringing, which is rarely long enough for me to answer it. How do I increase the length of time it rings? Can I choose not to have voicemail at all, so my phone can just continue ringing until I answer?
If I need to enter a voicemail password or key, can you tell me step by step because I can't see how to do anything except retrieve and delete voicemail msgs. I'm on O2-UK, if that makes any difference at all. Thank youIf my response has been either helpful or correct, could you indicate that marking which it is in order that others searching for a similar solution can find find this easily.
FYI, it's considered bad forum etiquette to ask for points. -
How do I determine the # of times a song has been down loaded; 7 is max?
How do I determine the # of times a song has been down loaded? Is 7 max?
Jim, I apprecite your help. Im still lost...not that efficient on computer. Some notes, If burn playlist to disc doesn appear in the menu, it means that the playlist you selected cant be burned to a CD because it contains items that have usage restrictions; if the playist contains itunes store purchases that are not itune plus songs, you can burn the playlsit to a CD up to 7 times; DRM - Digital Rights Management???? Any help is appreciated Thank You
-
How do you determine the optimal size for Mozilla Firefox?
How do you determine the optimal size for cache in Mozilla
Firefox? I am using Firefox 7.0.1 on a 64-bit Windows 7 Ultimate operating system with 3GB RAM and 300 GB hard drive, but I have other computers running Windows XP. If the answer doesn't apply to all current versions of Firefox on all supported Windows operating systems, please explain the differences. Is there a formula for calculating the best cache size?I found that the best idea is to let Firefox decide that itself.
-
How do you determine the firmware version for a laptop docking station?
How do you determine the firmware version of a HP docking station?
Laptop Model: HP 2740p
OS: 64bit Windows 7
Expansion Base: 2740 Ultra Slim Expansion Base WA995AA#ABA
Thank you for any assistance.
Alvinatenpo wrote:
How do you determine the firmware version of a HP docking station?
Laptop Model: HP 2740p
OS: 64bit Windows 7
Expansion Base: 2740 Ultra Slim Expansion Base WA995AA#ABA
Thank you for any assistance.
Alvin
WA995AA#ABA shows to be a hard drive, not a docking station -
How do you determine the picture that is shown on iTunes for your podcast?
How do you determine the picture that is shown on iTunes for your podcast? Is that done in iWeb or Garagetunes?
That is a supported format,
Pull the battery while the device is ON, replace after a minute, Let the device reboot 1-3 min,
see if the problem is fixed,
If not we may have to reload the device OS to get back the missing option.
Thanks,
If you need more info please ask! If not please resolve the thread using the options by the Kudos’ star, Just place the check in the Post that answered your question, Thanks
Click Accept as Solution for posts that have solved your issue(s)!
Be sure to click Like! for those who have helped you.
Install BlackBerry Protect it's a free application designed to help find your lost BlackBerry smartphone, and keep the information on it secure. -
How do I determine the version of ADI
Hi,
We have ADI installed on some machines - can anyone advise how I can determine the version of ADI once it is installed?
ThanksThis is a little late, but may be it will help someone else in the future.
There may be an easier way, but this is what works for me.
Log into ADI. Go to the Request Center. Click the ‘tool’ icon.
It looks like a hammer and screwdriver.
On the next screen, look in the bottom left corner.
It will show the version of ADI.
HTH,
Mark -
How do we determine the HTTP authentication header for our hosted solution?
How do we determine the HTTP authentication header (adobeconnect_admin_httpauth) from our hosted solution? The documentation says to find it in a custom.ini file but I have no clue how to access that.
I need to supply that to the adobeconnect plugin used with a Moodle instance, screnshot below.
If it helps, when I click "Test Connection", I see the following output.
A series of tests have been run in order to determine whether the Adobe Connect Pro server has been properly setup for this integration to work and to also determine whether the user credentials provided in the activity global settings has the correct permissions to perform the neccessary tasks required by the activity module. If any of the tests below have failed, this activity module will not function properly.
For further assistance and documentation in how to set up your Adobe Connect Pro server please consult the MoodleDocs help page for this activity module Help page
Sending common-info call:
successfully obtained the session key: na11breezrirhb4f4ryf5shqy
successfully logged in as admin user
Testing retrevial of shared content, recording and meeting folders:
error obtaining shared content folder
XML request:
<?xml version="1.0" encoding="UTF-8"?> <params><param name="action">sco-shortcuts</param></params>
XML response:
<?xml version="1.0" encoding="utf-8"?> <results><status code="no-access" subcode="no-login"/></results>
error obtaining forced-archives (meeting recordings) folder
XML request:
<?xml version="1.0" encoding="UTF-8"?> <params><param name="action">sco-shortcuts</param></params>
XML response:
<?xml version="1.0" encoding="utf-8"?> <results><status code="no-access" subcode="no-login"/></results>
error obtaining meetings folder
XML request:
<?xml version="1.0" encoding="UTF-8"?> <params><param name="action">sco-shortcuts</param></params>
XML response:
<?xml version="1.0" encoding="utf-8"?> <results><status code="no-access" subcode="no-login"/></results>
error creating meeting testmeetingtest folder
XML request:
<?xml version="1.0" encoding="UTF-8"?> <params><param name="action">sco-update</param><param name="type">meeting</param><param name="name">testmeetingtest</param><param name="folder-id"/><param name="date-begin">2015-03-14T06:53:39.000+00:00</param><param name="date-end">2015-03-14T07:53:39.000+00:00</param></params>
XML response:
<?xml version="1.0" encoding="utf-8"?> <results><status code="invalid"><invalid field="folder-id" type="id" subcode="format"/></status></results>
error creating user testusertest
XML request:
<?xml version="1.0" encoding="UTF-8"?> <params><param name="action">principal-update</param><param name="first-name">testusertest</param><param name="last-name">testusertest</param><param name="login">[email protected]</param><param name="password">9B396EA828A00203FB3E8E69010FE537</param><param name="extlogin">[email protected]</param><param name="type">user</param><param name="send-email">false</param><param name="has-children">0</param><param name="email">[email protected]</param></params>
XML response:
<?xml version="1.0" encoding="utf-8"?> <results><status code="no-access" subcode="no-login"/></results>
What are we missing?
Thanks!Here is the docuementation for loging in with an HTTP Headder Adobe Connect 9 * Log in from an application
Seeing as there may be some modification to files on the server, you may need to work with Adobe Support to see if they can be modified in the Hosted environment.Adobe Connect Help | Adobe Connect Support
Maybe you are looking for
-
I am new to "support communities" and only fair at the techy stuff. I am "blown away" at the number of problems people are having after installing 10.6.8: printers stop working, frequent crashes, overheating machines, machines running full tilt so th
-
Problems accessing parameters within repeating frames.
I hope this is a more readable version of the problem I just submitted. This is the overall layout of a report I am currently working on and having problems with, using Oracle Reports 6i. Departments Commitments Obligations Dept 1 - Dept 1 Title RCC
-
Invoking Javascript with Items from Different Page
I have a two page application. "Page 1" has a Javascript function to which I pass ITEMS from Page 1. Can I include Items from "Page 2" in this function ? thanks abhay
-
Application on Mac/iPod Touch?
Hi folks. Just wondering how I get notes from my Mac to my iPod Touch. I hate emailing them to my account, as it's just a workaround. I'd love to carry around notes that I need, but they're on my Mac. Any apps out there that do this? Cheers
-
Dear All, I bought a X230 (i7) notebook. I found that if removed the battery from the notebook and only use AC power with the X230 Notenook. The CPU frequency will stated at 1189MHz. It will not change no matter how many program the notebook is ru