Viewing 15 posts - 5,746 through 5,760 (of 7,636 total)
Tomm Carr (8/27/2008)
rbarryyoung (8/27/2008)
August 27, 2008 at 6:28 pm
For Inner JOINs there is no logical difference and the Query Optimizer is free to take advantage of that fact. So, usually there is no difference and if there...
August 27, 2008 at 5:28 pm
Sure try this:
USE [TargetDB]
GO
Declare @sql NVarchar(MAX)
Select @sql = Replace(definition, '[dbo].[get_info]', '[dbo].[get_info_customer123]')
From SourceDB.sys.sql_modules
Print (@sql) --NOTE: will cut off at TextWidth, which is usually 255-8000 bytes
EXEC (@sql)
August 27, 2008 at 5:18 pm
Try it like this:
alter procedure UPDATEHISTORYCURRENTYEAR
@year varchar(10) = NULL
AS
IF @year IS NULL Select @year=datepart(yyyy,getdate())
....
August 27, 2008 at 4:53 pm
not according to BOL guys:
This setting is used only in the interpretation of character strings as they are converted to date values. It does not affect the display of date...
August 27, 2008 at 4:49 pm
noeld (8/27/2008)
SELECT a.ShiftID
, a.TableID
, a.StationID
, a.EmployeeID
, a.CounterDateTimeStamp
, a.MusselCount
, a.CounterTimeSpan
,(SELECT TOP 1 b.MusselCount
...
August 27, 2008 at 4:42 pm
Modified version: for some reason the Coalesce() makes the optimizer go stupid:
Select [ShiftID]
,[TableID]
,[StationID]
,[EmployeeID]
,[CounterDateTimeStamp]
,[MusselCount]
,[CounterTimeSpan]
,MusselCount - (Select...
August 27, 2008 at 4:30 pm
Good point. Gus. It could be set on SQL Mail instead.
August 27, 2008 at 4:20 pm
If you need to stay within SQL Server alone, then the easiest way is probably to use the SQL Agent Job system.
Write a stored procedure that will call your query(s)/proc(s)...
August 27, 2008 at 2:05 pm
Please do not cross-post.
August 27, 2008 at 1:56 pm
FYI, you got your Set IDENTITY_INSERT On/Offs backwards.
August 27, 2008 at 1:39 pm
sweetdeal42 (8/27/2008)
I am wondering if there is some t-sql trick...
August 27, 2008 at 1:26 pm
This is a little too abstract to give a clear answer. Can you give some examples, please?
Even better, see this article for how to get better answers from the...
August 27, 2008 at 12:19 pm
If DBMail works everywhere but in the Agent Alerts, then I would check out their definitions.
August 27, 2008 at 12:11 pm
Here's an example :
select nchar(0x3A0)
This displays the Greek capital letter Pi. This can esialy be stored and retrieved from any column in a table with an NChar, NVarchar datatype.
August 27, 2008 at 12:08 pm
Viewing 15 posts - 5,746 through 5,760 (of 7,636 total)