Viewing 15 posts - 10,456 through 10,470 (of 18,923 total)
Who said anything about dropping a table??
Good point tho!
December 28, 2006 at 10:16 am
Select case when @SomeVar = 'Something' THEN CRI ELSE CTY END AS Col1,... FROM dbo.YourTable.
Need I point out that this is the wrong design for the system?
December 28, 2006 at 9:43 am
Can you post the final solution so that others may benefit from your work.
TIA.
December 28, 2006 at 9:42 am
Then it means you are connected twice to the database.
You can go to the detach database wizard, there's an option to kill all connections there. You can use that to...
December 28, 2006 at 9:41 am
It means that there are more than 1 connection on the database. You can set the database to single_user, run the backup then back to multi-users.
Or you can manually try...
December 28, 2006 at 9:20 am
Might be wrong on the system table used on that script. Let's just say I didn't try to memorise it
. I usually just use...
December 28, 2006 at 9:19 am
If done using enterprise manager, the script generated will create a new table with the corrected design, then copy all rows to that table, then recreate drop the old table...
December 28, 2006 at 9:15 am
Are you taling about a derived table??
Select dta.* from (select * from dbo.SysObjects Where Status >=0) dta
If not I'd strongly suggest you let the optimiser figure out the fastest access...
December 28, 2006 at 9:08 am
That'll fail if you have foreign key constraints. You'd need to use delete statements on those tables. Also you'll have to delete from the child tables first.
I already saw a...
December 28, 2006 at 9:06 am
Potato, potâto. That will still do row by row processing which is exactly the opposite of what sql server was optimisez for.
What is so complexe in that procedure that sql...
December 28, 2006 at 9:02 am
Why can't you rewrite the said sp to process more than one line at the same time?? Would be much simpler to do that way.
December 28, 2006 at 7:13 am
BTW, my version will use an index seek (or won't forbid the use of). But either solution will return the correct data.
December 27, 2006 at 1:47 pm
As I said, run a job a midnight every night.
Then in the job run a statement like this one :
UPDATE dbo.Logins SET IsInactive = 1 WHERE "Whatever you need...
December 27, 2006 at 9:34 am
Viewing 15 posts - 10,456 through 10,470 (of 18,923 total)