Click here to Skip to main content
15,913,570 members
Home / Discussions / Database
   

Database

 
GeneralRe: Alter column? Pin
Kschuler23-Jun-06 8:57
Kschuler23-Jun-06 8:57 
Questionnot sure of advantages of functions over stored procedures Pin
sishya23-Jun-06 2:33
sishya23-Jun-06 2:33 
AnswerRe: not sure of advantages of functions over stored procedures Pin
J4amieC23-Jun-06 3:11
J4amieC23-Jun-06 3:11 
GeneralRe: not sure of advantages of functions over stored procedures Pin
Colin Angus Mackay23-Jun-06 3:42
Colin Angus Mackay23-Jun-06 3:42 
GeneralRe: not sure of advantages of functions over stored procedures Pin
J4amieC26-Jun-06 2:49
J4amieC26-Jun-06 2:49 
GeneralRe: not sure of advantages of functions over stored procedures Pin
Colin Angus Mackay26-Jun-06 8:25
Colin Angus Mackay26-Jun-06 8:25 
AnswerRe: not sure of advantages of functions over stored procedures Pin
Colin Angus Mackay23-Jun-06 3:48
Colin Angus Mackay23-Jun-06 3:48 
Questionchecking for existence of server and SQL instance Pin
Talal Sultan23-Jun-06 0:27
Talal Sultan23-Jun-06 0:27 
I'm writing a small C# windows application that will create a new database and populate it with tables, views and stored procedures. Of course I am using SQL scripts that I'm launching from the windows application. I ask the user to enter 2 fields, the server name and the instance name of the SQL server.

My question is: is there a way to check if the entered server name and instance exist?

Since I launch the scripts by starting a process to run osql, I don't know if I get some return value to tell me that the server was not found. So basically even if the server name is wrong, the application says that the operation is completed, although nothing has been done.

Thanks,
Talal

"Programming today is a race between software engineers striving to build bigger and better idiot-proof programs, and the Universe trying to produce bigger and better idiots. So far, the Universe is winning."
--Rich Cook
AnswerRe: checking for existence of server and SQL instance Pin
Colin Angus Mackay23-Jun-06 1:08
Colin Angus Mackay23-Jun-06 1:08 
GeneralRe: checking for existence of server and SQL instance Pin
Talal Sultan23-Jun-06 3:15
Talal Sultan23-Jun-06 3:15 
QuestionUsing Centralized Database MS SQL Server2000 Pin
Varun Arora22-Jun-06 23:20
Varun Arora22-Jun-06 23:20 
AnswerRe: Using Centralized Database MS SQL Server2000 Pin
Colin Angus Mackay23-Jun-06 1:04
Colin Angus Mackay23-Jun-06 1:04 
Questiondata from database Pin
rcshek22-Jun-06 15:12
rcshek22-Jun-06 15:12 
AnswerRe: data from database Pin
VK-Cadec23-Jun-06 8:25
VK-Cadec23-Jun-06 8:25 
Questionquery Pin
Tara1422-Jun-06 10:57
Tara1422-Jun-06 10:57 
AnswerRe: query Pin
Eric Dahlvang22-Jun-06 11:35
Eric Dahlvang22-Jun-06 11:35 
GeneralRe: query Pin
Tara1422-Jun-06 19:11
Tara1422-Jun-06 19:11 
QuestionStored procedure Pin
Nayota22-Jun-06 8:29
Nayota22-Jun-06 8:29 
AnswerRe: Stored procedure Pin
Dustin Metzgar22-Jun-06 9:23
Dustin Metzgar22-Jun-06 9:23 
GeneralRe: Stored procedure Pin
Nayota22-Jun-06 10:22
Nayota22-Jun-06 10:22 
GeneralRe: Stored procedure Pin
jonathan1522-Jun-06 23:08
jonathan1522-Jun-06 23:08 
QuestionDataset update Pin
kjosh22-Jun-06 6:10
kjosh22-Jun-06 6:10 
Questionimage Pin
md_refay22-Jun-06 4:26
md_refay22-Jun-06 4:26 
AnswerRe: image Pin
Colin Angus Mackay22-Jun-06 4:51
Colin Angus Mackay22-Jun-06 4:51 
Questionsql server triggers Pin
flippydeflippydebop22-Jun-06 3:59
flippydeflippydebop22-Jun-06 3:59 

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.