Please start any new threads on our new
site at https://forums.sqlteam.com. We've got lots of great SQL Server
experts to answer whatever question you can come up with.
| Author |
Topic |
|
mavericky
Posting Yak Master
117 Posts |
Posted - 2012-02-17 : 18:46:49
|
| Hi,One of my table contains these values in its column:create table #temp11(message varchar(max))How can I get these values executed. They are shown when I select from a table. But how to get them executed on the database?message column has these values:EXEC ALTER TABLE dbo.Substation DROP CONSTRAINT FK_Substation_UDCIDEXEC ALTER TABLE dbo.AggregatorServiceDeliveryPoint DROP CONSTRAINT FK_AggregatorServiceDeliveryPoint_AggregatorEXEC ALTER TABLE dbo.AggregatorServiceDeliveryPoint DROP CONSTRAINT FK_AggregatorServiceDeliveryPoint_ServiceDeliveryPointEXEC ALTER TABLE dbo.Tariff DROP CONSTRAINT FK_Tariff_ServiceTypeIDEXEC ALTER TABLE dbo.Tariff DROP CONSTRAINT FK_Tariff_ESPIDEXEC ALTER TABLE dbo.Tariff DROP CONSTRAINT FK_Tariff_AggregatorIDEXEC ALTER TABLE dbo.Tariff DROP CONSTRAINT FK_Tariff_UDCIDEXEC ALTER TABLE dbo.Tariff DROP CONSTRAINT FK_Tariff_AssetClassIDEXEC ALTER TABLE dbo.Tariff DROP CONSTRAINT FK_Tariff_ProgramNotificationTimeFrameIDEXEC ALTER TABLE dbo.Tariff DROP CONSTRAINT FK_Tariff_RateIDEXEC ALTER TABLE dbo.Tariff DROP CONSTRAINT FK_Tariff_ServiceCategoryIDEXEC ALTER TABLE dbo.Agreement DROP CONSTRAINT FK_Agreement_CustomerIDEXEC ALTER TABLE dbo.Agreement DROP CONSTRAINT FK_Agreement_EntityToID_CustomerIDEXEC ALTER TABLE dbo.Agreement DROP CONSTRAINT FK_Agreement_AgreementTypeEXEC ALTER TABLE dbo.Agreement DROP CONSTRAINT FK_Agreement_ProgramIDEXEC ALTER TABLE dbo.Injection DROP CONSTRAINT FK_Injection_CaseIDEXEC ALTER TABLE dbo.Injection DROP CONSTRAINT FK_Injection_TraceIDEXEC ALTER TABLE dbo.Injection DROP CONSTRAINT FK_Injection_TraceIDNodeIDEXEC ALTER TABLE dbo.AgreementAsset DROP CONSTRAINT FK_AgreementAsset_AgreementID_Agreement_IDcan anyone help me?Thanks,Mavericky |
|
|
X002548
Not Just a Number
15586 Posts |
|
|
|
|
|