Forum Replies Created

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

  • Reply To: Create Table DDL via TSQL

    Thank you space ghost!. I've merged your changes with my current changes. my newer version grabs partitioning information, and had a similar fix for foreign keys that happen to reference...

    • This reply was modified 5 months, 2 weeks ago by Lowell.
    Attachments:
    You must be logged in to view attached 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!

  • Reply To: Improving update statistics process for 6 big tables

    I hope this helps.

    my control table was in master.  I think i can rustle up my whole old solution if you need it.

    CREATE TABLE [dbo].[DBAStatistics_SpecialTreatment] ( 
    [DatabaseName]...

    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!

  • Reply To: Improving update statistics process for 6 big tables

    I had a somewhat similar issue, in my case, i created a table [dbo].[DBAStatistics_SpecialTreatment]  that had the table, sample rate, and which day of the week it would be executed...

    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!

  • Reply To: need to kill long running SPIDs

    connections that have been established for a long time are not evil.

    you mention things are "stuck", but your query is not looking for that. it;s just looking at long connecitosn.

    On...

    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!

  • Reply To: Best analysis approach to reduce data type length in multiple tables

    I've got some code for you to help with that.

    I inherited some ugly processes that import csv files into tables where every column is an nvarchar(max) , or varchar(max), regardless...

    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!

  • Reply To: Find all the tables in a database containing particular column value

    i have done something similar to what pietlinden as posted. mine is a procedure, but same concept, for my results go into a global temp table. it also limits 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!

  • Reply To: Looking for help with SQL statement

    i see a couple of things. try my query below.

    the first issue, is making sure all your joins switch to left joins, as everyone else pointed out

    second, your WHERE statement...

    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!

  • Reply To: Using Containers to Avoid Installing SQL Server

    there's an option to call the compose for a specific filename with the -f parameter:  otherwise it assumes the current folder and specific filename

    docker compose -f "G:\My Drive\_Data\Docker\DockerCompose\SQL2022.yaml" up -d

    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!

  • Reply To: Columnstore index question

    without a WHERE statement, I think you are looking at pure disk reads as being the slowdown. reading  110 million records, without doing a group by or anything, is going...

    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!

  • Reply To: SSIS packages failing with a status "ended unexpectedly" (SSL/TLS timeout ?)

    In my environment, we had that port exhaustion/ephemeral port issue with AWS containers, which normally had 5 processes running 10 copies each. We had an isseu where  if the query...

    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!

  • Reply To: Cannot get KB959420

    Microsoft Update Catalog has some links, but not that specific one. https://www.catalog.update.microsoft.com/Search.aspx?q=sql%20server%202000

    will any of those contain a version you can use?

    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!

  • Reply To: Powershell script to generate SQL server Inventory in CSV format

    I use this sql snippet to get servername/ip/port: technically, there could be more than one IP address if you have a multi subnet thing going on:

     

    --desc: gets...

    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!

  • Reply To: Large posts full of code not allowed anymore?

    Frederico, that is undoubtedly the answer. all my attempted posts had a couple of links in it. some embedded in test data, and a reference to a previous post on...

    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!

  • Reply To: Large posts full of code not allowed anymore?

    ok i found that my code had two urls in it, as i like to document attributes/references to the forum or the source i got the code from.

    i pasted 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!

  • Reply To: Large posts full of code not allowed anymore?

    attempting to post 4120 chars into a code block

    DECLARE @MyExample TABLE (ID int identity(1,1),MyRecipe varchar(max),OtherColumns varchar(30) )
    INSERT INTO @MyExample
    SELECT '***DUST MASK MUST BE WORN***
    ENSURE THE PRODUCT 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!

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