Click here to Skip to main content
15,896,606 members
Home / Discussions / Database
   

Database

 
AnswerRe: how to write querey return the unique CustomerId with the first CustomerName ? Pin
Niladri_Biswas2-Nov-09 4:51
Niladri_Biswas2-Nov-09 4:51 
QuestionRe: how to write querey return the unique CustomerId with the first CustomerName ? Pin
i.j.russell2-Nov-09 5:14
i.j.russell2-Nov-09 5:14 
QuestionDetaching SQL Database .mdf file ! Pin
jeshra2791-Nov-09 18:36
jeshra2791-Nov-09 18:36 
AnswerRe: Detaching SQL Database .mdf file ! Pin
Mycroft Holmes1-Nov-09 20:01
professionalMycroft Holmes1-Nov-09 20:01 
GeneralRe: Detaching SQL Database .mdf file ! Pin
jeshra2791-Nov-09 20:13
jeshra2791-Nov-09 20:13 
GeneralRe: Detaching SQL Database .mdf file ! Pin
Mycroft Holmes1-Nov-09 20:20
professionalMycroft Holmes1-Nov-09 20:20 
AnswerRe: Detaching SQL Database .mdf file ! Pin
Abhishek Sur1-Nov-09 21:59
professionalAbhishek Sur1-Nov-09 21:59 
QuestionCan't Create database Pin
twsted f81-Nov-09 7:15
twsted f81-Nov-09 7:15 
Hi

I am trying to create a database using T-SQL and i am getting the following error message.

Msg 5133, Level 16, State 1, Line 1
Directory lookup for the file "C:\Program Files\Microsoft SQL Server\MSSQL10.MSSQLSERVER\MSSQL\DATA\saledat.mdf" failed with the operating system error 3(The system cannot find the path specified.).
Msg 1802, Level 16, State 1, Line 1
CREATE DATABASE failed. Some file names listed could not be created. Check related errors.

I am using SQL server express 2005 which I recently installed on a new desktop.

The script I am using to create the database is as follows.

USE master;
GO
CREATE DATABASE Sales
ON
( NAME = Sales_dat,
FILENAME = 'C:\Program Files\Microsoft SQL Server\MSSQL10.MSSQLSERVER\MSSQL\DATA\saledat.mdf',
SIZE = 10,
MAXSIZE = 50,
FILEGROWTH = 5 )
LOG ON
( NAME = Sales_log,
FILENAME = 'C:\Program Files\Microsoft SQL Server\MSSQL10.MSSQLSERVER\MSSQL\DATA\salelog.ldf',
SIZE = 5MB,
MAXSIZE = 25MB,
FILEGROWTH = 5MB ) ;
GO

I don't know what could be causing this error, and I would appreciate any help granted.

Thanks in advance
AnswerRe: Can't Create database Pin
Andy_L_J1-Nov-09 7:47
Andy_L_J1-Nov-09 7:47 
AnswerRe: Can't Create database Pin
Mycroft Holmes1-Nov-09 11:11
professionalMycroft Holmes1-Nov-09 11:11 
AnswerRe: Can't Create database Pin
Henry Minute1-Nov-09 11:24
Henry Minute1-Nov-09 11:24 
GeneralRe: Can't Create database Pin
Andy_L_J1-Nov-09 11:55
Andy_L_J1-Nov-09 11:55 
GeneralRe: Can't Create database Pin
Henry Minute2-Nov-09 0:25
Henry Minute2-Nov-09 0:25 
QuestionUpdate Master Database Daily comparing with old one Pin
RAJAGOPAL PATABALLA30-Oct-09 5:14
RAJAGOPAL PATABALLA30-Oct-09 5:14 
AnswerRe: Update Master Database Daily comparing with old one Pin
David Mujica30-Oct-09 5:38
David Mujica30-Oct-09 5:38 
AnswerRe: Update Master Database Daily comparing with old one Pin
Henry Minute30-Oct-09 10:30
Henry Minute30-Oct-09 10:30 
AnswerRe: Update Master Database Daily comparing with old one Pin
εїзεїзεїз31-Oct-09 20:10
εїзεїзεїз31-Oct-09 20:10 
QuestionSQL To XML Pin
Vimalsoft(Pty) Ltd30-Oct-09 4:59
professionalVimalsoft(Pty) Ltd30-Oct-09 4:59 
AnswerRe: SQL To XML Pin
J4amieC30-Oct-09 5:54
J4amieC30-Oct-09 5:54 
GeneralRe: SQL To XML Pin
Vimalsoft(Pty) Ltd30-Oct-09 5:55
professionalVimalsoft(Pty) Ltd30-Oct-09 5:55 
GeneralRe: SQL To XML Pin
J4amieC30-Oct-09 7:09
J4amieC30-Oct-09 7:09 
GeneralRe: SQL To XML Pin
Vimalsoft(Pty) Ltd1-Nov-09 20:05
professionalVimalsoft(Pty) Ltd1-Nov-09 20:05 
GeneralRe: SQL To XML Pin
wadhva_maninder30-Oct-09 20:03
wadhva_maninder30-Oct-09 20:03 
GeneralRe: SQL To XML Pin
Vimalsoft(Pty) Ltd1-Nov-09 20:06
professionalVimalsoft(Pty) Ltd1-Nov-09 20:06 
AnswerRe: SQL To XML Pin
Andy_L_J30-Oct-09 21:43
Andy_L_J30-Oct-09 21:43 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.