Forum Replies Created

Viewing 15 posts - 3,571 through 3,585 (of 13,460 total)

  • RE: Need to Decrypt an Encrypted column that is selected in a view

    creating a view that auto-decrypts the data makes the data no longer HIPAA compliant, doesn't it?

    I'd say that is no different from storing the data unencrypted in the first...

    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 Server outof space question.

    hmmm; i'd say there is always files that can be moved or deleted.

    files in temp folders on the operating system, log files, , the already suggested moving of backup files,...

    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 Avoid The Duplicate Records....

    This looks an awful lot like homework, so I'll frame my answer with that in mind.

    It looks like the purpose of this exercise is to learn how to use 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!

  • RE: Problem in Dynamic sql

    do a find and replace to add QUOTENAME, so you can accommodate weird database names with dashes/spaces

    FROM '+@pDatabase+'

    --should be

    FROM '+ QUOTENAME(@pDatabase) +'

    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: Hiding a dataGridView

    i think you want DataGridView.Visible = false; enabled would be more like displaying, but removing editablity due to permissions or something.

    visible is what you need to hide/show

    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: Reporting in records in the right order

    aaron i'm sure you know that SQL doesn't order data in any specific order without an explicit ORDER BY clause.

    in your case, i'm thinking you might do what 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: How to copy a table structure and data to a different server?

    Blair Dee-474691 (4/29/2013)


    hey thanks for the tip. I did download and install that and it looks like it will generate the script to copy the data over but it...

    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: Login audit

    since the accessing of data is done after the login, the log isn't going to help you.

    you would need to add a new level of auditing to capture those...

    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: Grant select, exec permission to SP, inline, scalar & table-values functions

    ok here's my version, which i adapted from a DDL trigger i made for another post.(add new objects to this role)

    this will generate three roles, one for each requirement, then...

    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: SQLPS vs SSMS

    actually, both powershell and ssms are using smo under the covers.

    the batch separator is an option you can select, i believe.

    $Scripter.Options.ScriptBatchTerminator=$true

    $Scripter.Options.NoCommandTerminator=$false

    see this thread for an example on teh same question:

    http://www.sqlservercentral.com/Forums/Topic996028-1351-1.aspx#bm996236

    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: Forgot sysadmin user password

    also check out this neat trick:http://sev17.com/2011/10/22/gaining-sql-server-sysadmin-access/

    basically it's a model for a SQLCMD script which would add a new sysadmin user, because it is able to run as the built in...

    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: Ad Hoc Query with a linked server?

    it's just the wrong provider;

    jet is for 32 bit Access/Excel, and not for SQL Servers.

    here's your command adapted, and also one I know works for sure:

    --query directly without open rowset:

    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: Search for partial text in text field

    adonetok (4/25/2013)


    There is a table Order in which one filed [Notes] as text data type.

    How to search a partial text such as "ordered on 10/02/2012" in the field [Notes]?

    convert 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: Query issue

    collation.

    for case insensitive searches, some high ascii characters are treated as the same character as certain low ascii.

    you can use an explicit binary collation, for example, which would seperate teh...

    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: identity insert

    remove the SET IDENTITY_INSER

    %T command. since it is not valid/has no effect with BULK INSERT statements.

    instead, as identified, you need to add KEEPIDENTITY to your BULK INSERT command:

    BULK

    INSERT ABC

    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!

Viewing 15 posts - 3,571 through 3,585 (of 13,460 total)