Viewing 15 posts - 9,856 through 9,870 (of 14,953 total)
Will something like this do what you need?
SELECT
Material.Name,
MfgDate,
MAX(StoredDate) AS StoredDate
FROM
Material
LEFT OUTER JOIN Store
...
April 23, 2009 at 7:53 am
You just gotta love posts like these:
http://www.sqlservercentral.com/Forums/Topic703170-338-1.aspx
http://www.sqlservercentral.com/Forums/Topic703094-147-1.aspx
April 23, 2009 at 7:49 am
I asked both the same things on his other post, which appears to be pretty much the same junk.
April 23, 2009 at 7:46 am
How are you calling the proc? Is it part of a scheduled job? Part of an application? Something else?
April 23, 2009 at 7:06 am
First, if there's supposed to be XML in the post, you need to surround it with the correct tags, or convert the carrets to HTML codes.
Second, did you have a...
April 23, 2009 at 7:04 am
YSLGuru (4/22/2009)
GSquared (4/22/2009)
April 23, 2009 at 6:51 am
Florian Reischl (4/22/2009)
I just tried again and I think I figured out the problem. It depends on the C# code. As...
April 23, 2009 at 6:49 am
What's the language setting for the server? Not the database, the server. (Properties on the connection in Management Studio.)
April 22, 2009 at 3:20 pm
One way you might be able to get around problems with adding columns to tables is to create a view with the computed column in it and index the view,...
April 22, 2009 at 3:17 pm
Pakki (4/22/2009)
Just a wild guess, did not try reproducing it.
I think since we dont have that 'Set NoCount ON', after every select the message about the number of...
April 22, 2009 at 2:47 pm
Just to be sure, I also tried the original script, and the final raiserror worked as expected.
BEGIN TRY
RAISERROR ('Test Error Raised', 16, 1)
END TRY
BEGIN CATCH
DECLARE @ErrorSeverity INT,
@ErrorNumber INT,
@ErrorMessage NVARCHAR(4000),
@ErrorState INT,
@ErrorProcedure...
April 22, 2009 at 2:40 pm
Also tried this:
begin try
raiserror('Error', 16, 1)
end try
begin catch
select 'First'
print 'First'
select 'Second'
print 'Second'
raiserror('In Catch', 16, 1)
end catch
I get both selects, both prints, and the error message from the raiserror in the...
April 22, 2009 at 2:39 pm
I just tried this:
begin try
raiserror('Error', 16, 1)
end try
begin catch
select 'First'
print 'First'
select 'Second'
print 'Second'
end catch
I got both selects and both print commands.
@@Version = Microsoft SQL Server 2005 - 9.00.4035.00 (Intel X86)...
April 22, 2009 at 2:37 pm
Viewing 15 posts - 9,856 through 9,870 (of 14,953 total)