Click here to Skip to main content
16,004,944 members
Home / Discussions / Visual Basic
   

Visual Basic

 
GeneralRe: Mouse Movement in VB 6.0 Pin
Dave Kreskowiak27-Dec-07 12:27
mveDave Kreskowiak27-Dec-07 12:27 
Question[Message Deleted] Pin
ciconte26-Dec-07 14:28
ciconte26-Dec-07 14:28 
GeneralRe: Terms of use and e-mail subscription Pin
Dave Kreskowiak27-Dec-07 12:21
mveDave Kreskowiak27-Dec-07 12:21 
GeneralRe: [Message Deleted] Pin
Paul Conrad30-Dec-07 10:45
professionalPaul Conrad30-Dec-07 10:45 
GeneralExport Excel Sheet to Textfile (vb.net) Pin
Member 375080126-Dec-07 13:45
Member 375080126-Dec-07 13:45 
GeneralRe: Export Excel Sheet to Textfile (vb.net) Pin
Paul Conrad30-Dec-07 10:46
professionalPaul Conrad30-Dec-07 10:46 
QuestionRe: Export Excel Sheet to Textfile (vb.net) Pin
Member 37508012-Jan-08 7:08
Member 37508012-Jan-08 7:08 
GeneralBetter way of connecting to SQL 2005 Pin
svanwass26-Dec-07 13:31
svanwass26-Dec-07 13:31 
So I am using ODBC to connect to my SQL server like such:

<br />
<br />
connection = "Provider=MSDASQL;" + "Driver={SQL Native Client};" + "Server=MYSERVER;" + "Database=MYDB;" + "UID=MYUSERNAME;" + "PWD=MYPASSWORD;" + Trusted_Connection=yes;"<br />
<br />
            Try<br />
                Using connection As New OdbcConnection(ConnectionString)<br />
                    Dim command As New OdbcCommand(queryString, connection)<br />
                    connection.Open()<br />
<br />
                    Dim reader As OdbcDataReader = command.ExecuteReader()<br />
<br />
                    While reader.Read()<br />
                        station_count = reader(0).ToString<br />
                    End While<br />
<br />
                    connection.Close()<br />
                    reader.Close()<br />
                End Using<br />
            Catch ex As Exception<br />
                SQLERROR = True<br />
                WriteErrorLog(ex.ToString)<br />
                Exit Sub<br />
<br />
            End Try<br />



This is causing me a problem within my application. I wrote it using a Domain Admin which has access to the server through my SQL user, but the application needs to be deployed on a machine with much lower permission.

My question is:
1. Should I rewrite the database connection using a different method instead of ODBC
2. Is there something I can do on the server to fix this?

Thanks!

Steve
GeneralRe: Better way of connecting to SQL 2005 Pin
Dave Kreskowiak27-Dec-07 12:17
mveDave Kreskowiak27-Dec-07 12:17 
QuestionClass disposal Pin
__OZ__26-Dec-07 10:33
__OZ__26-Dec-07 10:33 
GeneralRe: Class disposal Pin
Dave Kreskowiak26-Dec-07 10:59
mveDave Kreskowiak26-Dec-07 10:59 
GeneralRe: Class disposal Pin
__OZ__26-Dec-07 15:10
__OZ__26-Dec-07 15:10 
GeneralRe: Class disposal Pin
Scott Dorman26-Dec-07 17:55
professionalScott Dorman26-Dec-07 17:55 
QuestionHow to work with Collection in VB6? Pin
suguimoto26-Dec-07 6:48
suguimoto26-Dec-07 6:48 
AnswerRe: How to work with Collection in VB6? Pin
Paul Conrad26-Dec-07 7:43
professionalPaul Conrad26-Dec-07 7:43 
AnswerRe: How to work with Collection in VB6? Pin
Dave Kreskowiak26-Dec-07 8:08
mveDave Kreskowiak26-Dec-07 8:08 
GeneralRe: How to work with Collection in VB6? Pin
suguimoto26-Dec-07 8:55
suguimoto26-Dec-07 8:55 
GeneralRe: How to work with Collection in VB6? Pin
Dave Kreskowiak26-Dec-07 9:05
mveDave Kreskowiak26-Dec-07 9:05 
GeneralRe: How to work with Collection in VB6? [modified] Pin
suguimoto26-Dec-07 23:44
suguimoto26-Dec-07 23:44 
GeneralRe: How to work with Collection in VB6? Pin
Dave Kreskowiak27-Dec-07 5:09
mveDave Kreskowiak27-Dec-07 5:09 
QuestionInstance of existing form and control manipulation Pin
Adnan Siddiqi26-Dec-07 6:21
Adnan Siddiqi26-Dec-07 6:21 
GeneralRe: Instance of existing form and control manipulation Pin
Dave Kreskowiak26-Dec-07 8:13
mveDave Kreskowiak26-Dec-07 8:13 
GeneralDataGridViewTextBoxEditingControl Pin
helelark12326-Dec-07 4:54
helelark12326-Dec-07 4:54 
GeneralRe: DataGridViewTextBoxEditingControl Pin
Dave Kreskowiak26-Dec-07 6:56
mveDave Kreskowiak26-Dec-07 6:56 
QuestionStoring PDF text unicode to database Pin
praabhu_p26-Dec-07 0:22
praabhu_p26-Dec-07 0:22 

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.