Forum Replies Created

Viewing 15 posts - 991 through 1,005 (of 13,460 total)

  • RE: CONVERT(VARCHAR(10) not working

    what does "not working" mean to you? you did not mention any errors, and convert(varchar will return a string, albeit maybe a string that looks like a date, 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: how to determine the excessive runs of SPs?

    i believe this is one of Glenn Berry's scripts, that determine the most used stored procs.

    you could infer that the procedure called the most, might be the ones called 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: Folder & Associated Reports in ReportServerDb But Not Showing in Report Manger

    add the column ReportServer.dbo.Catalog.Hidden to your query.

    when a folder or report is marked as "hidden", you have to change the view in SSRS to "Details View" to see those hidden...

    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: Removing Additional (unwanted) MDF files

    if your filegroup is not empty, you might need to alter some indexes and recreate them in another file group.

    this would show you theFileGroup Name and the file a given...

    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 groups with same set of locations

    absolutely great job on providing the set up sample scripts.

    Am i underthinking this, that it is simply a group by problem, maybe with a NOT EXISTS?

    it looked to me...

    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 - Long running Queries/Sessions

    sp_whoisactive can send it's results to a table.

    a simple example:

    CREATE TABLE [master].[dbo].[MonitoredActivity] (

    [dd hh:mm:ss.mss] ...

    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: Error - SSIS Error Code DTS_E_OLEDBERROR. An OLE DB error has occurred. Error code: 0x80040E4D

    yes. you can create a credential with windows credentials, and then a proxy in SQL agent.

    with that in place, you can modify the job step that calls the SSIS package...

    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: Split Delimited String Across Fixed Number Of Columns

    if these were medical diagnosis codes, i know diagnosis codes vary between three and eight characters in length;

    here's a couple examples

    463

    W45.8XXA

    so i think using a delimitedsplit 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: How to format data with customer service ph nos please

    here's how i started tackling it: strip everything out, and then format depending on 10 or 11 digit lengths.

    I think i'd remove letters and replace with their corresponding numbers...

    I'm ignoring...

    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: Saving txt as powershell file

    you are probably using notepad to save your file?

    you have to change the file type in the save as dialog.

    Change it to all files and enter the extension...

    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: Redirect requests to new Database in same instance

    why can't you rename the databases?

    exec sp_renamedb 'Account ','AccountOrig'

    exec sp_renamedb 'Account_Compact ','Account'

    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: Split Delimited String Across Fixed Number Of Columns

    here's an example that i just slapped together that does the first nine columns. using DelimitedSplit8K and the PIVOT operator.

    does this help?

    /*

    --Results

    Diagnoses_For_Spell ...

    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: Can we reduce the spam?

    I still think a specific set of volunteers here should be given a whack-a-mole functionality, which has been suggested ad-nauseam, but I think it's hard for red-gate to dedicate a...

    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 templates

    template functionality in the paid SSMS plugin ssmstoolspack.com does that.(~40 bucks as I remember)

    it also is parameterized for variables.

    for example, my template looks like this:

    -- Created By: |CurrentWinUserName|

    -- Create Date:...

    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 give Grant permission for synonyms from another database in same server.

    dudekula.kareemulla (5/19/2016)


    Is there any possibility to give select privilege permission with out creating same user in another database??

    Problem is i do not want create same user in another database 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!

Viewing 15 posts - 991 through 1,005 (of 13,460 total)