SQL Server Forums
Profile | Register | Active Topics | Members | Search | Forum FAQ
 
Register Now and get your question answered!
Username:
Password:
Save Password
Forgot your Password?

 All Forums
 SQL Server 2008 Forums
 Other SQL Server 2008 Topics
 database column names not showing properly
 New Topic  Reply to Topic
 Printer Friendly
Author Previous Topic Topic Next Topic  

panosrob
Starting Member

Greece
2 Posts

Posted - 09/23/2012 :  16:52:51  Show Profile  Reply with Quote
I have a greek database in sql server 2008 and i'm using php to retrieve
the data to a website.In the connection parameters i added CharacterSet=utf-8 and in the html header charset=utf-8.The datatype of every string field is nvarchar.When i retrieve the data from the sql server it shows properly on the website,but if i retrieve the column names with sqlsrv_field_metadata it shows the column names with questionmarks.If retrieve the column names from the information_schema.columns view it shows properly.What can i do to get column names from sqlsrv_field_metadata?
Is there a way to find out if the column names are varchar or nvarchar?

visakh16
Very Important crosS Applying yaK Herder

India
52317 Posts

Posted - 09/23/2012 :  20:09:46  Show Profile  Reply with Quote
does collation supports greek characters?

------------------------------------------------------------------------------------------------------
SQL Server MVP
http://visakhm.blogspot.com/

Go to Top of Page

panosrob
Starting Member

Greece
2 Posts

Posted - 09/25/2012 :  11:36:08  Show Profile  Reply with Quote
the database collation is greek_ci_as.
Go to Top of Page
  Previous Topic Topic Next Topic  
 New Topic  Reply to Topic
 Printer Friendly
Jump To:
SQL Server Forums © 2000-2009 SQLTeam Publishing, LLC Go To Top Of Page
This page was generated in 0.16 seconds. Powered By: Snitz Forums 2000