Wrox Programmer Forums
Go Back   Wrox Programmer Forums > Visual Basic > VB 6 Visual Basic 6 > VB How-To
|
VB How-To Ask your "How do I do this with VB?" questions in this forum.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the VB How-To section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old December 1st, 2003, 08:32 AM
Authorized User
 
Join Date: Dec 2003
Posts: 10
Thanks: 0
Thanked 0 Times in 0 Posts
Default Arabic data insertion into SQL 7.0

i have default installation of SQL 7.0 on win2K wid Arabic as default language.. i managed to insert Arabic data from Enterprise Mnaneger
But Unable to insert it from VB.I can easily write Arabic in rich text box it gives when i save.. run time error 424 "Object Required"


the code snipet is as under

 Dim db As New ADODB.Connection
 db.Open "dsn=Jdeep"
db.Execute "insert into Arabic values(123," & "'" & RichTextBox1.Text & "')"



 
Old December 1st, 2003, 04:53 PM
Friend of Wrox
 
Join Date: Oct 2003
Posts: 336
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via MSN to alyeng2000
Default

to be sure this error from arabic insertion do you
first could insert english text instead of arabic

if so reply

Ahmed Ali
Software Developer
 
Old December 2nd, 2003, 02:14 AM
Authorized User
 
Join Date: Dec 2003
Posts: 10
Thanks: 0
Thanked 0 Times in 0 Posts
Default

thanks..
i managed to remove the error ,
English insertion is fine but when i write arabic in text box it is inserted in DB as ?????? ?

Plz i need help

 
Old December 5th, 2003, 07:56 AM
Friend of Wrox
 
Join Date: Oct 2003
Posts: 336
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via MSN to alyeng2000
Default

change the language local on your machine to arabic
it's related to your OS ...
you can do that through regional setting in control panel

Ahmed Ali
Software Developer
 
Old December 7th, 2003, 01:09 PM
Friend of Wrox
 
Join Date: Oct 2003
Posts: 336
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via MSN to alyeng2000
Default

the last check is the collation for Database must be one of the Arabic collations,also check collation for the table field which you are inserting in.

Ahmed Ali
Software Developer
 
Old December 30th, 2004, 07:26 AM
Registered User
 
Join Date: Dec 2004
Posts: 1
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via MSN to dodo98
Default

Hi all!

I am having the same problem. I can input Arabic (Input locale etc all set)in a text box in my VB app. I can also input Arabic in Sql Server 2000 (collation for this field set too). But when saving from VB to Sql I get ãäÊÈÇÔãÓäíÈ instead of my Arabic input.

I am using the following SQL String :

"UPDATE agLanguage SET Language2 = N'" & tReference.Text & "' WHERE id = 1"

tReference.Text contains Arabic text but when debugged or saved I get ãäÊÈÇÔãÓäíÈ instead. The font of this text box is Arial Unicode MS.

any help please ?

Thanks
Dom






Similar Threads
Thread Thread Starter Forum Replies Last Post
Bulk insertion from a data table to oracle databas Alexkure ASP.NET 1.0 and 1.1 Professional 0 November 12th, 2008 03:24 AM
Display Arabic/Urdu Data in Crystal Report 8.0 hafizfarooq Crystal Reports 18 October 13th, 2008 09:13 AM
How to display arabic data in Crystal Report tpshajad Crystal Reports 0 February 2nd, 2008 03:19 PM
insert Arabic text to sql express 2005 abdrabaa SQL Server 2005 1 August 18th, 2007 05:45 PM
delete arabic from sql server 2000 ananas_hh SQL Server 2000 3 September 11th, 2004 09:39 AM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.