Viewing 15 posts - 16 through 30 (of 30 total)
oops..
Forgot the Commit Tran at the end......You get the essence of it...
November 14, 2006 at 11:57 am
Begin Try
Begin Tran
Alter table Table1
alter column column1 varchar(max) not null
End Try
Begin Catch
Rollback
End Catch
This works.
If you are worried, try it in Development. You do have backups dont...
November 14, 2006 at 11:56 am
In TABLE C does the combination B_ID and A_ID need to exist on table B ?
As a general rule, FK's should not impact the way you query the DB. It...
November 14, 2006 at 11:39 am
Thank you for all the possible solutions. I will try them all out to see which is more efficient.
thanks
Michael.
October 17, 2006 at 2:59 pm
There are currently 8 Datetime columns.
If there is no easy way to do this, I am planning to calculate the minimum datetime for every record as it is inserted/updated.
Michael.
October 16, 2006 at 3:50 pm
You must be missing a Begin \ End block after an IF statement.
Can you post the Code ?
Difficult to give advice without it...
October 16, 2006 at 12:36 pm
Thanks mate . much appreciated. I will try it in the morning.
cheers...
August 28, 2006 at 7:22 pm
What is not working with this proc. It should still run in SQLServer 2005...
June 22, 2006 at 11:18 am
Use stored Procs to select data and have those procs write to an Audit table\log
June 21, 2006 at 1:04 pm
I thought the answer has been given. The error happens during the execution of the dynamic sql !!!!!!!!!!
October 19, 2005 at 8:06 am
OK. This must be a joke. People who want to stand on a soap box should go to a political meeting or a revival meeting. This stuff does not belong in...
October 17, 2005 at 11:39 am
Could you provide more information on your transaction control. Do you have explicit transaction?. Do all the Insert\delete happen under the same process id? Also, did you look at BOL under...
October 10, 2005 at 8:26 am
You may create a SP to perform this. Then grant execute access to the specific users.
Michael.
May 19, 2005 at 11:14 am
I cant believe they got it wrong as the correct answer. I have been doing it as in Answer B since SS2K came out and it is the correct way....
October 28, 2004 at 8:16 am
You cannot copy/move the DB files while they are attached to SqlServer. You will get a violation error.
March 3, 2004 at 11:03 am
Viewing 15 posts - 16 through 30 (of 30 total)