Click here to Skip to main content
15,881,852 members

Comments by A N Saraf (Top 9 by date)

A N Saraf 3-Jan-22 7:32am View    
as suggested by you I did and seperated a group of code along with XALM files in shared project but files in shared project cannot access custome controls in main project
A N Saraf 12-Jun-14 9:23am View    
Thanks for your help. received username & password and was able to connect using the same
A N Saraf 18-Mar-13 2:47am View    
The Same Problem Here But with Different Question

Here is My Code

Dim TConnStr As String = "Data Source=(localdb)\v11.0;Integrated Security=true;AttachDbFileName="

Dim TConn As New SqlClient.SqlConnection(TConnStr)

TConn.Open()
Sql = "CREATE DATABASE Test"
Dim Cmd As New SqlClient.SqlCommand(Sql, TConn)
Cmd.ExecuteNonQuery()
TConn.Close()

This Creats a MDF File is Current Users Folder
Now What I want is to create MDF file at desired Location e.g C:\MyDbFiles

What should I Do

Please Help

i'm using SQL SERVER 2012 LocalDB alongwith VB.Net 2012
A N Saraf 9-Nov-12 0:29am View    
Little bit more
U can add a column to your db which is numeric only and keep numeric part of serial no in it this would make your coding easy
A N Saraf 8-Nov-12 0:38am View    
How r u entering the date i.e r u using DateTimePicker or TextBox
a little more on what u r trying