Viewing 15 posts - 2,041 through 2,055 (of 5,356 total)
Then again, I disagree!
There is no binary answer to this question. Each approach has its pros and cons and in some environments it might be advisable to use the db...
July 9, 2004 at 5:09 am
Search the forum. There are plenty of threads on how to strip the time off a datetime or how to do search an compare on datetimes.
July 9, 2004 at 4:56 am
You might want to have a look at this:
http://www.microsoft.com/resources/documentation/sql/2000/all/reskit/en-us/part3/c1161.mspx
and decide then which way to go.
July 8, 2004 at 12:47 am
It depends on several factors which one offers best performance. The only way to find this out is to test both in your environment. Dynamic SQL is mostly considered not...
July 6, 2004 at 5:34 am
Forgot to mention that you should run this against the pubs database
July 6, 2004 at 5:02 am
Here's an example utilizing sp_executesql:
http://www.insidesql.de/modules.php?op=modload&name=News&file=article&sid=134
HTH
July 6, 2004 at 5:00 am
I was wondering what technic do they use?
Whats the magik trick???
What's so magic about this anyway?
there you go
July 6, 2004 at 4:55 am
Not sure, if I fully understand you, but I think you're missing link is INFORMATION_SCHEMA.CONSTRAINT_COLUMN_USAGE. So something like this
SELECT
C.TABLE_NAME
, C.ORDINAL_POSITION
, C.COLUMN_NAME
FROM
INFORMATION_SCHEMA.REFERENTIAL_CONSTRAINTS RC
INNER JOIN
INFORMATION_SCHEMA.CONSTRAINT_COLUMN_USAGE CCU
ON
RC.CONSTRAINT_NAME = CCU.CONSTRAINT_NAME
INNER JOIN
INFORMATION_SCHEMA.COLUMNS...
July 2, 2004 at 8:43 am
Have you ever thought about replacing your VARCHAR(5000) column with a text datatype column?
July 2, 2004 at 5:53 am
Btw, there is SET PARSEONLY { ON | OFF }. Never used it myself, but might be worth having a look at in BOL.
July 1, 2004 at 12:56 am
Like Mike already said, you're trying to reinvent the wheel!
If I were you, I wouldn't waste my time with such a thing.
The other important consideration is also already mentioned: SQL...
July 1, 2004 at 12:54 am
Playing around with SQL Server's system objects is one of the easiest ways to fubar SQL Server. In doing so, you're running an unsupported system. I would rather contact the...
July 1, 2004 at 12:44 am
You mean something liek this
SET NOCOUNT ON CREATE TABLE year_t ( year_now INT DEFAULT SELECT DATEPART(YEAR, GETDATE()) --DATEPART(year,GETDATE()) ) INSERT INTO year_t DEFAULT VALUES SELECT * FROM year_t DROP TABLE year_t SET NOCOUNT OFF
has worked for you???
June 30, 2004 at 6:45 am
Viewing 15 posts - 2,041 through 2,055 (of 5,356 total)