Click here to Skip to main content
16,012,153 members
Home / Discussions / Database
   

Database

 
QuestionColumns or Rows - Which will consume more DB Space ? Pin
N a v a n e e t h16-May-07 4:52
N a v a n e e t h16-May-07 4:52 
AnswerRe: Columns or Rows - Which will consume more DB Space ? Pin
Colin Angus Mackay16-May-07 5:16
Colin Angus Mackay16-May-07 5:16 
GeneralRe: Columns or Rows - Which will consume more DB Space ? Pin
N a v a n e e t h16-May-07 17:55
N a v a n e e t h16-May-07 17:55 
QuestionFull-text searching of xml Pin
slappe16-May-07 3:40
slappe16-May-07 3:40 
QuestionInsert Stored Procedure taking values from vb Help [modified] Pin
Vimalsoft(Pty) Ltd16-May-07 2:48
professionalVimalsoft(Pty) Ltd16-May-07 2:48 
AnswerRe: Insert Stored Procedure taking values from vb Help Pin
Dave Kreskowiak16-May-07 4:49
mveDave Kreskowiak16-May-07 4:49 
GeneralRe: Insert Stored Procedure taking values from vb Help Pin
Vimalsoft(Pty) Ltd16-May-07 4:55
professionalVimalsoft(Pty) Ltd16-May-07 4:55 
QuestionDateTime Timestamp Pin
Senseicads16-May-07 1:59
Senseicads16-May-07 1:59 
Hi everyone

Hope someone can help me cos I am becoming more and more stumped. Frown | :( Its a bit involved so please bear with me.

I have a datetime column in a table. This is set via a stored proc in vb.net to be of a type Data.SqlDbType.DateTime. Now this stores the Date passed in as mm-dd-yyyy. When I read it back vb.net does a grand job of turning it into the localised(UK) format, which is dd-mm-yyy for me with no extra processing on my behalf.

Problem comes in a view that I am using. This has two additional columns made up from this date using the commands.

, CAST(CONVERT(CHAR(10), dt_requested,103) as datetime) 'dt_requested_date'<br />
, CAST(CONVERT(CHAR(8), dt_requested,8) as datetime)-2 'dt_requested_time'


This is mostly so that I can perform so time analysis on the fields. However this does not work as I get a convert error with the casting of the datatype because even tho vb.net is expecting to read it in as mm-dd-yyyy and not in the way it is stored as dd-mm-yyyy. The other chaps that I work with say that in vb6 they used the TimeStamp sql Data type to store it as a binary but I am unable to get that to work with vb.net as it says it needs to be converted from a byte() which as the date is being read in as a string won't work...or I can't get it to work...one of the two.

Can anyone help me out? its driven me mad all morning! If you need any further info let me know. realise I prob haven't explained it too well Sniff | :^) lol

Thanks

Ian
AnswerRe: DateTime Timestamp Pin
gauthee16-May-07 2:42
gauthee16-May-07 2:42 
GeneralRe: DateTime Timestamp Pin
Senseicads16-May-07 3:13
Senseicads16-May-07 3:13 
Questionhow to drop a column Pin
ArchaBhandare15-May-07 23:50
ArchaBhandare15-May-07 23:50 
AnswerRe: how to drop a column Pin
Arun.Immanuel15-May-07 23:55
Arun.Immanuel15-May-07 23:55 
AnswerRe: how to drop a column Pin
chand1015-May-07 23:59
chand1015-May-07 23:59 
QuestionI want to insert COUNT(*) and SUM(column1) values into another table? Pin
chand1015-May-07 23:31
chand1015-May-07 23:31 
AnswerRe: I want to insert COUNT(*) and SUM(column1) values into another table? Pin
Arun.Immanuel15-May-07 23:52
Arun.Immanuel15-May-07 23:52 
GeneralRe: I want to insert COUNT(*) and SUM(column1) values into another table? Pin
chand1016-May-07 1:01
chand1016-May-07 1:01 
AnswerRe: I want to insert COUNT(*) and SUM(column1) values into another table? Pin
WoutL16-May-07 0:22
WoutL16-May-07 0:22 
Questionextern key Pin
WhiteGirl2315-May-07 23:03
WhiteGirl2315-May-07 23:03 
QuestionInstrument Specifications Pin
chancomsats15-May-07 19:45
chancomsats15-May-07 19:45 
QuestionProblem in populating Datagrid with Stored Procedure? Pin
chand1015-May-07 19:18
chand1015-May-07 19:18 
AnswerRe: Problem in populating Datagrid with Stored Procedure? Pin
gauthee15-May-07 19:40
gauthee15-May-07 19:40 
QuestionRe: Problem in populating Datagrid with Stored Procedure? [modified] Pin
chand1015-May-07 20:06
chand1015-May-07 20:06 
AnswerRe: Problem in populating Datagrid with Stored Procedure? Pin
gauthee15-May-07 20:49
gauthee15-May-07 20:49 
GeneralRe: Problem in populating Datagrid with Stored Procedure? [modified] Pin
chand1015-May-07 21:35
chand1015-May-07 21:35 
GeneralRe: Problem in populating Datagrid with Stored Procedure? Pin
gauthee15-May-07 23:27
gauthee15-May-07 23:27 

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.