Click here to Skip to main content
15,924,036 members
Home / Discussions / Visual Basic
   

Visual Basic

 
GeneralRe: set up prob Pin
bony_baba15-Jun-06 18:57
bony_baba15-Jun-06 18:57 
QuestionWeb Application load webform Pin
knullbyte13-Jun-06 18:03
knullbyte13-Jun-06 18:03 
AnswerRe: Web Application load webform [modified] Pin
bony_baba13-Jun-06 20:13
bony_baba13-Jun-06 20:13 
QuestionInstalador Pin
lucas-pc13-Jun-06 17:28
lucas-pc13-Jun-06 17:28 
AnswerRe: Instalador Pin
Steve Pullan13-Jun-06 18:57
Steve Pullan13-Jun-06 18:57 
QuestionWhat is wrong with this code?? Pin
Hengy13-Jun-06 14:53
Hengy13-Jun-06 14:53 
AnswerRe: What is wrong with this code?? Pin
Guffa13-Jun-06 20:39
Guffa13-Jun-06 20:39 
Questionroot in the deployement Pin
Mohammed Amine13-Jun-06 10:56
Mohammed Amine13-Jun-06 10:56 
Hi,
i know that the title wasn't good but anyway i will explain as good as i can to let you see the problem

i have my two data files .Mdf & .Ldf in a folder named MyData in the bin folder where i have ma .exe file

in the vs.net i have this

    Public Con As SqlConnection<br />
<br />
<br />
    Public Sub main()<br />
bda:<br />
        Con = New SqlConnection("data source=ORDI_AMINE;integrated security=SSPI;initial catalog=GHotel")<br />
        CmdAt.Connection = Con<br />
        Try<br />
            Con.Open()<br />
        Catch ex As Exception<br />
            Con.Close()<br />
            Con.ConnectionString = "data source=ORDI_AMINE;integrated security=SSPI;initial catalog=master"<br />
            Con.Open()<br />
            CmdAt.CommandText = "exec sp_attach_db @dbname = 'GHotel',@filename1 = '" & Application.StartupPath & "\MyData\GHotel_Data.MDF', @filename2 = '" & Application.StartupPath & "\MyData\GHotel_Log.LDF'"<br />
            CmdAt.ExecuteNonQuery()<br />
            Con.Close()<br />
            GoTo bda<br />
            '  Con.Open()<br />
        End Try<br />
        FrmBien.ShowDialog()<br />
    End Sub


GHotel is my database

when i do setup for ma app. it gaves me a bug by the opposite it works very well when i'm working in vs.net you can try it if you want to

can you tell me where is the problem ??

ah i forgot i added a folder named MyData to the app. Folder when i was creating the setup & i added in this folder the two files .Mdf & .Ldf

thank you very much Smile | :)

try to be good if you can't be the best
AnswerRe: root in the deployement Pin
Steve Pullan13-Jun-06 14:17
Steve Pullan13-Jun-06 14:17 
QuestionSystem Default Printer Pin
Kschuler13-Jun-06 8:04
Kschuler13-Jun-06 8:04 
AnswerRe: System Default Printer Pin
Kschuler13-Jun-06 8:25
Kschuler13-Jun-06 8:25 
GeneralRe: System Default Printer Pin
Tim Carmichael13-Jun-06 10:14
Tim Carmichael13-Jun-06 10:14 
Questionvb.net sqldataadapter update not updating sql server identity column Pin
isgrom13-Jun-06 7:04
isgrom13-Jun-06 7:04 
QuestionGet text back To Form1 from Form2 in VB.net Pin
New_Coder13-Jun-06 6:49
New_Coder13-Jun-06 6:49 
AnswerRe: Get text back To Form1 from Form2 in VB.net Pin
zacharyshroyer13-Jun-06 7:56
zacharyshroyer13-Jun-06 7:56 
AnswerRe: Get text back To Form1 from Form2 in VB.net Pin
stru012113-Jun-06 8:01
stru012113-Jun-06 8:01 
QuestionBusiness Logic DLL for ASP.NET app Pin
guitardave7813-Jun-06 6:35
guitardave7813-Jun-06 6:35 
QuestionDTS in vb.net Pin
saneng13-Jun-06 6:02
saneng13-Jun-06 6:02 
Questionftp code vb.net Pin
tejuarora13-Jun-06 5:27
tejuarora13-Jun-06 5:27 
AnswerRe: ftp code vb.net Pin
amiableuser14-Jun-06 20:34
amiableuser14-Jun-06 20:34 
Questionhow to do this in crystal report Pin
Mohammed Amine13-Jun-06 5:07
Mohammed Amine13-Jun-06 5:07 
AnswerRe: how to do this in crystal report Pin
sasidar_d13-Jun-06 23:45
sasidar_d13-Jun-06 23:45 
GeneralRe: how to do this in crystal report Pin
Mohammed Amine13-Jun-06 23:59
Mohammed Amine13-Jun-06 23:59 
QuestionMSDE....Server List Pin
Polymorpher13-Jun-06 3:23
Polymorpher13-Jun-06 3:23 
AnswerRe: MSDE....Server List Pin
Jim Taylor13-Jun-06 3:49
Jim Taylor13-Jun-06 3:49 

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.