Forum Replies Created

Viewing 15 posts - 2,236 through 2,250 (of 13,460 total)

  • RE: sp_send_dbmail question

    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


    --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: CASE question

    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


    --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: Predefined Database Templates

    i've had this bookmarked for years:

    http://www.databaseanswers.org/data_models/

    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: Need help writng a do while loop in 2008 Sql server

    thejordans21 (7/28/2014)


    I don;t know how to set that up. Iout the plant and plant desc into another temp table and I am trying to use that to popllaute the orginal...

    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: Need help writng a do while loop in 2008 Sql server

    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


    --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: altering all objects to find syntax errors

    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


    --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: Need Script for Automating Find and Fix Orphand users

    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


    --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: Query on Linked Server

    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


    --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: Unintended Escape\Continuation Character, BackSlash, in Executed Variable?

    I had never trippeed over this before either; it's good to know.

    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: SSRS2008R2 Data Driven Subscription username/password?

    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


    --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: Adding version to row to ensure user updates the current row version

    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


    --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: DDL Trigger Unable to access under security context

    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


    --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: Configure DB Mail error

    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


    --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: Configure DB Mail error

    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


    --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: Configure DB Mail error

    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


    --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 - 2,236 through 2,250 (of 13,460 total)