| |

VerySource

 Forgot password?
 Register
Search
Author: 忆茹天使

sql express problem, very urgent

[Copy link]

1

Threads

11

Posts

8.00

Credits

Newbie

Rank: 1

Credits
8.00

 China

 Author| Post time: 2020-6-23 08:30:01
| Show all posts
Does not exist, sure!
Reply

Use magic Report

0

Threads

3

Posts

4.00

Credits

Newbie

Rank: 1

Credits
4.00

 China

Post time: 2020-7-8 23:30:02
| Show all posts
Mine can, just tested.

Your error message:

You try another path filename='c:\tes.mdf' put it on another disk
Reply

Use magic Report

0

Threads

10

Posts

10.00

Credits

Newbie

Rank: 1

Credits
10.00

 China

Post time: 2020-7-10 17:30:01
| Show all posts
Maybe the C drive does not have permission to write, change a drive, D drive

use master
go
xp_cmdshell'mkdir d:\project', NO_OUTPUT - create a folder project, xp_cmdshell is a system stored procedure
--Check whether the database exists, if it is true, delete this database -
IF EXISTS(SELECT NAME FROM master.dbo.SYSDATABASES WHERE NAME=N'test')
DROP DATABASE stuDB

GO

--Create database--
CREATE DATABASE test
ON
(NAME=N'stuDB',
FILENAME='d:\project\testDB.mdf',
SIZE=1mb,
MAXSIZE=10mb,
FILEGROWTH=15%)
LOG ON
(NAME=N'stuDB_log',
  FILENAME='d:\project\testDB.ldf',
  SIZE=1mb,
  MAXSIZE=4mb,
  FILEGROWTH=15%)

GO
Reply

Use magic Report

0

Threads

20

Posts

19.00

Credits

Newbie

Rank: 1

Credits
19.00

 China

Post time: 2020-7-11 22:00:01
| Show all posts
Will it be a problem with ntfs permissions
Reply

Use magic Report

1

Threads

11

Posts

8.00

Credits

Newbie

Rank: 1

Credits
8.00

 China

 Author| Post time: 2020-7-22 15:15:02
| Show all posts
After reading foreign posts,
Just figured it out,
It turned out that the login permissions were wrong
That's what (xqq) said.
thank you all.
Reply

Use magic Report

0

Threads

1

Posts

2.00

Credits

Newbie

Rank: 1

Credits
2.00

 China

Post time: 2020-8-14 20:15:01
| Show all posts
I also encountered the same situation, but never found the reason. Looking at your post is that the login permissions are wrong. I wonder if I can suggest more details. Just make changes wherever. Thank you!
Reply

Use magic Report

You have to log in before you can reply Login | Register

Points Rules

Contact us|Archive|Mobile|CopyRight © 2008-2023|verysource.com ( 京ICP备17048824号-1 )

Quick Reply To Top Return to the list