Forum Replies Created

Viewing 15 posts - 496 through 510 (of 13,460 total)

  • RE: Bulk insert statement cannto open file on the share

    suman.dey0709 - Wednesday, May 31, 2017 3:16 AM

    @Ed Wagner-- Yes I did execute it yesterday itself and it gave me the output...

    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: Malicious Mischief - How to identify the perpetrator?

    GailW here's something I wrote to enumerate the people who inherit permissions from a group, and do not have an explicit login in sys.server_principals

    IF OBJECT_ID('[dbo].[sp_help_adusers]') IS...

    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 Determine SQL Server Version and if the patch level is still in support for large estate

    one day back on 07/28/2016 i was inspired to create a procedure to do this;
    as everyone has already identified, the problem is keeping up with releases. how many patches, CU's...

    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: Create a trigger after insert to encrypt columns in a table

    if the columns are already varbinary, are you using procedures to return unencrypted data for selects? if you are already doing that, you should use procs for insert/update/delete as well.

    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: Create a trigger after insert to encrypt columns in a table

    so much of encryption depends on the data type of the destiantion column, and the type of encryption you care to use.
    most encryption methods expect a varbinary column, so...

    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: High Fragmentation - No Indices

    Gail addressed the performance aspect of it; fragmentation is very low on the "fix it" list as far as performance goes.

    If you want to address the fragmentation, here's...

    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: Malicious Mischief - How to identify the perpetrator?

    as far as tracking if it happens again, i''d create an extended event to capture database creation and deletion, and add login disabled, as well as anything else you think...

    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: start a new select in a case function

    I think you need to use a recursive CTE in this case, so that all possible relations are created through joining to the data itself .
    if you are 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: Stopping remote dtsx from connecting to SQL

    it sounds like they are allowed to query the data with their tools of choice, but often write bad queries; maybe you could use  the resource governor in that case;...

    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 can I relate retries with the original send in SQL Server Database Mail?

    i believe  msdb.dbo.sysmail_allitems will only have a single row per mail_id, along with it's current status (sent/unsent/failed)

    when a mail does fail, an entry is created in sysmail_event_log
    [code...

    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: Download SQL Server 2014 evaluation edition.

    i've used WinCD Emulator, which mounts an iso as if it were a drive, and also http://wincdemu.sysprogs.org/

    and also
    Virtual Clone Drive
    https://www.elby.ch/en/products/vcd.html

    I like...

    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: Looking for best approach

    there's no race condition that i see.

    Luis's test tests that one  table or the other has rows; i thought it was very elegant.
    IF EXISTS(SELECT * FROM #temp1)

    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: Azure data warehouse - Index maintenance

    whoops i was assuming Azure SQL, and not DW, my fault, thank you for the clarification Gail!
    I read the request too quickly.

    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 script to Select Fragmentation

    your code for the function [sys].[dm_db_index_physical_stats] is hardcoded to database_id = 5, is that right?
     i prefer to use the db_id and current database context.
    object_id('') will resolve to null, 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: Azure data warehouse - Index maintenance

    the structure of a database and dmv's are all exactly the same, whether Azure or SQL
    any script that would generate scripts for indexes or users, or anything like that...

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