| | |
Can't insert special characters to SQL
Please support our MS SQL advertiser: Intel Parallel Studio Home
Thread Solved |
•
•
Join Date: Oct 2008
Posts: 56
Reputation:
Solved Threads: 1
Hi Everyone!
I have to make a forum with MS SQL, and, as I'm Hungarian, we use characters, like áéíőúű, etc. Now, if I insert a text with the letter ő or ű, I get back o and u. How can I solve this problem?
The users write posts in an aspx website, by a textbox. I use this code in the insertcommand:
Oh, and is there any way to count an SQL database's rows? That way, I could allow paging..
Thank you!
I have to make a forum with MS SQL, and, as I'm Hungarian, we use characters, like áéíőúű, etc. Now, if I insert a text with the letter ő or ű, I get back o and u. How can I solve this problem?
The users write posts in an aspx website, by a textbox. I use this code in the insertcommand:
sql Syntax (Toggle Plain Text)
@"INSERT INTO Forum2 (Sorszám, Idő, Feladó, Üzenet) VALUES (" + GridView1.Rows.Count + ", '" + DATETIME.NOW + "', '" + namebox.TEXT.ToString() + "', '" + @message.TEXT.ToString() + "')";
Oh, and is there any way to count an SQL database's rows? That way, I could allow paging..
Thank you!
Last edited by peter_budo; Nov 5th, 2008 at 9:25 pm. Reason: Keep It Organized - For easy readability, always wrap programming code within posts in [code] (code blocks) and [icode] (inline code) tags.
•
•
Join Date: Aug 2008
Posts: 1,160
Reputation:
Solved Threads: 137
row count is easy, just use
what is the character set of the db?
MS SQL Syntax (Toggle Plain Text)
SELECT count(*) FROM TABLE
what is the character set of the db?
Custom Application & Software Development
www.houseshark.net
www.houseshark.net
![]() |
Similar Threads
Other Threads in the MS SQL Forum
- Previous Thread: Insert_Update Stored Procedure and returning Identity
- Next Thread: convertion..
| Thread Tools | Search this Thread |






