Click here to Skip to main content
15,892,809 members
Home / Discussions / Database
   

Database

 
GeneralRe: Conditional Index Usage Pin
gnjunge10-Jan-08 6:07
gnjunge10-Jan-08 6:07 
AnswerRe: Conditional Index Usage Pin
GuyThiebaut10-Jan-08 7:46
professionalGuyThiebaut10-Jan-08 7:46 
GeneralRe: Conditional Index Usage Pin
gnjunge10-Jan-08 19:14
gnjunge10-Jan-08 19:14 
GeneralRe: Conditional Index Usage Pin
Dave-B10-Jan-08 21:53
Dave-B10-Jan-08 21:53 
GeneralRe: Conditional Index Usage Pin
gnjunge10-Jan-08 22:59
gnjunge10-Jan-08 22:59 
GeneralRe: Conditional Index Usage Pin
gnjunge12-Jan-08 23:34
gnjunge12-Jan-08 23:34 
GeneralRe: Conditional Index Usage Pin
GuyThiebaut10-Jan-08 22:17
professionalGuyThiebaut10-Jan-08 22:17 
GeneralSQL database create Pin
topcatalpha9-Jan-08 23:34
topcatalpha9-Jan-08 23:34 
hi,

i have a script to create a database but i have to give the filename and path for creating it.

CREATE DATABASE [ATCommon] ON  PRIMARY <br />
( NAME = N'ATCommon', FILENAME = N'C:\Program Files\Microsoft SQL Server\MSSQL.1\MSSQL\DATA\ATCommon.mdf' , SIZE = 40768KB , MAXSIZE = UNLIMITED, FILEGROWTH = 1024KB )<br />
 LOG ON <br />
( NAME = N'ATCommon_log', FILENAME = N'C:\Program Files\Microsoft SQL Server\MSSQL.1\MSSQL\DATA\ATCommon_log.ldf' , SIZE = 5184KB , MAXSIZE = 2048GB , FILEGROWTH = 10%)<br />
 COLLATE SQL_Latin1_General_CP1_CI_AS<br />
END


When i run it for another instance i got a problem because the path isn't correct.

is there a way to skip the file path when creating or retrieving the path for an sql instance ?

thc
GeneralRe: SQL database create Pin
topcatalpha10-Jan-08 0:30
topcatalpha10-Jan-08 0:30 
QuestionError:An error has occurred while establishing a connection to the server Pin
My Article9-Jan-08 23:31
My Article9-Jan-08 23:31 
GeneralRe: Error:An error has occurred while establishing a connection to the server Pin
pmarfleet10-Jan-08 4:29
pmarfleet10-Jan-08 4:29 
GeneralRe: Error:An error has occurred while establishing a connection to the server Pin
My Article10-Jan-08 17:21
My Article10-Jan-08 17:21 
GeneralRe: Error:An error has occurred while establishing a connection to the server Pin
pmarfleet10-Jan-08 21:57
pmarfleet10-Jan-08 21:57 
GeneralCount of non null columns in a row Pin
bhanu123459-Jan-08 18:55
bhanu123459-Jan-08 18:55 
GeneralRe: Count of non null columns in a row Pin
pmarfleet9-Jan-08 21:46
pmarfleet9-Jan-08 21:46 
GeneralRe: Count of non null columns in a row [modified] Pin
Dave-B10-Jan-08 5:08
Dave-B10-Jan-08 5:08 
GeneralSQL Injection Pin
Ritesh12349-Jan-08 12:48
Ritesh12349-Jan-08 12:48 
GeneralRe: SQL Injection Pin
Mark Churchill9-Jan-08 21:33
Mark Churchill9-Jan-08 21:33 
GeneralRe: SQL Injection Pin
Ritesh123410-Jan-08 4:27
Ritesh123410-Jan-08 4:27 
GeneralRe: SQL Injection Pin
Colin Angus Mackay12-Jan-08 1:32
Colin Angus Mackay12-Jan-08 1:32 
GeneralRe: SQL Injection Pin
Dave-B10-Jan-08 5:31
Dave-B10-Jan-08 5:31 
GeneralRe: SQL Injection Pin
Ritesh123410-Jan-08 9:07
Ritesh123410-Jan-08 9:07 
GeneralRe: SQL Injection Pin
Pete O'Hanlon10-Jan-08 9:55
mvePete O'Hanlon10-Jan-08 9:55 
GeneralRe: SQL Injection Pin
Dave Kreskowiak10-Jan-08 10:04
mveDave Kreskowiak10-Jan-08 10:04 
GeneralRe: SQL Injection Pin
Ritesh123411-Jan-08 3:14
Ritesh123411-Jan-08 3:14 

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.