Viewing 15 posts - 1,801 through 1,815 (of 13,469 total)
jobs or individual emails that are failing?
here's a quick query you could run on every server via Registeredservers, maybe this gets you started?
SELECT top 100
sent_status As Reason,
err.[description],
...
April 23, 2015 at 1:16 pm
also, note the error is at the SMTP mail server you sentto, and might not have anything to do with you (unless you own the mail server that it was...
April 23, 2015 at 1:09 pm
the order by will not eliminate any rows with the query you gave;
only the WHERE condition does; if you are using a different query than the one you posted, show...
April 23, 2015 at 7:30 am
since there's an identity in the table, if you change hte order by to that column, do you get the data you want? it sounds like someone updated your date...
April 23, 2015 at 7:17 am
i think a subquery featuring row_nubmer would work here:
/*--Results
RWFolderDocument NbrVersionNbr
11Doc10
12Doc21
13Doc31
13Doc40
*/
;WITH MyCTE([Folder],[Document Nbr],[VersionNbr])
AS
(
SELECT 1,'Doc1',0 UNION ALL
SELECT 2,'Doc2',0 UNION ALL
SELECT 2,'Doc2',1 UNION ALL
SELECT 3,'Doc3',0 UNION ALL
SELECT 3,'Doc3',1 UNION ALL
SELECT 3,'Doc4',0
)
SELECT *...
April 22, 2015 at 2:33 pm
@tables are table variables.
if you have a production table that starts with @, so that it deviates from standard sql naming conventions,you need to quotename the table:
USE [Live_build]
GO
SET ANSI_NULLS ON
GO
SET...
April 22, 2015 at 7:17 am
Inside the stored procedure or function itself, yes, since you are assigning the value, you can log it, do additional logic because it was null or whatever.
SELECT @Somedate =...
April 22, 2015 at 7:00 am
yes, via keyboard shortcuts.
i take advantage of this so much, it's crazy. i have shortcuts to script the definition of the hightlighted object, select top 100 fromt hat object, and...
April 22, 2015 at 6:47 am
well functions with an optional parameter, still have to have either a value or the KEYWORD specifically DEFAULT passed.
unlike procedures, you cannot just leave a parameter off of...
April 22, 2015 at 6:28 am
ok here's a link to an example package i put together for you:
it's in Visual Studio 2008, since you posted about SSIS 2008 ,but i've got the same thing that...
April 21, 2015 at 11:09 am
Theo Ekelmans (4/20/2015)
I've never renamed a SSAS DB, so... no i have not had the misfortune to run into this error.
I would like to promise here that i will...
April 20, 2015 at 9:42 am
Tac11 (4/20/2015)
Hi All,what would be the Full script if I want to run against 'AdventureWorks' database?
EXECUTE dbo.IndexOptimize
@Databases = 'AdventureWorks',
@FragmentationLow = NULL,
@FragmentationMedium = 'INDEX_REORGANIZE,INDEX_REBUILD_ONLINE,INDEX_REBUILD_OFFLINE',
@FragmentationHigh = 'INDEX_REBUILD_ONLINE,INDEX_REBUILD_OFFLINE',
@FragmentationLevel1 = 5,
@FragmentationLevel2 = 30,
@SortinTempdb =...
April 20, 2015 at 9:13 am
I have done this with a script task, but it depends on the file structures and naming conventions.
in my case, i got a zip file with an unknown number of...
April 20, 2015 at 6:43 am
Jeff Moden (4/16/2015)
Heh... I use xp_CmdShell to call PowerShell. 😛
...to run a TSQL command to start a SQL Agent Job which launches a Windows Scheduled Task?
April 16, 2015 at 9:45 pm
Viewing 15 posts - 1,801 through 1,815 (of 13,469 total)