I'm having a SQL issue and have tried multiple combinations to no avail. I've tried commas, and also semicolons, after the first two ), all three ), just the last ), on all of these. No such luck. Please help me fix the query. Thanks in advance!
I have done due diligence and came across several sites (I can only post two links because of reputatoin) these: 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
THIS WORKS, but very cumbersome to do 20 files.
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