Forum Replies Created

Viewing 15 posts - 3,361 through 3,375 (of 8,754 total)

  • RE: How to Run Scheduled Jobs in Azure SQL Databases

    BLOB_EATER (8/1/2016)


    Eirikur Eiriksson (8/1/2016)


    Thanks for this fine piece Daniel!

    😎

    My thought is that there are many out there which have Azure SQL databases but don't have local SQL Server instances to...

  • RE: Pivoting Question

    slr010877 (8/1/2016)


    Thank you so much, worked perfectly!

    You are very welcome

    😎

    For further information on the subject, I suggest having a look at Jeff Moden's excellent articles, Cross Tabs and Pivots[/url].

  • RE: How to Run Scheduled Jobs in Azure SQL Databases

    Thanks for this fine piece Daniel!

    😎

    My thought is that there are many out there which have Azure SQL databases but don't have local SQL Server instances to run the scheduled...

  • RE: Check for Columns in the table and then Execute next Tsql statements

    Quick example

    😎

    USE TEEST;

    GO

    SET NOCOUNT ON;

    -- THE NAME OF THE COLUMN WHICH WE WANT TO CHECK IF EXISTS OR NOT

    DECLARE @COL_TO_LOOK_FOR NVARCHAR(128) = N'MY_NEW_COL';

    -- TABLE THAT DOES NOT...

  • RE: DB IN SUSSPECT STATUS

    GilaMonster (8/1/2016)


    Eirikur Eiriksson (7/31/2016)


    Quick question, did you take any kind of a backup before you started the repair exercise?

    😎

    In this case no data would have been lost, the repair rebuilt...

  • RE: Query to summarize result set

    sqlquery29 (8/1/2016)


    Apologies for the format....I couldn't explain in detail..

    Thank You for the replies....

    You are very welcome and thanks for the feedback.

    😎

  • RE: Pivoting Question

    Quick suggestion

    😎

    USE TEEST;

    GO

    SET NOCOUNT ON;

    --

    ;WITH SAMPLE_DATA(Date,Client,QType,Answer) AS

    (SELECT Date,Client,QType,Answer

    FROM (VALUES

    ('11.01.16',1,'Q1',100)

    ,('11.01.16',1,'Q2',150)

    ,('11.01.16',1,'Q3',75 )

    ,('11.01.16',2,'Q1',250)

    ...

  • RE: Reading from JSON

    VastSQL (8/1/2016)


    Hi Experts,

    We have a column which stores JSON , how can I query a single property in that column(ex:property:car)

    Thanks

    Quick suggestion, post some sample data, the expected output and...

  • RE: DB IN SUSSPECT STATUS

    Quick question, did you take any kind of a backup before you started the repair exercise?

    😎

  • RE: DB IN SUSSPECT STATUS

    liorvikel (7/31/2016)


    now its online..

    i do this procedure:

    http://www.sql-server-performance.com/2015/recovery-sql-server-suspect-mode/2/

    but how can o check the last writing on this db?

    to see if the data consistent

    thanks

    Ooops, so you ran DBCC CheckDB ('DatabaseName',...

  • RE: DB IN SUSSPECT STATUS

    Start by running DBCC CheckDB ('DatabaseName') WITH NO_INFOMSGS, ALL_ERRORMSGS and post the full and unedited output.

    At this point DO NOT detach the database!

    😎

  • RE: SQL Server Crashed

    Quick questions, what else is running on the server? What are the sql server memory configurations? Any relevant entries in the Windows Event Log? What is the storage configuration? Any...

  • RE: Are the posted questions getting worse?

    Hugo Kornelis (7/31/2016)


    Eirikur Eiriksson (7/31/2016)


    Feel free to pitch in, someone not having a great day😀

    😎

    I think you already nailed it in your very first reply, but the OP either misunderstood...

  • RE: Performance tuning on Production systems ??

    Piling on Kevin's fine answer; production system tuning should not be an trial & error process but rather information gathering with careful interactions and modifications to the system. Knee jerks...

  • RE: Query to summarize result set

    Slightly different flavor with the addition of "valid groups" instead of hard coding which values to combine

    😎

    USE TEEST;

    GO

    SET NOCOUNT ON;

    ;WITH SAMPLE_DATA(StateID,DistrictID,CityID,Grp,VoteCount) AS

    (

    SELECT 1 AS StateID, 1 AS DistrictID, 1 AS...

Viewing 15 posts - 3,361 through 3,375 (of 8,754 total)