Viewing 15 posts - 76 through 90 (of 112 total)
SELECT * FROM mytable
WHERE Date between dateadd(dd,-10,getdate()) and getdate()
April 23, 2002 at 3:01 pm
What is a reason for passing a complete statement as a parameter, what are you trying to accomplish?
April 23, 2002 at 1:13 pm
In our company we have a separation of duties. Our DBA don't do development. On our development team we have a very knowlegable boss who actually knows DBA part as...
April 23, 2002 at 10:11 am
This is datawarehousing termin : ETL - Extract, Transform and Load.
Not really familiar with this.
April 22, 2002 at 11:40 am
For the @SQLText part:
If you using the same value over and over again create a variable to hold this value:
declare @Maxdate as datetime,
...
April 19, 2002 at 3:05 pm
What are you trying to do - pass a delimited string of parameters and then process each as separate parameter or include in a search like
select smth from...
April 19, 2002 at 9:32 am
Try to build a query string (@sqltext) and then execute it thru the EXEC (@sqltext) or SP_EXECUTESQL @sqltext
April 19, 2002 at 9:28 am
quote:
Was there a scecific script you were refering to that show how to process incoming mail queries?-JG
April 19, 2002 at 9:12 am
Well, NULL is more generic and it's exactly shows that either parameter was missing or there is nothing to update.
Also, any default messages could only be passed thru the string...
April 18, 2002 at 3:47 pm
There is a script in Misc.category "Preventing accidental overwrites with update SPs" that might give you some hints.
This is the part of it:
CREATE PROCEDURE UpdateAddress
@StreetNumber varchar(20) = NULL,
@StreetName...
April 18, 2002 at 1:31 pm
Check 'MAIL' category in the Sripts ('http://www.sqlservercentral.com/scripts/listscripts.asp?CategoryNm=Mail&Categoryid=2')
April 17, 2002 at 2:46 pm
Try EXEC (@l_strSQL)
I think, that without parenthesis you can execute stored proc
April 17, 2002 at 10:56 am
What do you mean "sort order in database"? You not supposed to care how records are stored in the tables, just when you retrieve them - use the "order by...
April 17, 2002 at 10:50 am
quote:
=NULL is possible if you set the server to ANSI_NULLS OFF. (Through SET Statement, sp_DBOption, or ALTER DATABASE).
April 17, 2002 at 7:11 am
Viewing 15 posts - 76 through 90 (of 112 total)