How to use DB toolkit to input string 255 into ACCESS Database
I am converting an existing LV-Application from LV5.1.1 w/SQL toolkit to LV7.1 with DB-Conn. Toolkit. One of the tables in my MS-Access database has a field of TYPE=memo (allows string lengths > 255 characters). I can't seem to find how to insert this field in the DB-table using the "DB Tools Insert Data.VI" without getting an error. I have tried converting the input string to a [U8] array, but that also doesn't work. Just inputing the long string (390-chrs) also gives an error. Reducing the string length to < 255 allows the new record to be input into the table without errors. However, I need to be able to input the longer strings for the application to work.
Does anyone have a solution to this problem.
Thanks,
Jim Cardinal
Something like this
David
Message Edited by David Crawford on 01-12-2006 11:53 AM
Attachments:
Insert Text to Memo Using DBT.jpg 14 KB
Similar Messages
-
How to use RFBIBL00 as direct input in LSMW
Can any one Please help how to use RFBIBL00 as direct input in LSMW ? How should be structure Same level or subordinate level as I will be having single text file ?
I have around 15 fields with me
BKPF
STYPE C 1
BLDAT C 10
BLART C 2
BUKRS C 4
BUDAT C 10
XBLNR C 10
WAERS C 3
XPRFG C 1
XMWST C 1
BSEG
STYPE C 1
NEWBS C 2
DMBTR C 10
KOSTL C 10
SGTXT C 10
PRCTR C 10
NEWKO C 10
MWSKZ C 2
Thanks and Regards
GuruHi,
look testabap RFBIBLT0, which creates testfile
A. -
How to use replace(CharacterSequence, CharacterSequence) in String class
Need simple java program using the following
how to use replace(CharacterSequence, CharacterSequence) in String class
Kindly helpFrom http://java.sun.com/j2se/1.5.0/docs/api/java/lang/String.html#replace(java.lang.CharSequence,%20java.lang.CharSequence)
replace
public String replace(CharSequence target,
CharSequence replacement)Replaces each substring of this string that matches the literal target sequence with the specified literal replacement sequence. The replacement proceeds from the beginning of the string to the end, for example, replacing "aa" with "b" in the string "aaa" will result in "ba" rather than "ab".
Parameters:
target - The sequence of char values to be replaced
replacement - The replacement sequence of char values
Returns:
The resulting string
Throws:
NullPointerException - if target or replacement is null.
Since:
1.5 -
How to use execute immediate for character string value 300
how to use execute immediate for character string value > 300 , the parameter for this would be passed.
Case 1: When length = 300
declare
str1 varchar2(20) := 'select * from dual';
str2 varchar2(20) := ' union ';
result varchar2(300);
begin
result := str1 || str2 ||
str1 || str2 ||
str1 || str2 ||
str1 || str2 ||
str1 || str2 ||
str1 || str2 ||
str1 || str2 ||
str1 || str2 ||
str1 || str2 ||
str1 || str2 ||
str1 || ' ';
dbms_output.put_line('length : '|| length(result));
execute immediate result;
end;
/SQL> 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21
length : 300
PL/SQL procedure successfully completed.
Case 2: When length > 300 ( 301)
SQL> set serveroutput on size 2000;
declare
str1 varchar2(20) := 'select * from dual';
str2 varchar2(20) := ' union ';
result varchar2(300);
begin
result := str1 || str2 ||
str1 || str2 ||
str1 || str2 ||
str1 || str2 ||
str1 || str2 ||
str1 || str2 ||
str1 || str2 ||
str1 || str2 ||
str1 || str2 ||
str1 || str2 ||
str1 || ' ';
dbms_output.put_line('length : '|| length(result));
execute immediate result;
end;
/SQL> 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21
declare
ERROR at line 1:
ORA-06502: PL/SQL: numeric or value error: character string buffer too small
ORA-06512: at line 6result varchar2(300);Answer shouldn't be here ? In the greater variable ?
Nicolas. -
How to use JSTL create a dynamic table according to a database???
How to use JSTL create a dynamic table according to a database in a web page? Who can help me? Thanks.
How to use JSTL create a dynamic table according to a
database in a web page? Who can help me? Thanks.???
Could you rephrase your quesion?
Do you want to display records by reading from a table in DB? -
How to use a WebService Model with String Arrays as its input parameter
Hi All,
I am facing the following scenario -
From WebDynpro Java i need to pass 2 String Arrays to a Webservice.
The Webservice takes in 2 input String Arrays , say, Str_Arr1[] and Str_Arr2[] and returns a string output , say Str_Return.
I am consuming this WebService in WebDynpro Java using WEB SERVICE MODEL. (NWDS 04).
Can you please help out in how to consume a WSModel in WD where the WS requires String Arrays?Hi Hajra..
chec this link...
http://mail-archives.apache.org/mod_mbox/beehive-commits/200507.mbox/<[email protected]>
http://www.theserverside.com/tt/articles/article.tss?l=MonsonHaefel-Column2
Urs GS -
How to use dynamic selection screen inputs in main program
hi all,
its a report where in it calls one dynamic selection screen( user need to enter the parameters here) after that i need to use those inputs for some check, can any buddy help how to use/ get that input parameters into main program.
regards,
vara..Hi,
i think u have created that dynamic selection screen in seperate program and calling to ur main program.instead of that u just create that synamic selection screen program as include program and include it in ur main program.
or u need to use set/get parameter id concept.
rgds,
bharat. -
How to use regular expression to find string
hi,
who know how to get all digits from the string "Alerts 4520 ( 227550 ) ( 98 Available )" by regular expression, thanks
br, AndrewLiu,
You can use RegEx as
d+
Whether you are using CL_ABAP_REGEX class then
report zars.
data: regex type ref to cl_abap_regex,
matcher type ref to cl_abap_matcher,
match type c length 1.
create object regex exporting pattern = 'd+'
ignore_case = ''.
matcher = regex->create_matcher( text = 'Test123tes456' ).
match = matcher->match( ).
write match
You can find more details regarding REGEX and POSIX examples here
http://www.regular-expressions.info/tutorial.html
a® -
How to use a report as input of other report?
Hi,
I'm using web intelligence and I'm trying to use the data of one report as entry of other report, the second report will have other filters and other columns. Is that possible? How can I do it?
Thank you,
MarcelaYou can use OpenDocument, URL reporting.
e.g.
="<a href="http://ven-ffelt35:8080/businessobjects/enterprise115/desktoplaunch/opendoc/openDocument.jsp?sDocName=WebiStoreName&lsSStore+name:="+[Store name]+"">"+[Store name]+"</a>
You will pass the data from one field as a parameter to a second report. Please have a look at the documentation. If you have any questions, just post them on the forum
[BusinessObjects Enterprise XI Release 2; How to use the openDocument URL command|https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/800f7400-bf3e-2b10-fa81-c6c74f457ab4] -
hello, sorry for my question,
but I want to use a var as a string:
I know it is a completely beginners-question, but I didn´t need it until now:
var zahl = Math.floor((Math.random()*99)+1);
sym.$("frame")
.css(
{'background-image':'url("images/zahl.jpg")'
I tried it with {zahl} and [zahl] but it does not work.
Help would be great
OliverThanks a lot,
but sorry, I have no sucsess:
var zahl = Math.floor((Math.random()*99)+1);
sym.$("frame")
.css(
{'background-image':'url("images/" + zahl + ".jpg")'
here is the whole code again so that you can see if I made a fault.
THX -
I am currently away from my MAC and want to send an email through apple mail with the bcc functionality. I am using the cloud to get to my mail, however, I can't figure out how to use the BCC functionality, please help. Thanks!
Open your mail,
lower left corner click on settings,
go to composing and check BCC, save and your done -
How to use a TOP INCLUDE of my_function_module for/into my_report?
Hello Experts,
I put the below code in my_function_module
PERFORM my_routine
IN PROGRAM my_report_prog
USING xyz.
Now, i want to use the TOP INCLUDE/Data declaration part of my_function_module for/into my_report_prog, because i do not want to declare all again.
Pls. let me know how to use a TOP INCLUDE of a my_function_module for/into my_report?
Thank youHi,
I think we can directly use the include using INCLUDE stat.
Go to your function group get the top include name
and use it in your report.
Thanks,
Anmol. -
How do I open a pdf stored in a Microsoft Access database using Visual Basic studios 2012
Currently I am unable to find a valid method of being able to open a pdf stored in a Microsoft Access database using Visual Basic studios 2012. I've tried displaying the entire database on a form, but when I do this all the other columns show up with
the correct data besides the one containing the pdf's, it just displays <binary data> in each row down the column. I also tried another method with which you use the database as a dataset and can drag and drop the rows and columns into the form, which
again works for all the other columns besides the one containing the pdf's but this time I'm unable to interact with the column at all.
Not too sure if this is in the correct place, but any answers or help would be appreciated. Cheers.Alex,
This forum is dedicated to Project and Project Server. You might get better response, if you post to a Visual Basic forum. Here are couple I could find.
https://social.msdn.microsoft.com/Forums/vstudio/en-US/home?forum=vbgeneral%2Cvblanguage&filter=alltypes&sort=lastpostdesc
Cheers,
Prasanna Adavi, Project MVP
Blog:
Podcast:
Twitter:
LinkedIn:
-
How to insert an array of number into access database?
How can I insert an array of numbers(double) into an access database and later read them back to an array I labview. I don't have the Database Connectivity toolset. I would prefer using the LABSQL or other free solution. Any idea on how to solve this. I have tried LABSQL and SQL commands, but when I do that I have to convert the number to a string and then make a SQL-command string. Is there a way where I don't have to convert the number into a string?
Hello,
I am not familiar with LABSQL and we do not do any support on that particular product. However I still want to give you some information on how to proceed. You can either store the array to binary format and by doing this you can save an entire array to one single element of the database. The other alternative is of course to save one-to-one in other words one element of the array in one element in the database.
More info can be found here:
http://digital.ni.com/public.nsf/websearch/3FE68BBDA95E845986256DB4006A22C0?OpenDocument
Have you checked MSDN for information regarding this? You might be able to find useful SQL code there to use.
Regards,
Jimmie A.
Applications Engineer, National Instruments
Regards,
Jimmie Adolph
Systems Engineer Manager, National Instruments Northern Region
Bring Me The Horizon - Sempiternal -
Use a combobox to list records in an access database
Hi,
I am trying to create a Word document that contains fields to display data from an Access table. I used the mail merge function.
I want to add a combo box in the Word document that will hold the Invoice numbers generated in the Access database. The user then clicks on the invoice number in the combo box they want to print and the selected number with its related data must be displayed
in the document.
Currently, the mail merge document retrieves all the records (about 16 000 of them, and growing). The user has to step through them until the relevant data is displayed. This is time consuming.
This is the very first time that I need to do it this way. My knowledge on Word is very limited. Is there some example available or can somebody direct me in the right direction?
ThanksHi Deon,
You can use VBA code to populate a combobox, and show the needed record information in the document when the user select a combobox item. To connect to an Access database, ADO will help. Check this complete sample(you can paste this code snippet into
the ThisDocument VBA editor to test):
'Before open this document,
'create an access db named test.accdb, and create a table UserInfo(ID,UserName,Age)
Private Sub Document_Open()
PopulateComboBox
End Sub
Private Sub ComboBox21_Change()
ShowSelectedRecord ComboBox21.Text
End Sub
Sub PopulateComboBox()
Dim dbConnectStr As String
Dim conn As ADODB.Connection
Dim sqlQuery As String
Dim sqlCount As String
Dim rsQuery As ADODB.Recordset
Dim rsCount As ADODB.Recordset
Dim userNames() As String
dbConnectStr = "Provider=Microsoft.ACE.OLEDB.12.0;Data Source=D:\test.accdb;Persist Security Info=False;"
sqlQuery = "Select UserName FROM UserInfo"
sqlCount = "select count(UserName) as UsersCount from UserInfo"
Set conn = New ADODB.Connection
conn.ConnectionString = dbConnectStr
conn.Open
Set rsQuery = conn.Execute(sqlQuery)
Set rsCount = conn.Execute(sqlCount)
rsCount.MoveFirst
i = rsCount!UsersCount
ReDim userNames(1 To i)
j = 1
If Not (rsQuery.EOF And rsQuery.BOF) Then
rsQuery.MoveFirst
Do Until rsQuery.EOF = True
UserName = rsQuery!UserName
userNames(j) = UserName
j = j + 1
rsQuery.MoveNext
Loop
Else
'do nothing
End If
rsQuery.Close
rsCount.Close
Set rsQuery = Nothing
Set rsCount = Nothing
ComboBox21.List = userNames
End Sub
Public Sub ShowSelectedRecord(SelectedUserName As String)
Dim dbConnectStr As String
Dim conn As ADODB.Connection
Dim sqlQuery As String
Dim rsQuery As ADODB.Recordset
dbConnectStr = "Provider=Microsoft.ACE.OLEDB.12.0;Data Source=D:\test.accdb;Persist Security Info=False;"
sqlQuery = "Select * FROM UserInfo where UserName='" & SelectedUserName & "'"
Set conn = New ADODB.Connection
conn.ConnectionString = dbConnectStr
conn.Open
Set rsQuery = conn.Execute(sqlQuery)
If Not (rsQuery.EOF And rsQuery.BOF) Then
rsQuery.MoveFirst
Do Until rsQuery.EOF = True
UserName = rsQuery!UserName
Age = rsQuery!Age
Application.ActiveDocument.Range(1).InsertAfter "UserName:" & UserName & " Age:" & Age
rsQuery.MoveNext
Loop
Else
'do nothing
End If
rsQuery.Close
Set rsQuery = Nothing
End Sub
Besides VBA, you could also create a Word Add-in to connect to Access database and retrieve some data.
We are trying to better understand customer views on social support experience, so your participation in this interview project would be greatly appreciated if you have time. Thanks for helping make community forums a great place.
Click
HERE to participate the survey.
Maybe you are looking for
-
Burned iPhoto libraries from 2002 show up as 0 photos when re-opened
I have iPhoto libraries from 2002 (and possibly other years) burned to CD's that when re-opened in iPhoto show up in the album list but show as 0 photos. Newer burned to disc libraries are available but the old ones are not. The burned photos are ava
-
I have tried all sugestions for how to charge my ipad 2 that no longer charges, and nothing seems to work, can anyone offer any new advise?
-
MS SQL Server 2005 connection problem?
Hi all, I am a beginner in these things, so be patient please. I have established database connection with my MS SQL 2005 server with a 3rd party JDBC driver. Testing databasae connection was successfull, but there are no tables from my created datab
-
The Order of services to start the Essbase?
Hi Guyz, Can any one please let me know the order of services to start EAS? I'm not using Essbase studio. In 11.x Can I use EAS without essbase studio?? Please let me know the same for planning also. Thanks
-
Demo plug-in keeping logic from launching. HELP!
I can't get Logic Pro 7.2 to launch. It gets stuck on an Antares avox throat demo that I installed months ago. It was never authorized and expired but I never trashed it. I thought I might buy it and get authorization but it's not worth $250. to me.