Click here to Skip to main content
15,922,155 members
Home / Discussions / Database
   

Database

 
GeneralADO book Pin
Rickard Andersson2024-Nov-02 23:28
Rickard Andersson2024-Nov-02 23:28 
GeneralRe: ADO book Pin
Christian Graus25-Nov-02 12:08
protectorChristian Graus25-Nov-02 12:08 
GeneralRe: ADO book Pin
Rickard Andersson2025-Nov-02 21:32
Rickard Andersson2025-Nov-02 21:32 
GeneralRe: ADO book Pin
Christian Graus25-Nov-02 22:02
protectorChristian Graus25-Nov-02 22:02 
GeneralRe: ADO book Pin
Rickard Andersson2025-Nov-02 22:28
Rickard Andersson2025-Nov-02 22:28 
GeneralRe: ADO book Pin
Michael P Butler27-Nov-02 2:33
Michael P Butler27-Nov-02 2:33 
GeneralRe: ADO book Pin
Rickard Andersson2027-Nov-02 3:46
Rickard Andersson2027-Nov-02 3:46 
GeneralRe: ADO book Pin
Jon Sagara3-Dec-02 7:16
Jon Sagara3-Dec-02 7:16 
Generalrollback triggers Pin
dmanoharan24-Nov-02 22:24
dmanoharan24-Nov-02 22:24 
GeneralRe: rollback triggers Pin
Rob Graham25-Nov-02 17:39
Rob Graham25-Nov-02 17:39 
GeneralLicense Question Pin
Roger Wright24-Nov-02 20:11
professionalRoger Wright24-Nov-02 20:11 
GeneralRe: License Question Pin
SimonS24-Nov-02 20:25
SimonS24-Nov-02 20:25 
GeneralRe: License Question Pin
Roger Wright24-Nov-02 20:43
professionalRoger Wright24-Nov-02 20:43 
Questionhow can i repair and compact the access2000 database using ado in vc? Pin
whelk24-Nov-02 17:34
whelk24-Nov-02 17:34 
AnswerRe: how can i repair and compact the access2000 database using ado in vc? Pin
John Wong27-Nov-02 22:13
John Wong27-Nov-02 22:13 
GeneralRe: how can i repair and compact the access2000 database using ado in vc? Pin
whelk1-Dec-02 16:10
whelk1-Dec-02 16:10 
GeneralRe: how can i repair and compact the access2000 database using ado in vc? Pin
whelk2-Dec-02 14:04
whelk2-Dec-02 14:04 
GeneralRe: how can i repair and compact the access2000 database using ado in vc? Pin
John Wong2-Dec-02 21:34
John Wong2-Dec-02 21:34 
GeneralRe: how can i repair and compact the access2000 database using ado in vc? Pin
whelk2-Dec-02 22:38
whelk2-Dec-02 22:38 
GeneralRe: how can i repair and compact the access2000 database using ado in vc? Pin
John Wong3-Dec-02 22:09
John Wong3-Dec-02 22:09 
GeneralRe: Milli second resolution in DateTime Pin
Rob Graham23-Nov-02 6:12
Rob Graham23-Nov-02 6:12 
It already has that resolution (actually 100 nanosecond resolution), but if you are displaying it in a datagrid the default column format does not show it. try:

		private	static	String	timeFormat = "MM/dd/yy HH:mm:ss:fff";<br />
		private	static	int		timeColumnWidth = 120;<br />
<br />
			DataGridTableStyle ts1 = new DataGridTableStyle();<br />
			foreach (DataColumn dc in dataTable.Columns)<br />
			if (dc.DataType == typeof(DateTime))<br />
			{<br />
			    columnFmt.Format = timeFormat;<br />
			    columnFmt.Width = timeColumnWidth;<br />
			}<br />
			ts1.GridColumnStyles.Add(columnFmt);<br />
			ts1.MappingName = dataTable.TableName;<br />
			ts1.ColumnHeadersVisible = true;<br />
			ts1.ReadOnly = true;<br />
			dataGrid1.TableStyles.Clear();<br />
			dataGrid1.TableStyles.Add(ts1);<br />
			dataGrid1.DataSource = dataTable;<br />
<br />


If you are trying to save this to SQL server, it can only handle a resolution of 3 ms in the SqlDateTime fields, Other databases may share the same lack of resolution or worse with thier 'Native' date/time columns You might have to convert the DateTimes to a long integer (DateTime.Ticks) and save that, converting back when you read it

-- Always be sure to maintain adequate insulation between lap and Laptop

Rob
GeneralRe: Milli second resolution in DateTime Pin
Majid Shahabfar26-Nov-02 0:34
Majid Shahabfar26-Nov-02 0:34 
QuestionRecordCount Property return me -1? Pin
anju22-Nov-02 2:07
anju22-Nov-02 2:07 
AnswerRe: RecordCount Property return me -1? Pin
Nick Parker22-Nov-02 2:25
protectorNick Parker22-Nov-02 2:25 
GeneralRe: RecordCount Property return me -1? Pin
anju22-Nov-02 20:46
anju22-Nov-02 20:46 

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.