Hi Cetin,
Thank you very much for your help. I try to understand my problem. It looks like it is not possible to use '\\Server\' as address when you try to create the database file. It must be on the form 'C:\' or any other letter if that is available on your server. However, with your help I now succeeded to create the database on our SQL-server. I also added the following to your code for specifying the logfile.
Text to m.lcCreateDB textmerge noshow
Create Database <>
ON PRIMARY (NAME = <>_Data,
FILENAME = '<><>_Data.mdf',
SIZE=5MB,MAXSIZE=100MB,FILEGROWTH=10%)
LOG ON (NAME = <>_Log,
FILENAME = '<><>_Data.ldf',
SIZE=1MB,MAXSIZE=10MB,FILEGROWTH=10%)
ENDTEXT
A last question, which maybe is on a very simple level but for me not, how shall interprete << in your code. This is new for me.
Best regards
Anders
Précédent
Suivant
Répondre
Voir le fil de ce thread
Voir le fil de ce thread à partir de ce message seulement
Voir tous les messages de ce thread
Voir tous les messages de ce thread à partir de ce message seulement