Click here to Skip to main content
15,896,269 members
Home / Discussions / Database
   

Database

 
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 
GeneralTrying to close Access DB while app running... Pin
LukeV21-Nov-02 9:11
LukeV21-Nov-02 9:11 
GeneralRe: Trying to close Access DB while app running... Pin
Rob Graham21-Nov-02 10:14
Rob Graham21-Nov-02 10:14 
GeneralRe: Trying to close Access DB while app running... Pin
LukeV22-Nov-02 3:10
LukeV22-Nov-02 3:10 
GeneralRe: Trying to close Access DB while app running... Pin
Rob Graham22-Nov-02 8:17
Rob Graham22-Nov-02 8:17 
GeneralOpinon: Direct remote access to SQL Server Pin
clintsinger21-Nov-02 6:17
clintsinger21-Nov-02 6:17 
GeneralRe: Opinon: Direct remote access to SQL Server Pin
Rob Graham21-Nov-02 8:04
Rob Graham21-Nov-02 8:04 
GeneralSQL Server OLEDB Provider and Narrow Characters Pin
Jörgen Sigvardsson20-Nov-02 22:57
Jörgen Sigvardsson20-Nov-02 22:57 
GeneralSQL Server Syntax for a CROSSTAB QUERY from MSAccess Pin
acosmin19-Nov-02 22:42
acosmin19-Nov-02 22:42 
GeneralRe: SQL Server Syntax for a CROSSTAB QUERY from MSAccess Pin
Nick Parker20-Nov-02 8:30
protectorNick Parker20-Nov-02 8:30 
GeneralSQL Server Syntax for a CROSSTAB QUERY in MSAccess Pin
acosmin19-Nov-02 22:39
acosmin19-Nov-02 22:39 
GeneralUser / system objects Pin
leppie19-Nov-02 12:22
leppie19-Nov-02 12:22 
QuestionCreate table and choosing a datetime format ? Pin
Bart-Man19-Nov-02 9:05
Bart-Man19-Nov-02 9:05 
AnswerSolution to my problem Pin
Bart-Man19-Nov-02 10:34
Bart-Man19-Nov-02 10:34 

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.