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

Database

 
AnswerRe: Difference between records Pin
Michael Potter21-Nov-05 4:09
Michael Potter21-Nov-05 4:09 
QuestionQuery to insert datas from Remote System's Sql Server Pin
Rajkamal_dfine20-Nov-05 18:26
Rajkamal_dfine20-Nov-05 18:26 
AnswerRe: Query to insert datas from Remote System's Sql Server Pin
WoutL21-Nov-05 5:39
WoutL21-Nov-05 5:39 
Questionsql - Dynamic ID creations Pin
UK_NAIR20-Nov-05 17:56
UK_NAIR20-Nov-05 17:56 
AnswerRe: sql - Dynamic ID creations Pin
Stanciu Vlad20-Nov-05 22:47
Stanciu Vlad20-Nov-05 22:47 
QuestionProblems Formating Datagrid Output Pin
TofuBug2420-Nov-05 14:21
TofuBug2420-Nov-05 14:21 
AnswerRe: Problems Formating Datagrid Output Pin
Stanciu Vlad20-Nov-05 22:41
Stanciu Vlad20-Nov-05 22:41 
GeneralRe: Problems Formating Datagrid Output Pin
TofuBug2421-Nov-05 1:33
TofuBug2421-Nov-05 1:33 
The data is already in the db i've tried entering the fields that require just the time and not the date with:

1. only the time
2. the same date as the date only field + the time

the data all looks fine in the database itself

the problem is when the dataadapter fills my dataset (which is a auto generated typed dataset) the fields for the time only items still only show the date regardless if i entered it as 1 or 2 above

here's my stored procedure to look at too if that helps

ALTER PROCEDURE dbo.GetJobs
/*
(
@parameter1 datatype = default value,
@parameter2 datatype OUTPUT
)
*/
AS SELECT Job.JobID, Job.JobTitle, Job.JobTimeStart, Job.JobTimeStop
From Job
/* SET NOCOUNT ON */
RETURN

now running this stored procedure in vs returns only the time as they were entered into the db

now if i use the preview data option in vs for the data adapter suddenly that arbitrary date shows up but the time is gone.

also when i bind it to a datagrid control the same happens

when i tried binding one of the members that should return a time to a listbox it shows the same arbitray date plus the correct time.

so that tells me my stored procedure is working and even though it isn't showing everything the dataadapter is filling the dataset with the date and time for the db members correctly

so how do i change how the datagrid displays dates and times is it something i have to do at run time and if so what


Ryan

"Smile often!.... it distracts people while you load the gun."
GeneralRe: Problems Formating Datagrid Output Pin
S Douglas22-Nov-05 1:18
professionalS Douglas22-Nov-05 1:18 
QuestionDataGrid & DataRelation Pin
RoyRose7820-Nov-05 5:03
RoyRose7820-Nov-05 5:03 
QuestionHow to Kill a process in procedure? Pin
GflPower19-Nov-05 20:32
GflPower19-Nov-05 20:32 
AnswerRe: How to Kill a process in procedure? Pin
WoutL21-Nov-05 9:17
WoutL21-Nov-05 9:17 
QuestionSql Scripts in C# Pin
da vinci coder19-Nov-05 17:56
da vinci coder19-Nov-05 17:56 
AnswerRe: Sql Scripts in C# Pin
Colin Angus Mackay20-Nov-05 8:13
Colin Angus Mackay20-Nov-05 8:13 
Questionreturning guid from row jsut added Pin
g00fyman19-Nov-05 15:53
g00fyman19-Nov-05 15:53 
QuestionSave difficult ...!!! Pin
mostafa_h19-Nov-05 4:55
mostafa_h19-Nov-05 4:55 
Questiontrying to install SQL SERVER 2000 Pin
microuser_200019-Nov-05 3:51
microuser_200019-Nov-05 3:51 
AnswerRe: trying to install SQL SERVER 2000 Pin
Colin Angus Mackay19-Nov-05 10:08
Colin Angus Mackay19-Nov-05 10:08 
Questionreplace single quotes in SELECT Pin
jszpila18-Nov-05 6:43
jszpila18-Nov-05 6:43 
AnswerRe: replace single quotes in SELECT Pin
Colin Angus Mackay18-Nov-05 13:44
Colin Angus Mackay18-Nov-05 13:44 
QuestionSQL Reporting Services Error Pin
utsav_verma17-Nov-05 19:07
utsav_verma17-Nov-05 19:07 
QuestionA Transact-SQL Question Pin
Xiaoming Qian16-Nov-05 20:37
Xiaoming Qian16-Nov-05 20:37 
AnswerRe: A Transact-SQL Question Pin
Grav-Vt17-Nov-05 12:56
Grav-Vt17-Nov-05 12:56 
Questionscope identity not a function name Pin
kal2na216-Nov-05 19:37
kal2na216-Nov-05 19:37 
AnswerRe: scope identity not a function name Pin
Grav-Vt17-Nov-05 12:57
Grav-Vt17-Nov-05 12:57 

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.