Hi i use sql server 2000 and i found problem in my database that is
when i write arabic language and closing my table and open it again i found all my data like question mark.
what can i do to save my data with arabic language.
note i use windows 2000 server.
HI, i work on Sql Developer Edition when i select for any Company name in arabic it does not get any data ,why? although my data are inserted by arabic language,please help me asap,thank youand my code like this use todayselect CatID from dbo.tbl_Categories where CatName like '%اتصالات%'
Hello, I am using the SSIS import/export wizard to import an Access table into a sql server 2005 database. The table has fields in Arabic (name, last name, etc.) and non-Arabic fields (gender, phone number, category, etc.). The destination table has nvarchar columns. After the import, I can see the Arabic characters in the destination table, but they appear in inverse order (from left to right). In Access (or Excel), Arabic fields appear as they should (from right to left) and non-Arabic fields are OK as well (from left to right). If I do a simple copy-and-paste of a "correct" Arabic text into the table, the result is still wrong (inversed letters)... Please help, I can't see what else to do. Thank you.
hye everyone, i am new in reporting service and have question about :
if my table in database store the english words but want to display in chinese/ arabic on my report. so..can the reporting service do like that.. any suggestion/tips or idea...
I am having a problem in a VB.NET application, i have a form that the user fills to store data in the database, the problem is that when i enter Arabic string, it gets stored in the database as question marks '??????' The database field type is nvarchar, anybody went across this problem?
I want to store arabic values and dates in sql server database.
I am using visual basic 2005 with sql server 2005. I entered the the arabic values through visual basic forms. But when i open the database table, i see the values in english format.
I change my regional settings of the operating system is arabic (platform vista).
HI, I am using Multi languages web application with sql database...I am using Arabaic and English languge is there is any thing to change sql database data in Arabic and English on run time.I am using only one database client add some record in Arabic in sql database but the another side some one wana check those records in English...plz let me know how can i do on run time asp.net
Is there any feature in SQL Server 2000 through which I can translate my Database into different languages at runtime.
Thanks & Regards Anoop Singhal Oracle Certified Professional Team Leader (Database) KeyWest Business Systems (P) Ltd. Ph. 0135-2710533,2710511 Cell: +91-9412051028
I have generated a database for my website, I intend on using software that will convert the database into static web pages. Big problem I have I am not a programmer, but I know a tiny bit about tags etc. for search engines. The meta tag description is what I want to create using a field in this database. The software I am about to use has a sql builder is there anyway it could be done be highlighting the relavent field and using sql language. PLEASE someone Help This problem has been driving me around the twist.
Could anyone provide me an example of the effective way of design a database support multiple languages. Currently I working to design a database for travel website which support 3 different languages, and more languages will be added in in the future. One of my friend advice me to put different languages into the same table for example Table Hotel ID Description_EN Description_ES Description_FR Location_EN Location_ES Location_FR .... But I don't thing it's a good idea to do so since in the future if I would like to add more languages I have to modify the table and I have to replace all of the sql statements. I am seeking for the best solution , could anyone help. Thank you very much
I have ran into a problem making a database where i have two versions of a book , one in russian and the other in English. The english part worked but when i input the data for Russian it gets replaced each time with question marks. Is there something i have to enable for the SQL database for it to be able to store Russian Text, or is it a DataType i have to set???
I have a Japanese sql server installed in one server.. I want to transfer everything to an English SQL Server version. Will this be no problem? Hope you can enlighten me on this one...
I have a database called 'objects' with one of its fields called 'Image' (data type is set to image) and a file in my desk top labelled as 'Pictures' (this is where all my pictures are keep). At run time i want to be able to select and add (upload) my preferred picture to the image filed of different records. Could you please advice me what i should do?
I have Sql server 2008 database with 200 GB in production.But It will not support multilanguage Since all the tables and procs is having varchar datatype.
I need to change the Entire Tables and procs to support Multilanguage(nvarchar,ntext) .
I have Many Huge data tables with numerous index .ALso I could not afford too much down Time. How can I perform.
I have this code that I hacked together from someone else's example. I kind of understand how it works. I just don't know if it will and i am not in a location right now to check. I was wondering if I did this correctly first, second how can it improve and should i do something different. Basically i just want to check the password in a database. I am passing the username and password to this function from another functioprivate bool authUser(string UserName, string Password){ string connectionString = ConfigurationSettings.AppSettings["DBConnectionString"]; SqlConnection DBConnection = new SqlConnection(connectionString); bool result = false; DBConnection.open() SqlCommand checkCommand = new SqlCommand("SELECT password FROM Users WHERE userName='" + Password + "', DBConnection) SqlDataReader checkDataReader = checkCommand.ExecuteReader(); if(checkDataReader.GetString(0) == Password) { result = true; } else { result = false; } checkDataReader.Close(); DBConnection.Close(); return result;}Thank you Buddy Lindsey
Hello, I could save the file in the sql server database. The problem i am having is, I am not able to read the document from the database. I do not want to use response.outputstream...... I have to read the file for specific contents. Anyhelp would be great. - Suresh
Hi Everyone, I am looking for some help, as i am pulling my hair out looking for information. I have been using asp for many years and am now starting to learn .net. so far so good.... I am now wanted to connect to a database, execute a simple select statement and then read/write the information out. I can't help but think in old asp code and i am having a hard time finding what i need to perfom this simple task. I have used the grid controls etc, and these are very good - however, i need to connect to a database in the code-behind file and perfom various functions in the background. If any of you could be so kind as to perhaps show me some demo code i would be grateful. I would like to do: A) Connect to a database (sql server 2000)B) Execute a simple SQL select statementC) Read the returned informationD) put this information into variables used elsewhereE) how do you check if no records are returned? such as the .EOF in asp? Many thanks Darren
I am able to upload a jpeg to a sql 2000 database into a column called graphic, the datatype is an image. for some reason i can read the image and have it displayed! this is driving me insane. any help would be greatly appreciated. here is the code to upload. and below that is the code to display the image.UPLOAD CODE If Not IsNothing(txtfileupload.PostedFile) Then 'Determine File Type Dim strExtension As String = Path.GetExtension(txtfileupload.PostedFile.FileName).ToLower() Dim strContentType As String = Nothing Select Case strExtension Case ".gif" strContentType = "image/gif" Case ".jpg", ".jpeg", ".jpe" strContentType = "image/jpeg" Case ".png" strContentType = "image/png" End Select 'Load FileUpload's InputStream into Byte array Dim imageBytes(txtfileupload.PostedFile.InputStream.Length) As Byte txtfileupload.PostedFile.InputStream.Read(imageBytes, 0, imageBytes.Length) 'INSERT DATA INTO DATABASE Dim objSQLConn As SqlConnection Dim strSQL As SqlCommand objSQLConn = New SqlConnection("server=srvdb1.rrg.local;uid=rsusr;pwd=Letmein123;database=rsdb") strSQL = New SqlCommand("insert into rsdata (graphic,contenttype,fname,lname,nname) values(@graphic,@contenttype,@fname,@lname,@nname)", objSQLConn) strSQL.Parameters.AddWithValue("@graphic", imageBytes) strSQL.Parameters.AddWithValue("@contenttype", strContentType) strSQL.Parameters.AddWithValue("@fname", txtfname.Text) strSQL.Parameters.AddWithValue("@lname", txtlname.Text) strSQL.Parameters.AddWithValue("@nname", txtnname.Text) objSQLConn.Open() strSQL.ExecuteNonQuery() objSQLConn.Close() lblStatus.Text = "Records uploaded" End If CODE TO DISPLAY Dim objSQLConn As SqlConnection Dim strSQL As SqlCommand Dim objSQLDataReader As SqlDataReader objSQLConn = New SqlConnection("server=srvdb1.rrg.local;uid=rsusr;pwd=Letmein123;database=rsdb") objSQLConn.Open() strSQL = New SqlCommand("select graphic, contenttype from rsdata", objSQLConn) objSQLDataReader = strSQL.ExecuteReader()While objSQLDataReader.Read() Response.ContentType = objSQLDataReader("contenttype") Response.BinaryWrite(objSQLDataReader("graphic"))End While objSQLDataReader.Close() objSQLConn.Close()%>
Hello,I'm successfully using SqlDatSource to read data from SQL Server on a networked machine. Obviously I'd like to be able to update, edit or delete data, but the 'Advanced Sql Generation Options' in the SqlDatSource are greyed out.The result is that when I try and edit, update or delete I get this message Updating is not supported by data source 'SqlDataSourceDetails' unless UpdateCommand is specified. Which makes sense because the options havn't been specified.I'm thinking this is probably a server side permissions issue but I've been through everything I can see and am now basically stuck.Any help would be appreciated Many thanks
Hi all I've a page which shows data (25-30 entries) that are retrieved by an SqlDataSource. The query is very simple since i don't have to join any table.unfortunately sometimes I get the following error message. It's strange, since the page often works fine but the error occurs a couple of times per day.Who has an idea of how I could solve this problem?
I have created a typed-dataset AuthorsDataSet and created a table in with name Authors, manually by right-click > New > Table. I have kept the data-types, sizes and contstriants exactly same as the table in the database, though I have kept the Column names different. I am filling the AuthorsDataSet with the following code on Form_Loadif (!IsPostBack) { SqlConnection conn = new SqlConnection(ConfigurationManager.ConnectionStrings["pubsConnectionString"].ConnectionString); SqlCommand cmd = new SqlCommand("SELECT au_id, au_lname, au_fname, phone, address, city, state, zip, contract FROM authors", conn); using (SqlDataAdapter da = new SqlDataAdapter(cmd)) { conn.Open(); da.Fill(ds.Authors); grdAuthors.DataSource = ds.Authors; grdAuthors.DataBind(); conn.Close(); } conn.Dispose(); cmd.Dispose(); } The connection string is as follows:<connectionStrings> <add name="pubsConnectionString" connectionString="Data Source = localhost; Initial Catalog = pubs; Integrated Security = SSPI"/> </connectionStrings> The following error occurs when I run the page System.Data.ConstraintException: Failed to enable constraints. One or more rows contain values violating non-null, unique, or foreign-key constraints.
Halo, I am a bit new to this Please can someone help me, I would like to write a file(Any type) to a SQL database like a attached document(s) for the current record and be able to detatch the document when needed. I use VB.NET for a ASP.NET app. I basicly would like to attach documents to a piece of equipment may it be any kind and if the user views the equipment he will be able to detatch the documents for that piece of equipment and open it with the correct software. PLEASE HELP!!!!!!!
I have a database that contains news items. There's a column that contains the actual article. In that field, there are paragraphs with page breaks. The page breaks in the database are represented as squares (unrecognizable characters I guess). When I try to read in the data, it doesn't recognize the page breaks, and it comes out all in one large paragraph. Is there any way to get around this?
Hi, I have a data structure called 'Quote' which contains a number of different variables and controls ranging from text boxes, check boxes and radio buttons, i need to be able to read and write this from a database.
First I think a description of my overall project is needed:
Project Description I have been given a brief that basically says: i have to create a programmed solution in VB to solve a problem. This problem can be anything we like, and I personally have chosen to create a program that manages quotes for building Log Cabins (this is very contrived and far from anything someone would do in the real world).
My solution will allow a generic user to create a quote (using a form with controls such as text boxes, check boxes, radio buttons) , and then save this to file. These users may then wish to load/edit this quote at a later date, from another form.
Whilst completing this project, i'll only have up to about 5 records (quotes) within the system, so i dont need the ability to store hundreds of records. And each record will be relatively short, with only about 10-15 data items within the data structure.
Also the Admin (or business owner in this case) need to be able to view all saved quotes in a presentable format, and edit them if needs be, from within this same program.
This solution does not need to be absolutely perfect and 100% efficiently coded, or have all the bells and whistles a real-world program would have. This is for an A level computing project by the way.
So basically, i need to be able to read from the database (to populate a Data Grid (i imagine this is best way?)) and so Admin can access any quote and edit it (editing is not vital, but viewing/printing is. Maybe i should stop at just viewing any quote?). Also i need generic users to be able to fill in the Edit Quote form and then save this data into the database.
And is a data structure really required for me to use a database?
I've never used databases in VB before (but have used them elsewhere, mainly Access) and so am completely new to this. Any help will be much appreciated. Thanks
Hi, i'm writing a SOCKET Port Listener for a Database, it must be multi-threaded and listen on a port for a record that when it comes in, it must write the record to the SQL database (MS SQL Server). I've got the listener to read the data over the port already and write the record into a string which i have already sliced up. Now i need to create a connection to the database and insert the variables into the database.
If Someone will please be able to give me a rough idea of how i could accomplish this with some sample code, then i will be greatful, i'm new to C#, but here is my code that i have so far.
//This is the Connection that i have made and where i am currently stuck, i dunno how to go further. Any help will be welcome.
public class ConnectionToMSDatabase { public void InsertDataIntoDatabase(string TableName, string connectionString, string dataFields) { string InsertSQLStatement; InsertSQLStatement = "INSERT INTO " + TableName + " VALUES (" + dataFields + ")";
Hi everyone I have a directory that contains a lot of text files that have data I need to draw from. I want to know if it is possible to write a program that will read all of the text files in the directory and pull out data and save it to a new textfile. For example: Each text file is formatted this wayColumn1, Column2, Column3"1","xxxx","yyyy""2", "xxxx", "yyyy""3", "XXXX", "yyyy" I want to put all lines that begin with 1 in one text file, all the lines that begin with two in another text file, and the same with all lines that begin with 3. my problem is I want to be able to point at the folder that contains those files and have it read every text file in the folder and perform the operation. If this is possible can someone point me in the right direction on how to get started.Thank you for any help!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
Hi all,I'm a complete newbie on ASP.Net.I want to get some data out of a SQLserver Database running on my system with SQL Server 2005 Express. The name of the Database is 'tempdb' and the table is called "Members". the SQLServer runs as Local System with the Windows account.When I try to open the site, I always get the same error:Invalid object name 'Members'I don't know what to do anymore. I read a post, where anybody set the rights for the owner, but my database is running with the Windows account.Here is the Code of the page so far:<%@ Page Language="VB" Debug="True" Strict="True" %><%@ Import Namespace="System.Data" %><%@ Import Namespace="System.Data.SQlClient" %><script runat="server">Sub Page_Load (ByVal Sender As Object, _ ByVal E As EventArgs) Dim connStr As String connStr = "Provider=Microsoft.Jet.OLEDB.4.0;" connStr += "database=tempdb;" connStr += "Truster_Connection=yes" Dim conn As New SQLConnection(connStr) conn.Open() Dim sql As String sql = "SELECT COUNT (*) FROM Members" Dim cmd As New SQLCommand(sql, conn) Dim ergebnis As String ergebnis = cmd.ExecuteScalar().toString() Dim t As String t = "Die Tabelle Members hat " & _ ergebnis & " Zeilen. <br>" & _ "Das Kommando lautet: " & _ cmd.CommandText & "<br>" & _ "Der Kommandotyp ist: " & _ cmd.CommandType ausgabe.innerHTML = t End Sub</script><html><head><title>Demo zu SQLCommand.ExecuteScalar</title></head><body><h3>Demo zu SQLCommand.ExecuteScalar</h3><p runat="server" id="ausgabe" /></body></html>Thanks for your help an sorry for my english.GreetsFlash_Prince