Viewing 15 posts - 49,456 through 49,470 (of 49,571 total)
Sure. By altering the view like that you've removed the schemabinding, hence you can now do anything with the base table
July 14, 2005 at 11:52 pm
???
Create Table Testing (
Test int
)
GO
Create View vwTest WITH SCHEMABINDING AS
Select Test FROM dbo.Testing
GO
DROP TABLE Testing
GO
The drop table returns
Server: Msg 3729, Level 16, State 1, Line 1
Cannot DROP TABLE 'Testing' because it...
July 14, 2005 at 12:26 am
> You CAN modify the table as long as you don't touch the columns included
> in the view. The other columns are changeable...
Ah. *reads fine print in BoL* So...
July 13, 2005 at 11:49 pm
Create the view WITH SCHEMABINDING
That way the tables (or other views) referenced by the view cannot be modified in any way unless the view is dropped first.
July 13, 2005 at 3:52 am
I've had this before, though I don't know what caused it. Looking at the table list in Ent Manager the table had no owner listed. When I checked sysobjects, I...
July 11, 2005 at 2:48 am
Might I suggest you post in the SQL Server administration or SQL Server General forums.
More people read those and you are more likely to get an answer.
This forum is...
July 1, 2005 at 2:38 am
A covering index on OrderDate, OrderID should do the job.
You'll be surprised how many people don't realise that functions prevent index usage, or don't think about indexes at all....
June 28, 2005 at 1:30 am
DBCC Shrinkfile expects the logical name of the file to be shrunk as the first parameter, not the name of the database.
Run sp_helpdb 'MyTemp' and see what it returns as...
June 20, 2005 at 1:51 am
Just one thing. Never start a stored procedure name with sp_
Very much recomended against due to the way SQL resolves names when executing a stored procedure.
sp_ is the prefix that...
June 5, 2005 at 11:48 pm
You're creating a table named TRENDDATA and inserting into TRENDDATA_
btw, did you test my code? I ran it on the sample data you posted yesterday and got results that look...
June 3, 2005 at 12:12 am
If anyone can do this without a cursor, I'd be very interested in seeing it.
June 2, 2005 at 2:44 am
Well, this caught my intrest, so I thought I'd give it a quick try. Sorry Remi. );
This appears to work, if I've understood your requirements properly.
CREATE PROCEDURE SumOfMaximum (@Tid INT,...
June 2, 2005 at 2:42 am
That assumes that you have an identity column, a timestamp or a datetime field defaulting to getdate()
June 2, 2005 at 1:30 am
I've had some fun issues with distributed transactions to the AS/400. In my experience, they're not DTC errors, but problems with the IBM AS/400 OLE DB driver.
Experiment with wrapping the...
June 1, 2005 at 12:12 am
Viewing 15 posts - 49,456 through 49,470 (of 49,571 total)