Forum Replies Created

Viewing 15 posts - 91 through 105 (of 616 total)

  • RE: Microsoft SQL Temp Tables (without declaring columns – like Informix)?

    You're welcome!

    CREATE TABLE SCCTest (Col1 INT, Col2 INT, Col3 INT)

    INSERT INTO SCCTest (Col1, Col2, Col3) VALUES (1, 2, 3), (4, 5, 6), (7, 8, 9)

    SELECT * FROM SCCTest

    SELECT * INTO...

    ---------------------------------------------------------

    It takes a minimal capacity for rational thought to see that the corporate 'free press' is a structurally irrational and biased, and extremely violent, system of elite propaganda.
    David Edwards - Media lens[/url]

    Society has varying and conflicting interests; what is called objectivity is the disguise of one of these interests - that of neutrality. But neutrality is a fiction in an unneutral world. There are victims, there are executioners, and there are bystanders... and the 'objectivity' of the bystander calls for inaction while other heads fall.
    Howard Zinn

  • RE: Microsoft SQL Temp Tables (without declaring columns – like Informix)?

    Ah! Then you need to be introduced to the INTO Clause 😉

    ---------------------------------------------------------

    It takes a minimal capacity for rational thought to see that the corporate 'free press' is a structurally irrational and biased, and extremely violent, system of elite propaganda.
    David Edwards - Media lens[/url]

    Society has varying and conflicting interests; what is called objectivity is the disguise of one of these interests - that of neutrality. But neutrality is a fiction in an unneutral world. There are victims, there are executioners, and there are bystanders... and the 'objectivity' of the bystander calls for inaction while other heads fall.
    Howard Zinn

  • RE: Adjusting column wiidths; SP_SEND_DBMAIL

    I would use HTML to output your results. Looks much better when sending in email too.

    In fact I was doing something like this last Friday and here is the code...

    ---------------------------------------------------------

    It takes a minimal capacity for rational thought to see that the corporate 'free press' is a structurally irrational and biased, and extremely violent, system of elite propaganda.
    David Edwards - Media lens[/url]

    Society has varying and conflicting interests; what is called objectivity is the disguise of one of these interests - that of neutrality. But neutrality is a fiction in an unneutral world. There are victims, there are executioners, and there are bystanders... and the 'objectivity' of the bystander calls for inaction while other heads fall.
    Howard Zinn

  • RE: how to split the variable with '~' symbol and need to store in temp table like below .

    Use Jeff Moden's string splitter function. See link below (the function can be found in a zip file at the end of the article)

    Tally OH! An Improved SQL 8K “CSV...

    ---------------------------------------------------------

    It takes a minimal capacity for rational thought to see that the corporate 'free press' is a structurally irrational and biased, and extremely violent, system of elite propaganda.
    David Edwards - Media lens[/url]

    Society has varying and conflicting interests; what is called objectivity is the disguise of one of these interests - that of neutrality. But neutrality is a fiction in an unneutral world. There are victims, there are executioners, and there are bystanders... and the 'objectivity' of the bystander calls for inaction while other heads fall.
    Howard Zinn

  • RE: Index creation after Insert for Temporary Table inside a SP

    ganeshc27 (11/15/2013)


    The column on which the NCI is created, is being used in the WHERE conditions in the queries post this Index creation. How do I find whether this NCI...

    ---------------------------------------------------------

    It takes a minimal capacity for rational thought to see that the corporate 'free press' is a structurally irrational and biased, and extremely violent, system of elite propaganda.
    David Edwards - Media lens[/url]

    Society has varying and conflicting interests; what is called objectivity is the disguise of one of these interests - that of neutrality. But neutrality is a fiction in an unneutral world. There are victims, there are executioners, and there are bystanders... and the 'objectivity' of the bystander calls for inaction while other heads fall.
    Howard Zinn

  • RE: There is a prefered age for developers and administrator the recruiters in companies preferred it?

    Heh... I'm 61 and I've got sox that are older than you are. 😀

    ROFL.....

    ---------------------------------------------------------

    It takes a minimal capacity for rational thought to see that the corporate 'free press' is a structurally irrational and biased, and extremely violent, system of elite propaganda.
    David Edwards - Media lens[/url]

    Society has varying and conflicting interests; what is called objectivity is the disguise of one of these interests - that of neutrality. But neutrality is a fiction in an unneutral world. There are victims, there are executioners, and there are bystanders... and the 'objectivity' of the bystander calls for inaction while other heads fall.
    Howard Zinn

  • RE: Index was outside the bounds of array

    I think I've had this error when connecting to a SQL 2012 instance using the wrong version of SSMS. Are you using the 2012 SSMS version to connect?

    ---------------------------------------------------------

    It takes a minimal capacity for rational thought to see that the corporate 'free press' is a structurally irrational and biased, and extremely violent, system of elite propaganda.
    David Edwards - Media lens[/url]

    Society has varying and conflicting interests; what is called objectivity is the disguise of one of these interests - that of neutrality. But neutrality is a fiction in an unneutral world. There are victims, there are executioners, and there are bystanders... and the 'objectivity' of the bystander calls for inaction while other heads fall.
    Howard Zinn

  • RE: T-SQL Performance tuning on Aggregates

    Can I suggest you start with the obvious and chose appropriate data types for your columns?

    CREATE TABLE #tbl_ChannelViewCost

    (

    rcc_id NUMERIC(10,0),

    activity_dataset_id NUMERIC(10,0),

    profit_centre_id NUMERIC(10,0),

    channel_dataset_id NUMERIC(10,0),

    customer_dataset_id NUMERIC(10,0),

    product_category_dataset_id NUMERIC(10,0),

    channel_cost NUMERIC(22,8),

    driver_id NUMERIC(5,0),

    )

    Why are you...

    ---------------------------------------------------------

    It takes a minimal capacity for rational thought to see that the corporate 'free press' is a structurally irrational and biased, and extremely violent, system of elite propaganda.
    David Edwards - Media lens[/url]

    Society has varying and conflicting interests; what is called objectivity is the disguise of one of these interests - that of neutrality. But neutrality is a fiction in an unneutral world. There are victims, there are executioners, and there are bystanders... and the 'objectivity' of the bystander calls for inaction while other heads fall.
    Howard Zinn

  • RE: joins

    Cross-posting is frowned upon here I'm afraid!

    All replies redirect to : http://www.sqlservercentral.com/Forums/Topic1512602-392-1.aspx

    ---------------------------------------------------------

    It takes a minimal capacity for rational thought to see that the corporate 'free press' is a structurally irrational and biased, and extremely violent, system of elite propaganda.
    David Edwards - Media lens[/url]

    Society has varying and conflicting interests; what is called objectivity is the disguise of one of these interests - that of neutrality. But neutrality is a fiction in an unneutral world. There are victims, there are executioners, and there are bystanders... and the 'objectivity' of the bystander calls for inaction while other heads fall.
    Howard Zinn

  • RE: joins

    Welcome to SCC Surya!

    Please use the search box to find plenty of articles on this topic.

    Here is one I found for you. Hope it helps.

    http://www.sqlservercentral.com/articles/T-SQL/67202/

    ---------------------------------------------------------

    It takes a minimal capacity for rational thought to see that the corporate 'free press' is a structurally irrational and biased, and extremely violent, system of elite propaganda.
    David Edwards - Media lens[/url]

    Society has varying and conflicting interests; what is called objectivity is the disguise of one of these interests - that of neutrality. But neutrality is a fiction in an unneutral world. There are victims, there are executioners, and there are bystanders... and the 'objectivity' of the bystander calls for inaction while other heads fall.
    Howard Zinn

  • RE: DELETE running for 8 hours need to Stop the process

    Welsh Corgi (11/6/2013)


    I restarted SQL Server Service.

    It is at 0% recovered. Not moving.

    Let's hope you've got fast disks:-)

    ---------------------------------------------------------

    It takes a minimal capacity for rational thought to see that the corporate 'free press' is a structurally irrational and biased, and extremely violent, system of elite propaganda.
    David Edwards - Media lens[/url]

    Society has varying and conflicting interests; what is called objectivity is the disguise of one of these interests - that of neutrality. But neutrality is a fiction in an unneutral world. There are victims, there are executioners, and there are bystanders... and the 'objectivity' of the bystander calls for inaction while other heads fall.
    Howard Zinn

  • RE: ISO 27001 Standard and Database Administration

    How come you haven't mentioned disaster recovery strategy? That's pretty important IMHO.

    We went through a similar exercise some months ago and I had to provide the IT manager with a...

    ---------------------------------------------------------

    It takes a minimal capacity for rational thought to see that the corporate 'free press' is a structurally irrational and biased, and extremely violent, system of elite propaganda.
    David Edwards - Media lens[/url]

    Society has varying and conflicting interests; what is called objectivity is the disguise of one of these interests - that of neutrality. But neutrality is a fiction in an unneutral world. There are victims, there are executioners, and there are bystanders... and the 'objectivity' of the bystander calls for inaction while other heads fall.
    Howard Zinn

  • RE: sql server application audit setup

    No it's not a stupid question at all. You may have to write sprocs to record this information in audit tables as TRIGGERS will not do the job. I updated...

    ---------------------------------------------------------

    It takes a minimal capacity for rational thought to see that the corporate 'free press' is a structurally irrational and biased, and extremely violent, system of elite propaganda.
    David Edwards - Media lens[/url]

    Society has varying and conflicting interests; what is called objectivity is the disguise of one of these interests - that of neutrality. But neutrality is a fiction in an unneutral world. There are victims, there are executioners, and there are bystanders... and the 'objectivity' of the bystander calls for inaction while other heads fall.
    Howard Zinn

  • RE: Duplicate Rows

    Something like this:

    CREATE TABLE dbo.SCC (

    Col1 VARCHAr(10),

    Col2 INT,

    Col3 INT,

    Col4 TINYINT)

    INSERT INTO dbo.SCC (Col1, Col2, Col3, Col4)

    VALUES ('Test1', 3016482, 56395, 1), ('Test1', 3016482, 56395, 2),

    ('Test2', 5489108, 57921, 2),

    ('Test2', 5489108, 57921,...

    ---------------------------------------------------------

    It takes a minimal capacity for rational thought to see that the corporate 'free press' is a structurally irrational and biased, and extremely violent, system of elite propaganda.
    David Edwards - Media lens[/url]

    Society has varying and conflicting interests; what is called objectivity is the disguise of one of these interests - that of neutrality. But neutrality is a fiction in an unneutral world. There are victims, there are executioners, and there are bystanders... and the 'objectivity' of the bystander calls for inaction while other heads fall.
    Howard Zinn

  • RE: sql server application audit setup

    You may have one SQL login for the app but you must be maintaining a users table somewhere in your database.

    If that is the case then you can write custom...

    ---------------------------------------------------------

    It takes a minimal capacity for rational thought to see that the corporate 'free press' is a structurally irrational and biased, and extremely violent, system of elite propaganda.
    David Edwards - Media lens[/url]

    Society has varying and conflicting interests; what is called objectivity is the disguise of one of these interests - that of neutrality. But neutrality is a fiction in an unneutral world. There are victims, there are executioners, and there are bystanders... and the 'objectivity' of the bystander calls for inaction while other heads fall.
    Howard Zinn

Viewing 15 posts - 91 through 105 (of 616 total)