Hi,
i need to find the differance between 2 dates, but need the difference output as days or weeks or months etc depending on a set of criteria.
getting the difference is easy, BUT DO YOU KNOW HOW TO PASS THE 'DATEPART' PART OF THE FUNCTION AS A VARIABLE ??
If i try this i get the following...
HI,
IS IT POSSIBLE TO verify that a user has entered only alphanumeric characters IN SQL SERVER.
I KNOW THE VARIOUS METHODS ON THE CLIENT SIDE, BUT I NEED TO DO THIS IN SQL SERVER THROUGH A STORED PROCEDURE OR TRIGGER OR RULE OR CONSTRAINT.
THE BEST I CAN COME UP WITH SO FAR IS:
CREATE...
Is there an easy way to modify a PRIMARY KEY constraint with query analyzer, for ALL the PRIMARY KEYS in ALL the tables in a SQL 2000 database.
Basically I need to run a script that will 'turn off' all the IDENTITY SEEDS of all the PRIMARY KEYS, and then one to turn them all back on.
I need...
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.