International text data, ntext vs text, and things to know

Posted on: Wed Sep 01 18:11:22 -0700 2010. Updated on: Wed Sep 01 18:11:22 -0700 2010.
Category: SQL Server 2005

In a MS SQL database have you ever wondered what the difference between ntext and text is or nvarchar and varchar? The n in front basically means those data types will support international characters. So if you've ever tried saving funky characters to the database and can't figure out why they come out as question marks, even you have your collection right, that is why.

Here is an interesting article that is worth reading, it is platform agnostic btw. http://joelonsoftware.com/articles/Unicode.html

Change Database Name in SQL Server

Posted on: Fri Jun 27 16:28:38 -0700 2008. Updated on: Fri Jun 27 16:28:38 -0700 2008.
Category: SQL Server 2005

Very easy to change a database name in sql server, but it must be done via a sql command

 —-Create db for test
CREATE DATABASE Test
GO
    —-Rename the Database Test
ALTER DATABASE Test MODIFY NAME = "New Test"
GO

Ads

Categories

About

Random foliage

This website is meant to be a reference for ASP Dot Net developers. The entries are a compilation of things I've figured out how to do and that I deem useful to keep of track for future reference. Assumptions: web development with: C Sharp (vb sucks), visual studio 05/08, .net 3.5, meant for programmers. Written by: James Reategui.