Click here to Skip to main content
15,887,214 members
Home / Discussions / Database
   

Database

 
Questionconvert nonnumberic nvarchar to float Pin
AndieDu27-Apr-09 19:25
AndieDu27-Apr-09 19:25 
AnswerRe: convert nonnumberic nvarchar to float Pin
Ashfield27-Apr-09 20:53
Ashfield27-Apr-09 20:53 
GeneralRe: convert nonnumberic nvarchar to float Pin
AndieDu27-Apr-09 21:50
AndieDu27-Apr-09 21:50 
GeneralRe: convert nonnumberic nvarchar to float Pin
riced28-Apr-09 0:29
riced28-Apr-09 0:29 
GeneralRe: convert nonnumberic nvarchar to float Pin
AndieDu28-Apr-09 1:22
AndieDu28-Apr-09 1:22 
GeneralRe: convert nonnumberic nvarchar to float Pin
Ashfield28-Apr-09 1:34
Ashfield28-Apr-09 1:34 
GeneralRe: convert nonnumberic nvarchar to float Pin
AndieDu28-Apr-09 13:45
AndieDu28-Apr-09 13:45 
QuestionBest Way to Store File Paths & File Names Pin
Jammer27-Apr-09 10:50
Jammer27-Apr-09 10:50 
Hi All,

I'm making some schema changes to an SqlCe 3.5 database and have a question about the best method to store these types of values.

Currently the DB stores a path "C:\directory1\directory2\" and a file name "filename.ext" both in NTEXT fields.

This seems wrong and cumbersome but due to NVARCHAR being limited to 255 (and NTFS MAX_PATH being 260) it seems the best solution is to use three nvarchar fields.

NVARCHAR[3]   "C:\" 
NVARCHAR[255] "directory1\directory2\" 
NVARCHAR[255] "filename.ext"  


One thing I did notice was the "Edit Table Schema" dialog in C# Express allowed me to make an NVARCHAR[500] field and didn't throw any errors ... is the NVARCHAR character limit in 3.5 SP1 higher than 255? I can only find details on the data types for SqlCe 2000 ...

http://technet.microsoft.com/en-us/library/aa237918(SQL.80).aspx[^]

Cheers,


AnswerRe: Best Way to Store File Paths & File Names Pin
Mycroft Holmes27-Apr-09 18:56
professionalMycroft Holmes27-Apr-09 18:56 
QuestionAuto backup in sql server 2005 Pin
Jagz W27-Apr-09 6:53
professionalJagz W27-Apr-09 6:53 
AnswerMaintenance Plan Pin
David Mujica27-Apr-09 7:42
David Mujica27-Apr-09 7:42 
GeneralRe: Maintenance Plan Pin
Jagz W27-Apr-09 18:54
professionalJagz W27-Apr-09 18:54 
QuestionImport data from Oracle ti SQL 2005 Pin
reynaldosp27-Apr-09 5:18
reynaldosp27-Apr-09 5:18 
AnswerRe: Import data from Oracle ti SQL 2005 Pin
Mycroft Holmes27-Apr-09 19:03
professionalMycroft Holmes27-Apr-09 19:03 
QuestionSQL TABLE Pin
kibromg27-Apr-09 4:58
kibromg27-Apr-09 4:58 
AnswerRe: SQL TABLE Pin
Mycroft Holmes27-Apr-09 18:51
professionalMycroft Holmes27-Apr-09 18:51 
QuestionCrystal report Pin
hitesh.kalra26-Apr-09 22:01
hitesh.kalra26-Apr-09 22:01 
AnswerRe: Crystal report Pin
Mycroft Holmes27-Apr-09 19:06
professionalMycroft Holmes27-Apr-09 19:06 
QuestionMs Access Pin
hitesh.kalra26-Apr-09 21:59
hitesh.kalra26-Apr-09 21:59 
AnswerRe: Ms Access Pin
Eddy Vluggen27-Apr-09 23:30
professionalEddy Vluggen27-Apr-09 23:30 
GeneralRe: Ms Access Pin
hitesh.kalra29-Apr-09 21:32
hitesh.kalra29-Apr-09 21:32 
Questionrun time exception Pin
Mangesh Tomar26-Apr-09 17:59
Mangesh Tomar26-Apr-09 17:59 
AnswerRe: run time exception Pin
riced27-Apr-09 4:14
riced27-Apr-09 4:14 
QuestionReg:Extract View information in Sql server Pin
Member 400849226-Apr-09 17:55
Member 400849226-Apr-09 17:55 
AnswerRe: Reg:Extract View information in Sql server Pin
Mycroft Holmes27-Apr-09 19:09
professionalMycroft Holmes27-Apr-09 19:09 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.