Viewing 15 posts - 11,551 through 11,565 (of 13,463 total)
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,...
February 19, 2009 at 1:32 pm
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...
February 19, 2009 at 1:22 pm
I personally use the 997 milliseconds, otherwise it;'s the next day.
SET DATEFIRST 1
declare @mon datetime,
@fri datetime
SELECT...
February 19, 2009 at 8:34 am
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...
February 18, 2009 at 6:52 pm
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...
February 18, 2009 at 4:34 pm
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...
February 18, 2009 at 1:19 pm
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...
February 18, 2009 at 1:10 pm
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(*)...
February 18, 2009 at 1:00 pm
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...
February 18, 2009 at 11:43 am
my fault... i was running the query in a database that was Compatibility level 80....duh!
Lowell (2/18/2009)
Msg 156,...
February 18, 2009 at 10:09 am
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...
February 18, 2009 at 9:50 am
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:

February 18, 2009 at 8:38 am
ok, what happens int eh case of a tie?...for code 75360412, two names have been used twice in your example
results:
code ...
February 17, 2009 at 9:57 am
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...
February 17, 2009 at 8:59 am
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...
February 17, 2009 at 8:50 am
Viewing 15 posts - 11,551 through 11,565 (of 13,463 total)