Home
Get Started
Learn
Downloads
AJAX
MVC
Community
Wiki
Forums
Sign in
|
Join
Home
›
ASP.NET Forums
›
Search
Search
You searched for the word(s): userid:719741
More Search Options
RSS Available
Matching Posts
Re: utf-8 in database varchar
How do you use COLLATE? I thought the collate only affected sort order or comparisons? Does it also affect how the data is stored? If it does I assume it only affects which codepage is used to convert characters. This is not the same as UTF-8 encoding. I don't think there is a collation to force storage in utf-8 format.
Posted to
Localization
(Forum)
by
skysailor
on 5/23/2007
Re: utf-8 in database varchar
Is it possible for a function to return a varchar with different lengths? It seems as though I need to decalre the return variable as say type varchar(100). I need to be able to handle various string lengths. Can I pass in the length of the string and use that when defining the varchar inoput and output lengths? Otherwise I need a function for every possible string field length.
Posted to
Localization
(Forum)
by
skysailor
on 5/23/2007
Re: utf-8 in database varchar
I don't use stored procedures in the existing application. And there are two many tables to create stored procedures for them all. The code would have to change too much. So for now I am stuck with varchar fields. Is it not possible to cast the nvarchar to a varchar when saving the data to the database? I tried to write a stored function and it gives and exception. My function was :- CREATE FUNCTION dbo.fnStringWrite ( @S nvarchar(100) ) RETURNS varchar(100) AS BEGIN DECLARE @RETURN varchar(100
Posted to
Localization
(Forum)
by
skysailor
on 5/23/2007
Re: Custom DB field handlers
Thankyou, the functions were very helpful. I changed the internal type to BIT instead of CHAR(1) and it worked really well. In VS2005 Datasets these fields now appear as Boolean.
Posted to
Data Access and ObjectDataSource Control
(Forum)
by
skysailor
on 5/23/2007
Re: utf-8 in database varchar
So can the stored procedure return a field as a different datatype to the one stored? How is this conversion handled? Can you ensure that the varchar is encoded as utf-8 and not using a codepage?
Posted to
Localization
(Forum)
by
skysailor
on 5/21/2007
Re: Custom DB field handlers
Thankyou. That is very helpful. Adding a stored procedure layer for compatability is probably a good idea. I have not used stored procedures before. I was wondering if you could give a function/proc for UPDATE/INSERT. When storing I need to convert back from a Boolean to the T/F string. But if the field if nullable then the F should be stored as a NULL. Thanks again.
Posted to
Data Access and ObjectDataSource Control
(Forum)
by
skysailor
on 5/21/2007
Re: Custom DB field handlers
We don't use any stored procedures. It uses direct table access. We have many fields over many tables with this boolean treatment. We would also need to be able to read and write the field as Boolean.
Posted to
Data Access and ObjectDataSource Control
(Forum)
by
skysailor
on 5/20/2007
Custom DB field handlers
Is it possible to create custom database fields handlers for use with datasets/datatables in VS2005? I would like to do some dataconversions when reading some fields from the database. For example we have some fields that have F/T as character text and I'd like to convert that to a Boolean type internally. Is this possible?
Posted to
Data Access and ObjectDataSource Control
(Forum)
by
skysailor
on 5/18/2007
utf-8 in database varchar
We have existing SQL Server databases with all text fields defined as varchar (not nvarchar) and the text in them is actually UTF-8. Our old system (written in Delphi) will read and write those strings correctly and display the international characters on a web page etc. We are rewriting our system in ASP.NET and using Datasets to access the data. Reading/writing the data does not treat the data as utf-8. How can I get it to treat it as utf-8?
Posted to
Localization
(Forum)
by
skysailor
on 5/18/2007
Re: Calling Static methods on Code Behind class of WebForm
I found that if I put a <%@ Reference Page="rrrr.aspx" %> driective in one page then I can refer to the other page class file directly from the first page using the ASP namespace. That is exactly what I wanted. However it can't be used from app_code classes. And the killer - it can't be used if you Publish your web site!! So close. I have to publish/compile my web site.
Posted to
Web Forms
(Forum)
by
skysailor
on 4/19/2007
Page 1 of 2 (13 items) 1
2
Next >
Channel 10:
iBing uBing: Bing iPhone App Arrives
WindowsClient:
Migrating an Outlook Client to .NET Framework 4 in Visual Studio 2010
Channel 10:
A Look Behind Mouse 2.0
WindowsClient:
Using Speech Synthesis in .NET 4 and Windows 7
Channel 10:
Office 2010 "5 Rules" Presentation
ASP.NET:
Live Preview jQuery Plugin
WindowsClient:
Remember JScript closures capture all variables in scope
TechNet Edge:
UAG reaches RTM
Channel 9:
Who, What, When, Where, Why and How of MIX10
Channel 10:
Berlin Wall in Silverlight
TechNet Edge:
System Center Operations Manager 2007 R2 – Service Level Dashboard part 2, Installation
Silverlight:
Contributing to the SL HVP
Silverlight:
Best SF Books of All Time
Channel 9:
Reactive Extensions API in depth: Repeat
Channel 9:
Jeffrey Van Gogh: Testing Rx with Pex
Channel 9:
The Visual Studio Documentary: Dan Fernandez Full Length Interview
ASP.NET:
Search Engine Optimization (SEO) Toolkit
Channel 10:
This Is Your Data on Silverlight
ASP.NET:
How the IIS SEO Toolkit Saved My Butt
TechNet Edge:
Windows 7 XP Mode User Experience
Microsoft Communities
ASP.NET
Channel 8
Channel 9
Channel 10
IIS.NET
Silverlight
TechNet Edge
WindowsClient
Mix Online