Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Pulling from a SQL Server 2005 Database With Security

Status
Not open for further replies.

jjc3397

Programmer
Dec 21, 2003
55
US
I need to connect to a database table that has tons of security, but I do not want the permissions, I just want to be able to pull records and insert records into my textboxes on a VB Form i have created.

I know I need to first create a sql connection string which I have done and stored in the App Configuration File. I want to write a basic SQL Select to pull the tables I need from the table where Field Name = @FieldName for example.

I am trying to learn SQL Transact Sequel, but i donot know where to place the Basic Select in the VB Cing oding area. Also, does the Connection String appear first before the Select.

My Select:

Select Company Code, Appr Code, Name, Activity
From TranTable
Where CompanyCode = @CompanyCode
Group By Company Code
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top