Viewing 15 posts - 2,236 through 2,250 (of 13,460 total)
you cannot append values, or assign variables to the parameters in line:
--not allowed
@subject ='Number of unprocessed records on SQL1 ' + cast(@recordcount as varchar(10));
--the replacement
DECLARE @mysubject...
Lowell
July 30, 2014 at 10:49 am
i see two case statements. one with 20+ evaluations for the CTLGRP alias , and the other one for your postflag alias.
so the individual evaluations are not considered columns, if...
Lowell
July 28, 2014 at 2:05 pm
i've had this bookmarked for years:
http://www.databaseanswers.org/data_models/
Lowell
July 28, 2014 at 1:06 pm
thejordans21 (7/28/2014)
Lowell
July 28, 2014 at 11:59 am
the beauty of SQL server is set based operations.
that means you affect all records, without a loop, as long as they meet a specific criteria.
IF OBJECT_ID('tempdb.[dbo].[#MyData]') IS NOT NULL
DROP...
Lowell
July 28, 2014 at 10:00 am
object definitions like procedures, views and functions can become invalid if the underlying objects they use have been altered or dropped after being created.
I created this script a while ago...
Lowell
July 25, 2014 at 9:35 am
here's the basics of it: generate the orphans from the meta data:
/*--Results
ALTER USER [z_AppDB_reports] WITH LOGIN = [z_AppDB_reports];
ALTER USER [medical] WITH LOGIN = [medical];
*/
SELECT 'ALTER USER ' + quotename(dbloginz.name)...
Lowell
July 24, 2014 at 6:39 am
certainly possible.
remember linked servers are slow, especially if you are joining the data together with local or other rmeote data.
the reason is if you did something like this:
SELECT * From...
Lowell
July 24, 2014 at 5:19 am
I had never trippeed over this before either; it's good to know.
Lowell
July 24, 2014 at 5:07 am
Thanks guys for confirming , evne when it's not what i wanted to here.
Just as you suggested, I've got a specific domain user to use for this now, it just...
Lowell
July 23, 2014 at 6:02 am
an example with rowversion, where the WHERE statement needs to take into consdieration teh last version;
that makes the update jsut a bt more complex.
IF OBJECT_ID('[dbo].[Samples]') IS NOT NULL
DROP...
Lowell
July 18, 2014 at 2:39 pm
i'm thinking it might be the current database for the login might be affecting the rights?
if my current database context was master, for example, could that affect the permissions if...
Lowell
July 18, 2014 at 8:46 am
arooj300 (7/18/2014)
How can I send mail to the mulltiple user . Do i need to configure one more profile or in one profile we can send to the multiple user.
multiple...
Lowell
July 18, 2014 at 7:03 am
on the notifications Tab, if you select "When the job completes", that will send the email you are after, and the message will have whether it was successful or with...
Lowell
July 18, 2014 at 6:40 am
error 5.7.1 Client does not have permissions to send as this sender
this tells you the issue is not with SQL database mail but with the mail server.
that the...
Lowell
July 18, 2014 at 5:18 am
Viewing 15 posts - 2,236 through 2,250 (of 13,460 total)