Forum Replies Created

Viewing 15 posts - 11,551 through 11,565 (of 13,463 total)

  • RE: simple trigger

    well kind of...there is no such thing as a sequence number in SQL, but the Identity() has the equivalent for any given column...if you set the identity() on the column,...

  • RE: simple trigger

    SQL server is a little bit different than other languages like Oracle.

    there is an Identity() property you can set on a column, which has the same effect that a sequence...

  • RE: DATEADD with milliseconds

    I personally use the 997 milliseconds, otherwise it;'s the next day.

    SET DATEFIRST 1

    declare @mon datetime,

    @fri datetime

    SELECT...

  • RE: Not getting Topic Reply Notifications

    very weird...i created a new email address for myself on my email server, and changed my email notification address here on SSC to the new one; could you please just...

  • RE: Merge two tables, one column each into one table with two columns

    psuedocode sucks....when you abstract the real problem, you get crappy answers, that you end up having to explain lots of times till you come around to teh real answer. Show...

  • RE: Writing out a one column result set as a concatenated string

    here's an example for you to look at:

    stuff all values into a column

    ------------DDL----------------

    create table test (id int identity, category varchar(100),

    name varchar(100), allnames varchar(8000) null)

    insert test (category, name)

    select 'fruit', 'apple' union...

  • RE: Using Variables in SELECT statements

    i think either your server is SQL 2000, or the database's compatibility level is still sitting at 80 instead of 90. the xquery is a 2005/90 feature.

    change your compatibility level...

  • RE: Only one expression can be specified in the select list when the subquery is not introduced with EXISTS

    like others said, you have to JOIN the two aliased groups:

    Select

    ALIAS1.naam,

    ALIAS1.Aantal_Incidenten,

    --ALIAS2.naam, --now that they are joined, no need to repeat

    ALIAS2.Aantal_Inc_Portal

    FROM

    (

    select vestiging.naam, count(*)...

  • RE: Break out a description field.

    if you add a tally table, this is one of those magical Tally table wonders that extracts between two delimiters: it pulls out the ID and each of the Id's...

  • RE: help with a trace

    my fault... i was running the query in a database that was Compatibility level 80....duh!

    Lowell (2/18/2009)


    Jack I get an error when trying to test the code snippet you pasted...

    Msg 156,...

  • RE: help with a trace

    Jack I get an error when trying to test the code snippet you pasted...

    Msg 156, Level 15, State 1, Line 19

    Incorrect syntax near the keyword 'CASE'.

    I must be blind, because...

  • RE: Named Instance

    most likely this is related to installing an EXPRESS version ..express does not allow remote connections by default, you must enable it using the Surface Area Configuration Manager:

  • RE: Question: same code, diferent name

    ok, what happens int eh case of a tie?...for code 75360412, two names have been used twice in your example

    results:

    code ...

  • RE: Enterprise Edition Vs Developer Edition

    you hit the reason on the head...Cost.....Developer version is not licensed for production.

    imagine you have 20 developers on your team, building an application that will be deployed in production...each developer...

  • RE: Question: same code, diferent name

    psuedo code sucks big time.

    what does the REAL data look like? if you just want the first character, or do you want to strip out non- letter stuff fromt...

Viewing 15 posts - 11,551 through 11,565 (of 13,463 total)