Click here to Skip to main content
15,911,785 members
Home / Discussions / Database
   

Database

 
QuestionGrouping events that fall within x days of other events? Pin
T-Smooth27-Sep-06 16:34
T-Smooth27-Sep-06 16:34 
QuestionHow to Select the last N records based on date? Pin
shapper27-Sep-06 15:42
shapper27-Sep-06 15:42 
AnswerRe: How to Select the last N records based on date? Pin
nguyenvhn27-Sep-06 16:00
nguyenvhn27-Sep-06 16:00 
GeneralRe: How to Select the last N records based on date? Pin
shapper27-Sep-06 16:52
shapper27-Sep-06 16:52 
GeneralRe: How to Select the last N records based on date? Pin
nguyenvhn28-Sep-06 0:23
nguyenvhn28-Sep-06 0:23 
QuestionSQL Server Reporting Services ReportViewer Pin
catmom27-Sep-06 11:46
catmom27-Sep-06 11:46 
Questiongetting information based on DateTime Pin
ONeil Tomlinson27-Sep-06 10:39
ONeil Tomlinson27-Sep-06 10:39 
AnswerRe: getting information based on DateTime Pin
nguyenvhn27-Sep-06 16:05
nguyenvhn27-Sep-06 16:05 
<br />
select *<br />
from order<br />
WHERE ord_date = @ComparedDate<br />


@ComparedDate is a DateTime parameter, you have to provide it's value from caller.

<br />
Dim cmd as new SqlCommand(select * from order WHERE ord_date = @ComparedDate", conn)<br />
cmd.Parameters.Add(new SqlParameter("@ComparedDate", SqlDataType.DateTime)).Value=Convert.ToDateTime("14/09/1994")<br />
Dim reader as SqlDataReader=cmd.ExecuteReader()<br />
...<br />

QuestionUpdate DB from DataGridView Pin
anderslundsgard27-Sep-06 10:22
anderslundsgard27-Sep-06 10:22 
QuestionRestore "AdventureWorks" database Pin
VK-Cadec27-Sep-06 9:53
VK-Cadec27-Sep-06 9:53 
AnswerRe: Restore "AdventureWorks" database Pin
Chris Buckett28-Sep-06 23:35
Chris Buckett28-Sep-06 23:35 
QuestionExecuting a Stored Procedure thru VS2005 Pin
Brendan Vogt27-Sep-06 4:25
Brendan Vogt27-Sep-06 4:25 
AnswerRe: Executing a Stored Procedure thru VS2005 Pin
nguyenvhn27-Sep-06 16:09
nguyenvhn27-Sep-06 16:09 
QuestionError: Attempt to open a table failed - there were no columns to retrieve were specified. Pin
AbbyDabby27-Sep-06 4:19
AbbyDabby27-Sep-06 4:19 
AnswerRe: Error: Attempt to open a table failed - there were no columns to retrieve were specified. Pin
Kschuler27-Sep-06 8:34
Kschuler27-Sep-06 8:34 
QuestionComplex SQL View Pin
Dayekh27-Sep-06 1:45
Dayekh27-Sep-06 1:45 
AnswerRe: Complex SQL View Pin
albCode27-Sep-06 2:18
albCode27-Sep-06 2:18 
GeneralRe: Complex SQL View Pin
Dayekh27-Sep-06 3:06
Dayekh27-Sep-06 3:06 
GeneralRe: Complex SQL View Pin
albCode27-Sep-06 3:10
albCode27-Sep-06 3:10 
GeneralRe: Complex SQL View Pin
Dayekh27-Sep-06 3:15
Dayekh27-Sep-06 3:15 
GeneralRe: Complex SQL View Pin
albCode27-Sep-06 3:30
albCode27-Sep-06 3:30 
GeneralRe: Complex SQL View Pin
Dayekh27-Sep-06 3:48
Dayekh27-Sep-06 3:48 
GeneralRe: Complex SQL View Pin
albCode27-Sep-06 3:58
albCode27-Sep-06 3:58 
QuestionInsert Record in Tables Pin
shapper27-Sep-06 1:18
shapper27-Sep-06 1:18 
AnswerRe: Insert Record in Tables Pin
Mike Dimmick27-Sep-06 2:13
Mike Dimmick27-Sep-06 2:13 

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.