New to SQL server

  • Thread starter ironwood9 via AccessMonster.com
  • Start date
A

aaron.kempf

I don't believe that it's practical to rely on a ANSI-92 database; and
I dont think that database portability is remotely an issue.

MS SQL Server won the Windows war, who gives a shit about your linux /
unix CRAP


-Aaron
 
A

aaron.kempf

look asshole

access jet was obsolete 10 years ago; and it's been 100% obsolete since
the fall of '99

FOR SURE


Access Data Projects made MDB completely obsolete you moron

and ANSI-92 isn't the 'DEFAULT' in MDB so screw you

-Aaron



and most of the [SQL-99] stuff is irrelevent.

INTERSECTS?
OVERLAPS?

It's better done in PLAIN OLD SQL, kid

You're preaching to the converted :)

You can't get much more "PLAIN OLD SQL" than DRI and CHECK constraints.
Why can't SQL Server get the basics right? Access/Jet got there seven
years ago! Why not try to do better than Access/Jet - how hard can
*that* be <g>? - and give us CREATE ASSERTION and DOMAINs?

Jamie.

--
 
A

aaron.kempf

triggers, bitch

I can do shit that is 10 times as complex with triggers as anything
else that you'd even consider.

triggers are the icing on the cake.

the fact of the matter that not having seed and increment for
'autonumber (gag)' is a show-stopper

MDB is unreliable; fire anyone that still uses it and then spit on
them.

-Aaron
 
D

dbahooker

DRI and CHECK constraints?

SQL SERVER WORKS LIKE A CHARM, PLEASE EXPLAIN YOUR SO CALLED BUGS ROFL

I can centralize constraints on a custom datatype with RULES

you can't do anything like that for MDB


and most of the [SQL-99] stuff is irrelevent.

INTERSECTS?
OVERLAPS?

It's better done in PLAIN OLD SQL, kid

You're preaching to the converted :)

You can't get much more "PLAIN OLD SQL" than DRI and CHECK constraints.
Why can't SQL Server get the basics right? Access/Jet got there seven
years ago! Why not try to do better than Access/Jet - how hard can
*that* be <g>? - and give us CREATE ASSERTION and DOMAINs?

Jamie.

--
 
A

aaron.kempf

where do you come up with this?

Access doesn't support triggers; and SQL triggers trump any benefit
that your pea sized brain can comprehend in SQL Server.

-Aaron
 
D

dbahooker

Dude you're fucking whacked...
we have a TRUMP CARD: it is called triggers.

ANYTHING THAT YOU CAN DO IN JET IS BABY TALK COMPARED TO WHAT WE CAN DO
IN SQL.

seriously I have no clue what your difficulty is:

This is the simple way to do it:

USE [SQL2005TEST]
GO
/****** Object: Table [dbo].[MYTABLE] Script Date: 12/06/2006
12:59:42 ******/
SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER ON
GO
SET ANSI_PADDING ON
GO
CREATE TABLE [dbo].[MYTABLE](
[RECORDID] [int] NOT NULL,
[NAME] [varchar](50) COLLATE SQL_Latin1_General_CP1_CI_AS NULL,
[PARENTID] [int] NOT NULL,
CONSTRAINT [PK_MYTABLE] PRIMARY KEY CLUSTERED
(
[RECORDID] ASC
)WITH (PAD_INDEX = OFF, IGNORE_DUP_KEY = OFF) ON [PRIMARY]
) ON [PRIMARY]

GO
SET ANSI_PADDING OFF
GO
ALTER TABLE [dbo].[MYTABLE] WITH CHECK ADD CONSTRAINT
[FK_MYTABLE_MYTABLE] FOREIGN KEY([PARENTID])
REFERENCES [dbo].[MYTABLE] ([RECORDID])
GO
ALTER TABLE [dbo].[MYTABLE] CHECK CONSTRAINT [FK_MYTABLE_MYTABLE]



And if you insist on having cascade deletes / updates.. then you can
use a TRIGGER.

Access doesn't support TRIGGERS; and it's not 1/10th the database that
SQL Server is.


Also; with MDB you can 'create a relationship' against a query.

BUT IT DOESNT _DO_ ANYTHING right?
you can't enforce it; and you sure can't cascase update / delete this.

This is one feature that I wish would WORK in Access _AND_ in SQL
Server.
But i'm not going to let you get away with saying that there is
anything that you can do in JET that I can't do in SQL Server

I've been building parent-child relationships-- probably 2 or 3 a
year-- for the past 5 years and it's never given me a DROP of a
problem.

WIth Analysis Services; it's probably the single most powerful FEATURE
in SQL Server.

and for the record-- all DRI used to be triggers; so no; I dont' think
that it's that difficult to mix and match triggers and DRI.

Maybe if you stopped usign MDB you could fully learn how to use SQL
Server

CREATE TABLE Employees (
employee_ID INTEGER NOT NULL PRIMARY KEY
)

PS - maybe your problem with SQL Server is that it's not handicapped to
'only run one sql statement at a time'

with SQL Server you can have IF EXISTS () and stuff like that..
with Accees you can't do jack shit and you have to mix VBA code and SQL
to do a simple task like 'create table X if it doesn't already exist'

with Accees you can't do jack shit and you have to mix VBA code and SQL
to do a simple task like 'create table X if it doesn't already exist'

-Aaron
 
S

susiedba

what.. you're implying that SQL 2005 isn't a roaring success? I mean;
seriously here-- please share these numbers that you're referring to;
because I dont think that it's been anything but a complete success.

SQL 2005 is MUCH MUCH BETTER dude.. did they come out with a new
version of JET in the year 2005?

oh yeah; they haven't TOUCHED JET IN 10 YEARS BECAUSE IT'S OBSOLETE,
HUH?

SQL Server doesn't choke when it sees two easy to resolve cascade
paths; I just flat out dont have any fucking clue WTF you're mumbling
about

and if it does 'choke' I could use a trigger.

Access doesn't support triggers; it just sucks

-Susie
 
A

aaron.kempf

I could give a flying **** about what's included in Jet.

I woudl rather use something that isn't included in Jet-- because jet
is a fucking disease and anyone that uses MDB for anything should be
FIRED and then SPIT UPON


-Aaron

I can do [coding] that is 10 times as complex with triggers as anything
else that you'd even consider.

Why would anyone want trigger code that is ten times more complex than
vanilla SQL that does the same thing?

SQL is a declarative language: you tell the product what you want (e.g.
a constraint) and the product decides how best to implement it. With
triggers you have to manage some of the implementation stuff yourself.

To use our earlier example, which of the following approaches would you
prefer if they were both available in the SQL product of your choice?

Approach 1: CHECK constraint (works in Jet but not in SQL Server):

ALTER TABLE OrgChart ADD
CONSTRAINT can_manage_maximum_three_employees
CHECK (NOT EXISTS (
SELECT T2.manager_employee_ID, COUNT(*)
FROM OrgChart AS T2
GROUP BY T2.manager_employee_ID
HAVING COUNT(*) > 3));

Approach 2: trigger (works in SQL Server but not in Jet):

CREATE TRIGGER can_manage_maximum_three_employees
ON OrgChart
FOR INSERT, UPDATE
AS
IF EXISTS (
SELECT T2.manager_employee_ID, COUNT(*)
FROM OrgChart AS T2
GROUP BY T2.manager_employee_ID
HAVING COUNT(*) > 3
)
BEGIN
RAISERROR ('One or more values are prohibited by the validation
rule ''can_manage_maximum_three_employees'' set for ''OrgChart''.', 16,
1)
ROLLBACK TRANSACTION
END

That's the simplest I can think of and, you are correct, it *did* take
me ten times as long to write than the equivalent Jet CHECK constraint.

Jamie.

--
 
A

aaron.kempf

OneDayWhen

you're full of shit

Office 2007 isn't really available yet.. can I go and buy a retail
copy?

they haven't touched DAO in 10 years; it hasn't been available in
either MDAC or Windows by default.. it's a total and utter waste of
time

It HANGS access
It HANGS access
It HANGS access

and it makes you explicitly close variables-- which kindof defeats the
purpose of VB.. if I wanted to deal with Pointers; I would stick a C++
dildo up my ass

-Aaron
 
D

dbahooker

trigger isnt' evil.

ITS AN ADDED BONUS.

-Aaron

Well, yes they did, sort of. It's called Access 2007 engine. It is a
'private copy' (or branch) of the Jet code base. I'm not sure this is
anything to get excited about yet but it *is* progress, I suppose (and


It does. Run my OrgChart code (posted in this thread) and you'll see it
yourself.


Do you really enjoy implementing all you database constraints as
triggers? I consider a trigger as a last resort myself and then they
usually contain commented-out code as a memo to my future self on how
to re-write the trigger as a 'proper' contraint when the SQL Server
team finally get around to implementing the DRI cascade referential
actions and the table-level CHECK constraints that Jet got seven years
ago and, who knows, we may even get CREATE ASSERTION and DOMAINs as
well.

Jamie.

--
 
D

dbahooker

you just flat out don't understand that MDB / JET is DEAD AND IT HAS
BEEN FOR 10 YEARS do you?

-Aaron
 
D

dbahooker

look at a calendar; bitch

it's not 2005, it's 2006

so the answer was NO, they didnt come out with a new version of JET for
10 years.

and now they think that we're going to go back to the 90s?

ID RATHER RUN WINDOWS ME THEN EVER TOUCH DAO AGAIN

-Aaron
 
A

aaron.kempf

ROFL

do you explicitly close your variables though?

how do you get stability out of DAO?

I still have a bad taste about it in my mouth; I've rewritten anything
with DAO that I've ever had permissions to look at, let alone change

-Aaron



they haven't touched DAO in 10 years; it hasn't been available in
either MDAC or Windows by default.. it's a total and utter waste of
time

It HANGS access
It HANGS access
It HANGS access

You missed a trick here. I've used Jet without Access for quite
sometime and none of my test mdb files (with which I do all kinds of
funky things) have never gone corrupt. Looking at the bug reports
you'll come to the conclusion that it is more like "Access corrupts
MDB said:
and it makes you explicitly close variables-- which kindof defeats the
purpose of VB.. if I wanted to deal with Pointers; I would stick a C++
[profanity snipped]

LOL! Man, some of your stuff if dynamite! If you could only cut down on
the profanity I'd quote you on some of this stuff.

Jamie.

--
 
D

dbahooker

Jamie;

great-- so I finally got somebody to agree with me that Access /MDB is
completely unusable from a stability standpoint.

I will try to be nicer to you in the future

-Aaron


they haven't touched DAO in 10 years; it hasn't been available in
either MDAC or Windows by default.. it's a total and utter waste of
time

It HANGS access
It HANGS access
It HANGS access

You missed a trick here. I've used Jet without Access for quite
sometime and none of my test mdb files (with which I do all kinds of
funky things) have never gone corrupt. Looking at the bug reports
you'll come to the conclusion that it is more like "Access corrupts
MDB said:
and it makes you explicitly close variables-- which kindof defeats the
purpose of VB.. if I wanted to deal with Pointers; I would stick a C++
[profanity snipped]

LOL! Man, some of your stuff if dynamite! If you could only cut down on
the profanity I'd quote you on some of this stuff.

Jamie.

--
 
G

Guest

there is nothing wrong with triggers.

being able to 'use a trigger as a last resort' is a _LOT_ better deal than
'never being able to use a trigger'

MDB is for babies

-Aaron
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top