Forum Replies Created

Viewing 15 posts - 631 through 645 (of 13,460 total)

  • RE: All mail showing as "unsent" in sysmail_allitems (Database Mail)

    didn't realize you were running 2005, i should have read deeper. I don't have that version to test against.
    comment out that column name, adjust the query a bit till...

    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: Data missing in HTML on SSDT16 and Report Builder

    design view caches data when it's run the first time, and uses that for design purposes. it does not run the query every time.

    http://stackoverflow.com/questions/338009/ssrs-different-results-in-data-tab-and-preview-tab

    if you search...

    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: Conditionally execute SHRINKFILE "only" if the file / DB exists

    I'm assuming you know that shrinking is a bad thing, etc etc.

    your command is almost right, just need to tweak it if you want to assign it 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: All mail showing as "unsent" in sysmail_allitems (Database Mail)

    ok i found my diagnostics scripts.
    run these scripts in the msdb database.

    --confirm is_broker_enabled = 1
    SELECT DB_NAME([database_id]) AS DatabaseName,
       [database_id] ,
    is_broker_enabled ,

    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: All mail showing as "unsent" in sysmail_allitems (Database Mail)

    Ok ive seen that kind of situation before. You can try the sp_mail_stop and sp_mail_start to fix the service broker, but in the past ive had to completely stop both...

    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: All mail showing as "unsent" in sysmail_allitems (Database Mail)

    take a look at the last errors, you might be getting a very specific error, like relaying denied,  failed logins, etc.

    by default, database mail will retry once (within...

    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 Group By day and get a total from the Amount column per day?

    chef423 - Thursday, February 9, 2017 11:59 AM

    chef423 - Thursday, February 9, 2017 11:56 AM

    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 Group By day and get a total from the Amount column per day?

    i think this will do it.
    i'm using datemath to round the dates down to midnight of each date, and grouping by that

    select DATEADD(dd, DATEDIFF(dd,0,Invoice_Exceptions.DateTime), 0)...

    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: Server Name is blank on fresh installation of SQL Server 2014

    if you've installed SQL locally, there are aliases you can use, but you can also see what is installed and running.
    if you go to start>>Run>>services.msc
    it will open your...

    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: 2 Select Statements Deadlocking

    could it be that the construction of the query, where it says COLUMNNAME IN(singlevalue) causes a range scan, where if it was COLUMNNAME = singlevalue , it would be an...

    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: Hardening SQL Server

    i had quite a bit of luck finding some resources here:
    https://www.google.com/search?q=hardening+sql+server&rlz=1C1CHBF_enUS707US707&oq=hardening+sql+server&aqs=chrome..69i57j69i60.3839j0j7&sourceid=chrome&ie=UTF-8

    this one has a decent checklist of things to do, but not the scripts and details:

    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 HH:MM:SS to datetime

    Luis Cazares - Tuesday, February 7, 2017 9:06 AM

    mandavli - Tuesday, February 7, 2017 8:29 AM

    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 HH:MM:SS to datetime

    if you convert time directly to datetime, itends up being 1900 anyway, so just do a direct conversion.
    CONVERT(datetime,convert(time,durationvalue)) As DurationTime2 or directly like convert(datetime,durationvalue) AS DurationTime3
    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: Help with a numbering thing... kinda

    my first guess, but i converted the copy/paste to consumable data:

    ;WITH MySampleData([OrderNumber],[rtype],[jobnumber])
    AS
    (
    SELECT '8316','J','1' UNION ALL
    SELECT '8316','L','2' UNION ALL
    SELECT '8316','K','3' UNION ALL

    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: SAN snap - orphaned SID's

    the fix for sql users is easy; use the procedure from microsoft to script out the users:
    https://support.microsoft.com/en-us/help/918992/how-to-transfer-logins-and-passwords-between-instances-of-sql-server
    in my case, i drop my sql logins and just recreate them...

    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 - 631 through 645 (of 13,460 total)