Viewing 15 posts - 286 through 300 (of 526 total)
You would need to add a column like Last_Updated and then create a trigger to update the column whenever something was inserted/updated on the table.
April 22, 2005 at 7:18 am
Okay - to cover every realm of possibility :
UPDATE TableName SET SupplyName = LTRIM(RTRIM(SupplyName)) + '@' WHERE RIGHT(SupplyName,1) '@' AND LEN(SupplyName) < 32
Now,
April 22, 2005 at 7:13 am
Good point. I just took the obvious.
April 22, 2005 at 6:23 am
I know, but we could probably assume that the original FK relationship was done progromatically instead of constraint/referential.
Just wanted her to check for the obvious.
April 22, 2005 at 6:21 am
sa24,
Must be an easier way (move logs)
Just wanted to pass on that I modified you script and posted it here to almost fully automate the moving of log and...
April 21, 2005 at 1:36 pm
It took me a day or two work through what sa24 posted, and somehow my sysaltfiles didn't agree with the sysfiiles.
But it made my life easier, and sounds like it...
April 21, 2005 at 1:25 pm
The way I would do it:
First off
SELECT FKCol
FROM TableName
where ISNUMERIC(FKCol) =0
To make sure that the all data in the column is a valid numeric number.
ALTER TABLE TableName
Drop constraint FK_CONSTRAINT_NAME
GO
ALTER...
April 21, 2005 at 11:15 am
Try:
SELECT *
FROM INFORMATION_SCHEMA.COLUMNS
WHERE COLUMN_NAME = 'first_name'
or with wildcards
SELECT *
FROM INFORMATION_SCHEMA.COLUMNS
WHERE COLUMN_NAME LIKE '%first%'
will find every occurence of the word "first" in the database if you are set to a case...
April 21, 2005 at 11:01 am
For a one time run:
UPDATE TableName SET Target = Source + '@'
For multiple runs:
UPDATE TableName SET Target = Source + '@' WHERE RIGHT(Target,1) '@'
That way you only are touching the new records.
April 21, 2005 at 10:24 am
Sorry I took so long to get back on this.....
I can't do the intregity checks prior because we have to have the DBs available to users until 7:00PM EST. So...
April 21, 2005 at 9:52 am
MS KB articles:
PRB: Error message 823 may indicate hardware problems or system problems
and
PRB: Additional SQL Server Diagnostics Added to Detect Unreported I/O Problems
They both suggest hardware problems...
April 20, 2005 at 12:58 pm
I went through this with 20 DBs a few weeks ago. The following script is adapted from attach all the datababses.
if exists (SELECT * from dbo.sysobjects...
April 19, 2005 at 2:29 pm
Just throwing out an idea.....
Can you restart the SQL Server Agent and then try to delete it?
Just a random thought.
April 14, 2005 at 12:54 pm
means that the db will no longer exist on the test server (which is fine)
Just a point, if you copy instead of move, you can just re-attach the DB to...
April 14, 2005 at 12:50 pm
Another thing to check is DNS resolution, in both the ODBC call and and the client level.
From a cmd line ping %ServerName% - does it successfully resolve?
If not "ipconfig /flushdns"...
April 12, 2005 at 3:25 pm
Viewing 15 posts - 286 through 300 (of 526 total)