Forum Replies Created

Viewing 15 posts - 541 through 555 (of 13,460 total)

  • RE: How can a login simultaneously fail and succeed?

    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


    --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!

  • RE: The permissions granted to user 'domain\abc' are insufficient for performing this operation. (rsAccessDenied)

    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


    --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!

  • RE: Permissions

    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


    --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!

  • RE: Permissions

    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


    --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!

  • RE: Script to restore production database to test server

    correction: the above uses a simpler cmdexec instead of powershell to call robocopy or the DEL command. same thing, different island.

    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!

  • RE: Script to restore production database to test server

    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


    --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!

  • RE: Creating Function that returns table with dynamic columns

    functions cannot use dynamic queries; you'll have to use a procedure instead.

    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!

  • RE: cannot connect to local database in ssms 2012

    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!

  • RE: SQL code works from SSMS but fails from the SQL Job.

    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


    --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!

  • RE: SQL code works from SSMS but fails from the SQL Job.

    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


    --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!

  • RE: SQL code works from SSMS but fails from the SQL Job.

    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


    --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!

  • RE: Convert name field from Colunm1: FirstName LastName to Column2 as LastName, FirstName

    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


    --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!

  • RE: Number of Page breaks based on value - SSRS 2010

    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


    --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!

  • RE: How to take database backup between 2 dates (database partitioning)?

    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


    --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!

  • RE: Presentation Software Recommendations

    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


    --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!

Viewing 15 posts - 541 through 555 (of 13,460 total)