If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

 
Go Back  dBforums > Data Access, Manipulation & Batch Languages > ANSI SQL > stored procedure

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 09-15-04, 19:53
desireemm desireemm is offline
Registered User
 
Join Date: Feb 2004
Location: Alpine Califormia
Posts: 1,709
stored procedure

nevermind I posted on the wrong one sorry

Last edited by desireemm; 09-16-04 at 11:09.
Reply With Quote
  #2 (permalink)  
Old 09-15-04, 21:58
Pat Phelan Pat Phelan is offline
Resident Curmudgeon
 
Join Date: Feb 2004
Location: In front of the computer
Posts: 12,605
This is really a SQL Server question, but I don't think you can use the BETWEEN like that on a parameter.

-PatP
Reply With Quote
  #3 (permalink)  
Old 09-15-04, 23:54
derrickleggett derrickleggett is offline
Registered User
 
Join Date: Apr 2004
Location: Kansas City, MO
Posts: 734
Will it compile? If not, you're guaranteed to have some issues. (It won't by the way.)

You have some syntax issues.

1. The parameter thing.
2. You seem to really like commas a LOT.
3. I'm probably missing something obvious here, but your date logic doesn't make sense.
4. You need to take a serious look at that last INSERT and ask yourself if you should be writing SQL. It's kind of like driving a car. You usually want to drive around in a parking lot for awhile before jumping on the race track without a helmet.
__________________
MeanOldDBA
derrickleggett@hotmail.com
When life gives you a lemon, fire the DBA.
Reply With Quote
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On