Viewing 15 posts - 541 through 555 (of 13,460 total)
check that login's default database.
see if the database has been dropped/removed, or the user no longer has access to that database. in those cases, setting the default database to...
Lowell
May 2, 2017 at 3:16 pm
SSRS is a little wierd, you have to assign permissions in two places, at the site, and at the root folder, the screenshot here is from an older verison, but...
Lowell
May 2, 2017 at 7:43 am
view server state? i guess you are trying to select info about the connection from sys.dm_exec_connections
stick with what i said, either sign the trigger or use EXECUTE AS...
Lowell
April 30, 2017 at 4:35 pm
the trigger is probably inserting into an audit table, right? and a normal end user does not have access to that table; it might be sending an email, or something...
Lowell
April 28, 2017 at 8:33 am
correction: the above uses a simpler cmdexec instead of powershell to call robocopy or the DEL command. same thing, different island.
Lowell
April 27, 2017 at 2:32 pm
Here's a script that I actually use:
It creates a job on Development, which does an on-demand copy_only backup of prod, copies it to the right spot on Dev via...
Lowell
April 27, 2017 at 2:23 pm
functions cannot use dynamic queries; you'll have to use a procedure instead.
Lowell
April 26, 2017 at 12:14 pm
from your screenshots, I'd say you ran the installer, but did not install any SQL services, otherwise you would see them in the Services section you posted the screenshot of. Lowell
--help us help you! If you post a question, make sure you include a CREATE TABLE... statement and INSERT INTO... statement into that table to give the volunteers here representative data. with your description of the problem, we can provide a tested, verifiable solution to your question! asking the question the right way gets you a tested answer the fastest way possible!
April 26, 2017 at 12:11 pm
not sure what is going on in your case specifically;
i just wrote the attached stuff to explicitly check what my settings are in SSMS vs a TSQL job, vs...
Lowell
April 26, 2017 at 8:30 am
you did not show your entire query, so it's hard to diagnose.
review your code, because each and every EXECUTE(@SomeCommand) could be the potential problem. how many executes do you...
Lowell
April 26, 2017 at 7:32 am
you are declaring a command and executing it. the internal command does not have the same settings for quoted identifier
Declare @command varchar (max)
SELECT...
Lowell
April 26, 2017 at 7:03 am
a wordier version just like what Luis did;
i thought this way shows the advantage of actually storing the data correctly.
I added the three name examples from our other...
Lowell
April 26, 2017 at 6:09 am
you can use this trick to join your table with a total against a Tally or Numbers table to generate each label you need.
it makes it a lot...
Lowell
April 25, 2017 at 2:19 pm
backup and restore replaces the entire database(meaning all existing data) with the new backup; since you are saying replace a range of data, from what you are describing, that's not...
Lowell
April 24, 2017 at 5:48 am
yeah power point is only 20-30% of the show, like i mentioned. except for a pptx of sponsors logos, nothing executes in any specific order. Power point is very top...
Lowell
April 23, 2017 at 5:37 am
Viewing 15 posts - 541 through 555 (of 13,460 total)