Forum Replies Created

Viewing 15 posts - 826 through 840 (of 13,460 total)

  • RE: Oracle 10G to SQL Server (2008 and above)DB migration process

    also in my experience, every trigger,package,procedure and function in oracle will have to be rewritten, even when they is doing the most trivial CRUD operations, and especially because 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: Read-only security role

    Eric thanks for prompting me to investigate Server Roles deeper.

    this is the role i came up with, that grants select on any user objects as well as the view server...

    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: Read-only security role

    interestingproblem;

    here's how i think i would tackle it;

    substitute [ClarkKent] for your [domain\ADGroup]

    Create LOGIN [ClarkKent] WITH PASSWORD='NotTheRealPassword'

    --see anything in the DMV's

    GRANT VIEW SERVER STATE TO [ClarkKent];

    --allow to see object definitions, tables...

    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: Give database to customers, how would you want to receive it?

    wouldn't creating a dacpac be an option? i

    m not sure if they are SQL Server version agnostic or not, but the dacpac has the object schemas, ; i though...

    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: Delete temp table by joining derived table

    aliases are your friend, especially with a delete construct like this;

    here's an example:

    ; with cte

    AS

    (

    select * FROM employee

    )

    delete myTarget

    from #temp myTarget

    inner join cte MySource ON myTarget.id = MySource.id

    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: is it possible to determine the max length of a field in a csv file?

    this is the kind of annoying projects that make you reach for your nearest programming language;

    SSIS is handicapped when it comes to data lengths being dynamic.

    I've got an Generic CSV...

    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 logins on a new server, saving the old password

    sp_help_revlogins will do that for you;

    it produces results like this, because it uses a bin to hex function:

    -- Login: ClarkKent

    IF NOT EXISTS ( SELECT * FROM sys.server_principals WHERE 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: Huge tempdb log file

    i've seen things like this, where backups are scheduled at 4am, and then so is an reindexing job AND a statistics job.

    all at 4am. once all the sorting in tempdb...

    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 Job - almost good

    But thats easily fixed with smart code

    If exists... and @@SERVERNAME='Production' And db_name='ProdDB'

    So i would argue it all belongs in a single procedure.

    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 Job - almost good

    like Sue_H, i would have the procedure send the email. if you are reusing the procedure elsewhere, add an optiona parameter with a default, like @sendEmailNotification int=0

    it looks 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 way to dynamically replace street suffix with abbreviation based on tables

    Texas A&M University offers A bulk cleansing service you could try.

    you upload a txt or csv and get back results;

    you have to register/create an account, but I believe it's free.

    https://geoservices.tamu.edu/Services/AddressNormalization/

    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 way to dynamically replace street suffix with abbreviation based on tables

    i just recently did the opposite of what the OP is looking to do: i expanded all abbreviations to full words;

    mine was an investigation to eliminate variations in abbreviations and...

    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: permission for execel to connect to SQL server

    Jeff Moden (10/18/2016)


    Create a stored procedure to return what they want. Give them privs to run the stored procedure and have the stored procedure execute as owner. 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!

  • RE: grant execute overrides user permissions

    Is it truely an archive database, so you can just toggle it to read only mode, or is it somewhere in between?

    You could add a file group, and move...

    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: Deleted

    chocthree (10/16/2016)


    Hi all,

    A newbie here wishing to ask for advice on Microsoft Business Intelligence. Hoping this is the right forum to put my questions.

    I would like to learn Business Intelligence...

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