Viewing 15 posts - 3,346 through 3,360 (of 3,638 total)
You could have coded your SP as follows
CREATE PROCEDURE usp_check_login
@username varchar(20),
@password varchar(20) AS
SET NOCOUNT ON
SELECT user_id,
user_active as login_active,
user_loginattempts as login_attempts,
user_type
FROM tbl_user
WHERE user_username = @usernameAND user_password = @password
RETURN @@ROWCOUNT
GO
That...
December 23, 2003 at 1:59 am
TRUNCATE also fails if you use foreign key constraints, regardless of whether they are violated.
I fully agree that people should not be allowed to create datbases willy-nilly.
If developers go creating...
December 22, 2003 at 2:06 am
Firstly, I've come across SQL6.5 a couple of times recently because it was a huge undocumented, mission critical application written in C++ where the source code had been lost. ...
December 18, 2003 at 1:34 am
I tend to use short meaningful abbreviations, which is fine for databases with a few tables, but if you get an app with thousands of tables then your abbreviations cna...
December 18, 2003 at 1:24 am
quote:
Dude should have normalized his database...
Probably bought the list from a...
December 17, 2003 at 8:35 am
quote:
For the second best practice, i would like to addGive proper alignments or Indent while writing the joins to make...
December 17, 2003 at 7:50 am
Perhaps you should write an article and submit it to the site.
Enlighten us all and earn US$25 in the process.
========================
He was not wholly unware of the potential lack of insignificance.
December 17, 2003 at 7:17 am
Yep, Douglas Adams.
The robot was Marvin the paranoid android but I'm thinking of a character in a later book in the series but can't think of his name.
There...
December 17, 2003 at 7:16 am
Sorry, forgot the language barrier.
They say that eskimos have thousands of names for snow, the British have millions that can be used as insults.
Bodily parts can be used as insults...
December 17, 2003 at 4:25 am
I used to work on an HP3000 mini-computer where the console had ultimate control followed by administrators followed by users.
We had a utility that let us impersonate differing levels of...
December 17, 2003 at 3:29 am
In my environment yes because
December 17, 2003 at 3:05 am
As a DBA I expect all submitted code to be commented.
The comments should detail up front which tables are going to be used, what variables if any are declared and...
December 17, 2003 at 1:56 am
Do you mean the physical size of the database or the amount of data within the database?
If you use sp_helpfile within your database this will give you the files used...
December 16, 2003 at 1:12 pm
I've had situations where I have had to use cursors.
I had a recordset containing the stages in securing a sale for customers.
The complete set of stages was called a chain.
Certain...
December 16, 2003 at 5:12 am
quote:
SQL Server is based on the relational model ....but not a very good implementation of it.Of course, since SQL Server is not...
December 16, 2003 at 3:45 am
Viewing 15 posts - 3,346 through 3,360 (of 3,638 total)