Forum Replies Created

Viewing 15 posts - 346 through 360 (of 608 total)

  • RE: Display More Than 8000 Characters (SQL Spackle)

    steve.ledridge (6/28/2013)


    Here is a little function I wrote to deal with this very problem.

    RBAR

    The SQL Guy @ blogspot[/url]

    @SeanPearceSQL

    About Me[/url]

  • RE: datatype doubts

    charipg (6/27/2013)


    Are there automatic routines that run to synchronize the Server's Clock

    to the Naval Observatory's master clock?

    Not from SQL Server, but you can setup Windows to sync.

    The SQL Guy @ blogspot[/url]

    @SeanPearceSQL

    About Me[/url]

  • RE: Max of 2 dates

    Alan.B (6/26/2013)


    Sean Pearce (6/26/2013)


    Alan.B (6/25/2013)


    Which is why I included two solutions: My original solution which I believe is correct and one which was cleaner and faster than the one Michael...

    The SQL Guy @ blogspot[/url]

    @SeanPearceSQL

    About Me[/url]

  • RE: problem in sql server

    These solutions will all give the desired output

    DECLARE @MyVal BIGINT = 1234567890

    SELECT 15

    SELECT (@MyVal / 100000000) + 3

    SELECT (@MyVal * 0) + 15

    SELECT REPLACE(REPLACE(REPLACE(REPLACE(REPLACE(REPLACE(REPLACE(REPLACE(CAST(@MyVal AS VARCHAR(20)), '2', ''),...

    The SQL Guy @ blogspot[/url]

    @SeanPearceSQL

    About Me[/url]

  • RE: Max of 2 dates

    Alan.B (6/25/2013)


    Which is why I included two solutions: My original solution which I believe is correct and one which was cleaner and faster than the one Michael posted.

    Do you not...

    The SQL Guy @ blogspot[/url]

    @SeanPearceSQL

    About Me[/url]

  • RE: Execution plan whose components add up to 248%

    This happens in concatenation when the path is not executed due to the request being satisfied. The path is not executed (as seen by 0 actual rows after the clustered...

    The SQL Guy @ blogspot[/url]

    @SeanPearceSQL

    About Me[/url]

  • RE: SQL QUERY REQUIRED

    nicklibee (6/20/2013)


    here is the answer!!!!!!!!,

    I really hope you don't have to support this code in production.

    http://forums.asp.net/t/1916175.aspx/1/10?help+to+query

    The SQL Guy @ blogspot[/url]

    @SeanPearceSQL

    About Me[/url]

  • RE: SP producing an impossible error

    Double check the definition of the UNIQUE constraint and make sure your check is checking on the same columns.

    Does the table have a trigger?

    The SQL Guy @ blogspot[/url]

    @SeanPearceSQL

    About Me[/url]

  • RE: Errors in SQL Server

    Profiler?

    The SQL Guy @ blogspot[/url]

    @SeanPearceSQL

    About Me[/url]

  • RE: Performance Tuning for the procedure

    michal.lisinski (6/25/2013)


    Hi Gila

    You have the right to disagree with my opinion, but there is no "right" answer here. For data that is not meant to persist beyond the scope of...

    The SQL Guy @ blogspot[/url]

    @SeanPearceSQL

    About Me[/url]

  • RE: Licensing standalone SSRS (2008 R2 or 20012)

    http://msdn.microsoft.com/en-us/library/ms143703(v=sql.90).aspx

    The SQL Guy @ blogspot[/url]

    @SeanPearceSQL

    About Me[/url]

  • RE: ORDER BY when inserting into table variable

    x_japanfans5312 (6/24/2013)


    seems like the order BY Number DESC on the insert statement doesn;t work in SQL Server 2012

    We don't order INSERTS, we order SELECTS.

    Your two queries can be read like...

    The SQL Guy @ blogspot[/url]

    @SeanPearceSQL

    About Me[/url]

  • RE: Automating the SQL Profiler

    Running this 24\7 is potentially going to be massive amounts of data. I would have dedicated storage for the trace files.

    exec sp_trace_setevent @TraceID, 'RPC:Completed', 'EndTime', @on

    exec sp_trace_setevent @TraceID, 'RPC:Completed', 'Reads',...

    The SQL Guy @ blogspot[/url]

    @SeanPearceSQL

    About Me[/url]

  • RE: connection failed sqlstate 37000 SQL error: 4064

    The Login Properties window allows you to select a default database for a sql server login. This database must exist, be online and the login must have permission to access...

    The SQL Guy @ blogspot[/url]

    @SeanPearceSQL

    About Me[/url]

  • RE: Which one of the below operator takes the most time for execution?

    kiran.vaichalkar (6/19/2013)


    Which operator takes the most time for execution?

    1) IN

    2) NOT IN

    3) AND

    4) ALL

    ?

    Your question makes this much sense:

    I have a Sharp Calculator, which operator takes the most time for...

    The SQL Guy @ blogspot[/url]

    @SeanPearceSQL

    About Me[/url]

Viewing 15 posts - 346 through 360 (of 608 total)