我有一个SQL问题,并尝试了多种组合无济于事。我已经尝试过逗号和分号,在前两个之后),所有三个),所有这些都只是最后一个)。没有这样的运气。请帮我修复查询。提前致谢!sql修改文件语句
我已经做了尽职调查,并在多个网站来(我只能职位,因为reputatoin的两个链接),这些: Create database using script at the default path? http://www.sqlteam.com/forums/topic.asp?topic_id=148732
USE master
GO
ALTER DATABASE location_cust_db
MODIFY FILE
(
NAME = location_cust_db_data1,
MAXSIZE = UNLIMITED,
)
(
NAME = location_cust_db_data2,
MAXSIZE = UNLIMITED,
)
(
NAME = location_cust_db_data3,
MAXSIZE = UNLIMITED,
)
GO
USE master
GO
ALTER DATABASE location_cust_db
MODIFY FILE (NAME = location_cust_db_data1, MAXSIZE = UNLIMITED)
MODIFY FILE (NAME = location_cust_db_data2, MAXSIZE = UNLIMITED)
MODIFY FILE (NAME = location_cust_db_data3, MAXSIZE = UNLIMITED)
GO
这工作,但做20个文件非常繁琐。
USE master
GO
ALTER DATABASE location_cust_db
MODIFY FILE
(NAME = location_cust_db_data1,
MAXSIZE = UNLIMITED)
USE master
GO
ALTER DATABASE location_cust_db
MODIFY FILE
(NAME = location_cust_db_data2,
MAXSIZE = UNLIMITED)
GO
USE master
GO
ALTER DATABASE location_cust_db
MODIFY FILE
(NAME = location_cust_db_data3,
MAXSIZE = UNLIMITED)
GO
bewa exec()命令的执行将会很危险并且非常有用 – 2013-07-03 19:49:04