Forum Replies Created

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

  • RE: SET or SELECT to assign a default value to a nullable variable

    How's this?

    DECLARE @L_ZERO INT

    SELECT @L_ZERO = ISNULL(IdMyTable,0) FROM MyTable WHERE ColumnRef = 1000

    SELECT @L_ZERO

  • RE: SYSLanguages on SQL 2012

    Thank-you, for the nice & easy question. For me, the week generally goes good if the start is good 🙂

    I have strongly believed that if users are not supposed to...

  • RE: NULLS

    Nice, easy question to end the week.

    @hugo: Completely agree on your point about the issue with the explanation.

  • RE: String comparison

    Very good question! The question proves that the devil is in the details! The question teaches everyone a lot of things.

    Thank-you!

  • RE: Could not be bound error

    Looks like there is an issue with one or your aliases (maybe a table alias is being used but is not defined).

  • RE: Bulk Logged recovery model

    The way I interpreted the question was:

    1. Database is in full-recovery mode

    2. User foresees bulk-operations (i.e. to be performed sometime in the future)

    3. User therefore changes the database to bulk-logged...

  • RE: DateTime Functions

    Nice question, Thank-you, Steve! Learnt something new.

  • RE: Unable to login with windows authentication

    Look specifically at the full error message:

    select * from sys.messages where message_id = '18452' and language_id = 1033

    Login failed. The login is from an untrusted domain and cannot be used...

  • RE: View retrieving incorrect values

    kutti609 (3/27/2012)


    Hi,

    Please post the View which is returning wrong result .

    Thanks,

    Kuttikrishnan.P

    And some test data showing what's wrong.

  • RE: How to connect to remote Instance

    If you are able to get to your server by searching for the network instances, is there a specific need as to why you need to connect using the IP?

    In...

  • RE: View retrieving incorrect values

    This needs more information. Please refer the post: Forum Etiquette: How to post data/code on a forum to get the best help[/url] that describes the bare minimum requirements before we...

  • RE: How to remove minutes and seconds from DateTime?

    Does this work for you?

    USE tempdb

    GO

    DECLARE @testDate DATETIME = '2012-03-27 12:57:21.097'

    SELECT DATEADD(HH,DATEPART(HH,@testDate),CAST(CAST(@testDate AS DATE) AS DATETIME)) AS StrippedDate

    /*------------------------

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

    StrippedDate

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

    2012-03-27 12:00:00.000

    ------------------------*/

  • RE: Tabs or Spaces

    Perhaps the major reason I hate tabs in code is that tabs are not interpreted in the same way on all systems - some may have 4 spaces, others may...

  • RE: BETWEEN

    Nice and easy question to get the week started. Thank-you, Steve!

    Everyone: Have a great week ahead!

  • RE: How to join a local table to a remote table by way of a linked server

    I believe the reason would be because OPEN queries require that Adhoc queries be enabled on the SQL Server, which, depending upon the environment and the situation, might be considered...

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