Please start any new threads on our new
site at https://forums.sqlteam.com. We've got lots of great SQL Server
experts to answer whatever question you can come up with.
| Author |
Topic |
|
ashishkukreja
Starting Member
16 Posts |
Posted - 2007-08-25 : 05:46:18
|
| I want to create a procedure where nextvisitdate is a cloumn for dateso when I passed variable @nextvisitdate then which data type I have touse with it.CREATE PROCEDURE sp_salesman_nextvisitdate@salesman varchar (50),@nextvisitdate date (50)AsSelect * from Entry FormWHERE@salesman = salesmanAND@nextvisitdate = nextvisitdateGOYou Have to Loss Many Times to Win Single Time |
|
|
SwePeso
Patron Saint of Lost Yaks
30421 Posts |
Posted - 2007-08-25 : 06:44:34
|
DATETIME or SMALLDATETIME E 12°55'05.25"N 56°04'39.16" |
 |
|
|
madhivanan
Premature Yak Congratulator
22864 Posts |
Posted - 2007-08-25 : 07:55:49
|
| If you use SQL Server, then as said, use DATETIME or SMALLDATETIME datatypesMadhivananFailing to plan is Planning to fail |
 |
|
|
rmiao
Master Smack Fu Yak Hacker
7266 Posts |
Posted - 2007-08-25 : 10:39:08
|
| You can get date only from the column with convert function. |
 |
|
|
|
|
|