Viewing 15 posts - 6,706 through 6,720 (of 13,460 total)
here's a tested, working model you could use;
it takes multipel inserts into consideration,and sends the email from within the trigger.
so if say, 5 rows were isnerted in a single INSERT...
Lowell
September 22, 2011 at 11:56 am
a CTE is just a subquery to get sample data out so people can see and test it themselves(since you did not provide the CREATE TABLE...INSERT INTO we need)
it's...
Lowell
September 22, 2011 at 10:53 am
sp_database isn't a built in procedure, it must be one that your group added;
i'm guessing that 8704 is the number of pages but i'm not sure without seeing the...
Lowell
September 22, 2011 at 9:46 am
does this work for you?
based ont he sample data you posted, this works:
;With emp (empid,createddate,job)
AS
(
SELECT '1','2011-01-01','db' UNION ALL
SELECT '1','2011-01-01','db' UNION ALL
SELECT '1','2011-02-01','db' UNION ALL
SELECT '2','2011-01-01','db' UNION ALL
SELECT '3','2011-01-01','db')
select empid
from emp
where...
Lowell
September 22, 2011 at 8:32 am
create a new login, for example "WebAccess", then add a user to the database the web pages will access.
create a role for the appropriate rights,a nd finallly , put WebAccess...
Lowell
September 22, 2011 at 8:27 am
ok check this out please.
this has worked correctly on all 5 of my tables which happen to have picutres/images in either image datatypes or varbinary(max) datatypes.
i could correctly guess the...
Lowell
September 22, 2011 at 8:12 am
forsqlserver (9/22/2011)
The developers have sa priviledge on 1 server , they usually stop the sqlserveragent service and due to which the nightly backup jobs fail.
Can it be possible to stop...
Lowell
September 22, 2011 at 6:25 am
I went down the rabbit hole pretty deep investgating this; kind of interesting.
this code project example compares teh first 10 bytes to determine the image file type.
if you can add...
Lowell
September 21, 2011 at 2:52 pm
untested, but syntax wise in vb.NET it looks like i can take any binary data, try to stick it in a "System.Drawing.Image", and if there's no error, do a Save...
Lowell
September 21, 2011 at 2:37 pm
Charlottecb (9/21/2011)
Lowell
September 21, 2011 at 2:21 pm
i think you have to script the jobs out; as i remember it, the msdb rows refer to the server name, so if the "new" server is not named...
Lowell
September 21, 2011 at 1:38 pm
here's some .NET code i posted from a different post on the same issue;
you can use it as a model if you have the file name and binary data together,...
Lowell
September 21, 2011 at 1:22 pm
is the original file name saved in the row of data with the ID and the varbinary data? if you don't have the filename ,(which implies the image type),or at...
Lowell
September 21, 2011 at 1:11 pm
the constructor allows only literal strings, not a variable, so
ENCRYPTION BY PASSWORD =@var fails,
ENCRYPTION BY PASSWORD ='static string' is good
so i think you'll have to switch to dynamic...
Lowell
September 21, 2011 at 12:56 pm
I'm not sure i would even consider restoring master at all.
the only items of any importanceto me are the following:
1. Server Logins and their permissions.
2. Linked servers. definitions and...
Lowell
September 21, 2011 at 12:23 pm
Viewing 15 posts - 6,706 through 6,720 (of 13,460 total)