Click here to Skip to main content
15,885,365 members
Home / Discussions / Database
   

Database

 
GeneralRe: plz tell me how Pin
pmarfleet19-Dec-07 0:29
pmarfleet19-Dec-07 0:29 
GeneralRe: plz tell me how Pin
Paul Conrad19-Dec-07 16:36
professionalPaul Conrad19-Dec-07 16:36 
QuestionC#:Password encryption algorithm Pin
kssknov18-Dec-07 21:04
kssknov18-Dec-07 21:04 
GeneralWrong forum Pin
pmarfleet18-Dec-07 21:23
pmarfleet18-Dec-07 21:23 
GeneralUPDATE depends on UPDATE, the two UPDATEs come together Pin
followait18-Dec-07 17:39
followait18-Dec-07 17:39 
GeneralRe: UPDATE depends on UPDATE, the two UPDATEs come together Pin
SimulationofSai18-Dec-07 20:09
SimulationofSai18-Dec-07 20:09 
GeneralRe: UPDATE depends on UPDATE, the two UPDATEs come together Pin
GuyThiebaut18-Dec-07 22:41
professionalGuyThiebaut18-Dec-07 22:41 
Generalselect year/month syntax (for contracts up for renewal in X month) Pin
tellytub18-Dec-07 16:09
tellytub18-Dec-07 16:09 
Hi all,

I'm currently doing a contract and supplier system, using VB.net and MSSQL.

I have this table (Contract) containing the following fields:

Contract_ID INT NOT NULL,<br />
Vendor_ID INT NOT NULL,<br />
ContractDate datetime,<br />
DateStart datetime,<br />
DateDue datetime,<br />
PRIMARY KEY(Contract_ID),<br />
FOREIGN KEY (Vendor_ID) REFERENCES Vendor(Vendor_ID)


1) I am going to do something like select contracts up for renewal in X months, eg in 3 months. (the syntax is one thing i'm not sure)

2) But the datetime format for both VB.net and MSSQL are different as shown below. (the format differs would matter too much? cos in the end, we are still proceeding with sql datetime format code.)
http://i5.tinypic.com/7xaeo95.jpg
http://i4.tinypic.com/739s66g.jpg

3) Do I put the codes in vb form or in vb's stored procedures?


I think it is something like this: http://www.outlookcode.com/d/code/remindbday.htm
But I have no idea how to start.

I hope the info I gave are not too vague. Any help is appreciated. Thanks.
GeneralRe: select year/month syntax (for contracts up for renewal in X month) Pin
Giri K18-Dec-07 17:11
Giri K18-Dec-07 17:11 
GeneralRe: select year/month syntax (for contracts up for renewal in X month) Pin
tellytub18-Dec-07 20:15
tellytub18-Dec-07 20:15 
GeneralRe: select year/month syntax (for contracts up for renewal in X month) Pin
Giri K19-Dec-07 11:55
Giri K19-Dec-07 11:55 
Questionjoins of two tables +search Pin
regin18-Dec-07 1:42
regin18-Dec-07 1:42 
GeneralRe: joins of two tables +search Pin
pmarfleet18-Dec-07 1:59
pmarfleet18-Dec-07 1:59 
GeneralRe: joins of two tables +search Pin
andyharman18-Dec-07 3:47
professionalandyharman18-Dec-07 3:47 
QuestionHow to get generated Primary Key when adding a record Pin
gunner_uk200018-Dec-07 1:35
gunner_uk200018-Dec-07 1:35 
AnswerRe: How to get generated Primary Key when adding a record Pin
Pete O'Hanlon18-Dec-07 1:38
mvePete O'Hanlon18-Dec-07 1:38 
AnswerRe: How to get generated Primary Key when adding a record Pin
Giorgi Dalakishvili18-Dec-07 1:42
mentorGiorgi Dalakishvili18-Dec-07 1:42 
Questionselect the max value from the row and its other values Pin
Deques18-Dec-07 1:19
Deques18-Dec-07 1:19 
GeneralRe: select the max value from the row and its other values Pin
Tobias Schoenig18-Dec-07 1:41
Tobias Schoenig18-Dec-07 1:41 
GeneralRe: select the max value from the row and its other values Pin
Deques18-Dec-07 1:51
Deques18-Dec-07 1:51 
GeneralRe: select the max value from the row and its other values Pin
Tobias Schoenig18-Dec-07 1:59
Tobias Schoenig18-Dec-07 1:59 
GeneralRe: select the max value from the row and its other values Pin
Deques18-Dec-07 2:05
Deques18-Dec-07 2:05 
GeneralRe: select the max value from the row and its other values Pin
Tobias Schoenig18-Dec-07 2:10
Tobias Schoenig18-Dec-07 2:10 
GeneralRe: select the max value from the row and its other values Pin
Deques18-Dec-07 2:17
Deques18-Dec-07 2:17 
GeneralRe: select the max value from the row and its other values Pin
Tobias Schoenig18-Dec-07 2:22
Tobias Schoenig18-Dec-07 2:22 

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.