Click here to Skip to main content
16,006,378 members
Home / Discussions / Visual Basic
   

Visual Basic

 
GeneralRe: MessageBox.Show not raising HelpRequested event Pin
Henry Minute14-May-10 2:02
Henry Minute14-May-10 2:02 
QuestionCREATE DATABASE parameter for FROM master..sysdatabases Pin
luccingolo13-May-10 8:05
luccingolo13-May-10 8:05 
AnswerRepost Pin
Luc Pattyn13-May-10 8:38
sitebuilderLuc Pattyn13-May-10 8:38 
GeneralRe: Repost Pin
luccingolo14-May-10 5:16
luccingolo14-May-10 5:16 
GeneralRe: Repost Pin
Luc Pattyn14-May-10 5:43
sitebuilderLuc Pattyn14-May-10 5:43 
GeneralRe: Repost Pin
luccingolo14-May-10 6:21
luccingolo14-May-10 6:21 
AnswerRe: CREATE DATABASE parameter for FROM master..sysdatabases Pin
Dave Kreskowiak13-May-10 8:44
mveDave Kreskowiak13-May-10 8:44 
GeneralRe: CREATE DATABASE parameter for FROM master..sysdatabases Pin
luccingolo14-May-10 6:09
luccingolo14-May-10 6:09 
Hi Dave,
please don't ask about the error message. It is sooo long.(i think that most sql-messages are quite long) Wink | ;)
So far the Try/Catch bloc tells me it's a "SqlException"
My idea was to check if a certain .mdf-file (in this case: MyDatabase.mdf) already exists.
If so, it should be deleted (dpopped) to allow the creation of that file.
(Of course that makes no sense, it's only for training purpose)
I want to learn how to dynamically create a sql-DB with a few tables and its stored procedures.
And of course i can not create a new DB(the same one) each time i lounch my application.
But in the meantime i think it should be possible to solve this problem with "pure" VB instead of a SQL-command.
I will try if i can not solve it with the File.Exists method of the System.IO-namespace. Should work.

I hope you have undestood my intentions now. Of course if you have a suggestion or a better idea, i'm interested.
Anyhow, in the case "File.Exists" would not work, i will post a new question in this forum.

Thanks again for your answer,
Lucchingolo
GeneralRe: CREATE DATABASE parameter for FROM master..sysdatabases Pin
Dave Kreskowiak14-May-10 7:48
mveDave Kreskowiak14-May-10 7:48 
GeneralRe: CREATE DATABASE parameter for FROM master..sysdatabases Pin
luccingolo14-May-10 21:26
luccingolo14-May-10 21:26 
QuestionHow to add a new contect menu in CD drive's popup menu? Pin
phowarso13-May-10 3:41
phowarso13-May-10 3:41 
QuestionHow to add a new popup menu in CD drive's popup menu? Pin
phowarso13-May-10 3:00
phowarso13-May-10 3:00 
AnswerRe: How to add a new popup menu in CD drive's popup menu? Pin
DaveAuld13-May-10 5:07
professionalDaveAuld13-May-10 5:07 
QuestionSave Excel Pin
MsmVc12-May-10 23:18
MsmVc12-May-10 23:18 
AnswerRe: Save Excel Pin
EliottA13-May-10 4:25
EliottA13-May-10 4:25 
AnswerRe: Save Excel Pin
The Man from U.N.C.L.E.13-May-10 6:48
The Man from U.N.C.L.E.13-May-10 6:48 
JokeRe: Save Excel Pin
Trevortni13-May-10 8:46
Trevortni13-May-10 8:46 
JokeRe: Save Excel Pin
Johnny J.13-May-10 21:54
professionalJohnny J.13-May-10 21:54 
Questionhow to insert jpegs into powerpoint via vb.net Pin
b-rad31112-May-10 5:39
b-rad31112-May-10 5:39 
AnswerRe: how to insert jpegs into powerpoint via vb.net Pin
Kschuler12-May-10 10:25
Kschuler12-May-10 10:25 
GeneralRe: how to insert jpegs into powerpoint via vb.net Pin
b-rad31112-May-10 10:27
b-rad31112-May-10 10:27 
Questionhow to save clipboard image as picture using vb.net Pin
b-rad31112-May-10 5:17
b-rad31112-May-10 5:17 
AnswerRe: how to save clipboard image as picture using vb.net Pin
Luc Pattyn12-May-10 5:32
sitebuilderLuc Pattyn12-May-10 5:32 
GeneralRe: how to save clipboard image as picture using vb.net Pin
b-rad31112-May-10 5:34
b-rad31112-May-10 5:34 
GeneralRe: how to save clipboard image as picture using vb.net Pin
Luc Pattyn12-May-10 5:39
sitebuilderLuc Pattyn12-May-10 5:39 

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.