I'm using the following code to retrieve a message from the database and then write it out to a html page:
Dim strDSN, cnn, cmd
strDSN = "Driver={SQL Server};" & "Server=(local)\sql2k5;" & ...
set cnn = Server.CreateObject("ADODB.Connection")
cnn.ConnectionString = strDSN
cnn.CursorLocation = adUseClient
cnn.Open
set cmd = Server.CreateObject("ADODB.Command")
set cmd.ActiveConnection = cnn
cmd.CommandText = "select Message from tblRecipients where ID = 72"
cmd.CommandType = adCmdText
set getRecordset = Server.CreateObject("ADODB.Recordset")
getRecordset.Open cmd, , adOpenKeyset, adLockReadOnly
Response.write getRecordset("Message")
however all I get is "???????". I checked it wasn't the browser, that is what is actually written out.
to insert the message I ran update tblRecipients set Message = N'Добре' where ID = 72 in SQL server manager.
Any help on how to get it to display properly?