It works well if I write the query like this:
ALTER DATABASE [test] MODIFY FILE (
NAME = N'test_log', SIZE = 3456KB,
MAXSIZE = 6789999KB, FILEGROWTH = 2345KB)
But it is a problem, if I try to use parameters:
ALTER DATABASE [@DbName] MODIFY FILE (
NAME = N'@LogFileName', SIZE = @InitialSize,
MAXSIZE = @MaxSize , FILEGROWTH = @FileGrowth)
I know that MS SQL 2008 has auto-convert, but when i use parameters occurs an error. So, my question is: From which type must be the declared parameters, which I use to set the size in MB(@InitialSize, @MaxSize, @FileGrowth)?