MS SQL Development
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
User Name:
Password:
Remember me
Go Back   Dev Shed ForumsDatabasesMS SQL Development

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Rate Thread Display Modes
 
Unread Dev Shed Forums Sponsor:
Get inside! Sample the range of functionality easily built with JMSL Library for Time Series Data Analysis, Heat Maps, Portfolio Optimization, Monte Carlo Simulation, Stock Price Charting and more. Download Now!
  #1  
Old October 20th, 2003, 10:20 PM
DavidM DavidM is offline
Junior Member
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Jul 2002
Posts: 10 DavidM User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
Poor SQL Server Programming Part 3

Since I have time to write another story -- here goes.

We have another SQL Server box in our shop that is a DSS (Decision Support
System). This system is loaded daily from mainframe extracts that we run.
I have two problems with the entire application and system that is used.

PROBLEM #1:
The windows application that we use is terribly written. It was designed
for a single customer to load their mainframe data manually. Of course, we
also run the same application internally within a service bureau environment
for multiple customers that do not want to run the application inhouse.
Unfortunately, since this application is single user, everything from
selecting the files, options to load, and the customer file that you want to
load is done manually.

Since the vendor mostly sells this product to inhouse customers and not to
service bureau customers, they're not likely to change anything. The
thoughts were since we mostly select the same options all the time and the
program cannot accept any command line options to avoid the point-and-click,
we thought'd we'd use vbscript and the SendKeys object to send keyboard
commands to the active application.

The only problem with this is... once you select all the menu options and
list box selections, etc., to do the load, you have to hit a "LOAD" button
on the form. Unfortunately, you cannot TAB or ALT to the button. There
apparently is no tab index or hotkey option to do it. The only way you can
select the button is by using the mouse!!!

Therefor the whole idea of trying to better automate the redundant
selections was totally blown out of the water. We are still waiting on
vendor to modify program to make it more automated and/or scriptable.

They also apparently SHELL out to DOS to run the BCP.EXE program. Because
every table they load a blank DOS prompt comes up and the screen literally
freezes and won't refresh until control and returned back to the
application. Means you basically can't do anything on the system during
this time... They're are clearly doing BCP because all of the .log files
that are generated per table which shows the number of rows loaded and the
time it took.

I guess they couldn't figure out a better way to bulk insert data than
this... Plus -- they never heard of DoEvents() either... apparently.

PROBLEM #2:
All our clients use Cognos Report Writer to access the SQL Server to run
their reports. Unfortunately, some moron created their catalogs that Cognos
uses to us the "SA" user account. That's right! Every one of our customers
and all their clients at each customer that uses Cognos is using "SA"! Go
figure!!! As I said in my last message, anyone can sniff the network and
gain the SA password and blow away my entire system. Heck... if they did
this, we wouldn't even know what happened. We'd probably think we had a
software/hardware failure or it was just a fluke. Lamers!


The only other thing I'd like to say that sucks about this entire system is
that some stupid sales person promised our customers 12 months worth of DSS
information. So every monthend, we have to cut a new database for each of
our customers.

Sooo we have 35 customers that access a daily database. 35 (customers) x 12
(databases) = 420 databases will reside on this server! Back from my old
company I worked for -- we only offered Daily, EOM, and EOY. Of course, we
had every EOM database backed up and could easily restore (at a charge to
the customer) if they needed it for something.

Has anyone tried to manage a SQL Server box with 420+ databases? It's
insane! It takes forever to enumerate the data... it takes forever to
maintain and backup.

In fact, the last time I did SQL Server 2000 SP4 upgrade, it aborted in the
middle. I had to call Microsoft and the reason was that the SP upgrade
stops/restarts SQL Server in the middle of the upgrade and then continues
on... well, apparently, the upgrade only waits a certain amount of time
before continuing. In my case, the SQL Server hadn't brought all the
databases back online yet before the upgrade continued.

Microsoft then helped me restart the SP upgrade in debug mode and got things
fixed.

As you can see, I have a number of issues with how this DSS server is used
in a day to day environment. Fixing these problems are not as easy as just
adding a new database user and setting role to "readonly". Each of the
catalogs must be created for each month database that we have and for each
customer. This is lots of work. It won't be fixed overnight.

Well, I'm off the soap box for now.

And yes, I'm not done! I have a couple more horror stores to share with you
guys -- but I'll save that for later, too!

comments, feedbacks, and flames welcome....

Reply With Quote
  #2  
Old October 20th, 2003, 10:57 PM
Scorpions4ever's Avatar
Scorpions4ever Scorpions4ever is offline
Banned ;)
Dev Shed God 5th Plane (7000 - 7499 posts)
 
Join Date: Nov 2001
Location: Glendale, Los Angeles County, California, USA
Posts: 7,442 Scorpions4ever User rank is Major General (70000 - 90000 Reputation Level)Scorpions4ever User rank is Major General (70000 - 90000 Reputation Level)Scorpions4ever User rank is Major General (70000 - 90000 Reputation Level)Scorpions4ever User rank is Major General (70000 - 90000 Reputation Level)Scorpions4ever User rank is Major General (70000 - 90000 Reputation Level)Scorpions4ever User rank is Major General (70000 - 90000 Reputation Level)Scorpions4ever User rank is Major General (70000 - 90000 Reputation Level)Scorpions4ever User rank is Major General (70000 - 90000 Reputation Level)Scorpions4ever User rank is Major General (70000 - 90000 Reputation Level)Scorpions4ever User rank is Major General (70000 - 90000 Reputation Level)Scorpions4ever User rank is Major General (70000 - 90000 Reputation Level)Scorpions4ever User rank is Major General (70000 - 90000 Reputation Level)Scorpions4ever User rank is Major General (70000 - 90000 Reputation Level)Scorpions4ever User rank is Major General (70000 - 90000 Reputation Level) 
Time spent in forums: 1 Month 1 h 58 m 35 sec
Reputation Power: 797
Would you mind posting all these under a single thread please . Great stuff BTW. I've seen a blank sa password in a couple of places too and it scared me
__________________
Up the Irons
What Would Jimi Do? Smash amps. Burn guitar. Take the groupies home.
"Death Before Dishonour, my Friends!!" - Bruce D ickinson, Iron Maiden Aug 20, 2005 @ OzzFest
Down with Sharon Osbourne

Puzzle of the Month solved by sizeablegrin, etienne141 and L7Sqr, superior C/C++ programmers of the month

Reply With Quote
Reply

Viewing: Dev Shed ForumsDatabasesMS SQL Development > Poor SQL Server Programming Part 3


Thread Tools  Search this Thread 
Search this Thread:

Advanced Search
Display Modes  Rate This Thread 
Rate This Thread:


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
View Your Warnings | New Posts | Latest News | Latest Threads | Shoutbox
Forum Jump


Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
  
 





© 2003-2008 by Developer Shed. All rights reserved. DS Cluster 1 hosted by Hostway