Forum Replies Created

Viewing 15 posts - 76 through 90 (of 245 total)

  • RE: Time difference bewteen two different data rows

    like this?

    you'd have to work out what the criteria for joining the table is though

    declare @table table(ID int, UName varchar(10),alert_datetime datetime)

    iNSERT INTO @table

    SELECT '1','ABC','2011-07-06 14:12:00' UNION ALL

    SELECT '2','XYZ','2011-07-06 14:12:10'...

  • RE: Can we increase the query Execution Time

    there is an execution time-out option in SQL.

    click Tools --> Options... and then choose 'Query Execution' from the resulting popup window.

    you will see an option that says 'Execution time-out' which,...

  • RE: use print statement in stored procedure

    Eugene Elutin (4/17/2012)


    CELKO (4/16/2012)


    Yes, but it is bad programming. The PRINT is for debugging and not production code. Think about 100 people calling the same program. You do not want...

  • RE: is it possible to run a query for all SQL jobs that ran at a specific time?

    brilliant, thanks for the info.

    i also used this thread http://www.sqlservercentral.com/Forums/Topic542581-145-1.aspx, based on the table names you gave me, and have found the offending SQL job.

    select (select name from sysjobs...

  • RE: is it possible to re-order the intellisense options as they appear?

    i see. i guess i'll just have to put up with it πŸ™‚ thanks anway!

    i was hoping to get it sorted like so:

    footballs

    footballStates

    footballs_MLFlags

    footballUnits

    footballValidation

    footballValidationStates

    football_suspend

    which is alphabetical from what i can see....

  • RE: query for consecutive alphabets

    this is a great script! i've already found a number of examples of 'bad' data.

    i had to be careful though as i found that names like 'Stuart' and 'Kirsty' are...

  • RE: is it possible to re-order the intellisense options as they appear?

    ok. thats weird.

    my example was totally made up to illustrate my point. Maybe, in making it up, i inadvertently made it less clear what was going on.

    Here are my table...

  • RE: Find special characters

    i found something weird. i have two databases with different collations. so if i do:

    WITH TBProduct (Description)

    AS

    (

    SELECT 'NΒΊ20' UNION ALL

    SELECT 'No Special Characters' union all

    select 'Coedcae Comprehensive' union all

    select col1...

  • RE: VIEWS 4

    Rose Bud (3/27/2012)


    davidandrews13 (3/27/2012)

    that's the reason why i thought it didn't matter if you specified SELECT *, or not - because it always expanded it out for me.

    It appears to...

  • RE: VIEWS 4

    Hugo Kornelis (3/27/2012)


    davidandrews13 (3/27/2012)


    a. i create a view by using the CREATE VIEW As statement with a SELECT * and the view automatically expands out the column names.

    That is, apparently,...

  • RE: VIEWS 4

    Sean Lange (3/27/2012)


    davidandrews13 (3/27/2012)


    Important to note. You are creating the view via SSMS and NOT a create view statement. I am not surprised that SSMS expands the actual sql to...

  • RE: VIEWS 4

    Hugo Kornelis (3/27/2012)


    davidandrews13 (3/27/2012)


    bitbucket-25253 (3/27/2012)


    davidandrews13 (3/27/2012)


    Carlo Romagnano (3/27/2012)


    Easy question!

    Good practice is never use "SELECT * FROM" in view, too.

    πŸ˜‰

    surely it doesn't matter if you do SELECT *?

    every time i create...

  • RE: VIEWS 4

    bitbucket-25253 (3/27/2012)


    davidandrews13 (3/27/2012)


    Carlo Romagnano (3/27/2012)


    Easy question!

    Good practice is never use "SELECT * FROM" in view, too.

    πŸ˜‰

    surely it doesn't matter if you do SELECT *?

    every time i create or update a...

  • RE: VIEWS 4

    Hugo Kornelis (3/27/2012)


    davidandrews13 (3/27/2012)

    every time i create or update a view to '*' instead of naming each individual column name, it expands it out to the individual column names anyway.

    That's...

  • RE: VIEWS 4

    Carlo Romagnano (3/27/2012)


    Easy question!

    Good practice is never use "SELECT * FROM" in view, too.

    πŸ˜‰

    surely it doesn't matter if you do SELECT *?

    every time i create or update a view to...

Viewing 15 posts - 76 through 90 (of 245 total)