Viewing 15 posts - 10,816 through 10,830 (of 13,469 total)
Execute as user = 'NA\TRMR'
BACKUP DATABASE [ReportServer]
TO DISK = N'C:\SQL Server - Backups\ReportServer\JUL20_1332_2009.bak'
correct me i'm wrong, but you saved this script as a stored procedure, and the stored...
July 20, 2009 at 9:22 pm
donato, are you trying to usee a CASE statement to return a desired value as a column, or as a WHERE condition?
SELECT
CASE
WHEN ITM.MNR_CD = '100' THEN '15'...
July 20, 2009 at 12:21 pm
yes; like i had said before, I'd seen the issue in the past. I could never track down exactly what was the cause, but I found that changing that default...
July 20, 2009 at 11:55 am
Jeff Moden has a great quote on changing your mindset from row by row to "set based" thinking:
First step towards the paradigm shift of writing Set Based code:
Stop thinking...
July 20, 2009 at 11:35 am
i was kind of assuming the update was more complicated...you know 500-1000 might be a different multiplier, for example. there was no good reason for it, other than to allow...
July 20, 2009 at 11:18 am
here's my WAG based on your SQL:
UPDATE CP
SET CP.BaseRate = CASE
...
July 20, 2009 at 11:05 am
your cursor does not have an update statement...the only thing it is doing is fiddling with the variable @BaseRate i think.
did you forget to add the UPDATE to teh cursor?
WHILE...
July 20, 2009 at 11:02 am
I think Jack might have the key right there: Exceeded storage allocation. is mailbox full, right?
alternatively, maybe your server is set for 10 Megs, but the destination server's limit...
July 20, 2009 at 10:35 am
you should paste the whole error;
when i googled "error -2146893044"
i found "error -2146893044: The logon attempt failed " in the first 3 links, but it seemed to be referencing network...
July 20, 2009 at 9:56 am
SQLServerVBA (7/20/2009)
July 20, 2009 at 9:35 am
could it be security? does the uer who is inserting/updating into the table also have insert rights on the table in the other database?
maybe these specific statements need EXECUTE...
July 20, 2009 at 9:17 am
ive seen this before...make sure that user has a specific default database for his login, instead of master. that database should be whatever database he's using for the application.
i think...
July 20, 2009 at 9:11 am
there's a script in the scripts ection for sending an SMS in a trigger here:http://www.sqlservercentral.com/scripts/Miscellaneous/31899/%5B/url%5D
that uses the exisitng email-to-SMS functions that every cell carrier seems to support.
there's a lot of...
July 20, 2009 at 8:04 am
two ways...you can use the REPLACE function to replace the bad word with an empty string:
UPDATE MYTABLE SET MYCOLUMN = REPLACE(MYCOLUMN,'BADWORD','')
this is a better solution, because if the bad word...
July 20, 2009 at 6:13 am
[ edit doh i think i misread your question; i thought this was related to backups over the network, getting xp_cmdshell to work over network, etc...sorry]
I don't think you can...
July 20, 2009 at 6:07 am
Viewing 15 posts - 10,816 through 10,830 (of 13,469 total)