English Deutsch Français Italiano Español Português 繁體中文 Bahasa Indonesia Tiếng Việt ภาษาไทย
All categories

I'm trying to pull customer information, like name, address, city, state, zip code, and daytime phone number from a database. Because everything I tried it has been denied.

2006-09-26 07:00:53 · 3 answers · asked by Anonymous in Computers & Internet Programming & Design

3 answers

Which SQL engine are you using: Access, ODBC, Oracle, MySQL?? This makes some difference, especially if you're getting you're indeed getting a "denied error"...

Usually, a normal SELECT statement will do the trick. However, if you're using an engine such as MySQL, don't forget to use the "USE db" statement to tell the engine which database you're using.

2006-09-26 15:08:19 · answer #1 · answered by Bernz 6 · 0 0

You did not specify which version, but this should cover 6.5, 7.0, 2000

When retrieving data from a SQL Server database, take full advantage of views when appropriate. This is especially true if you are not encapsulating your Transact-SQL in stored procedures as recommended. While calling a view is not usually as efficient as using a stored procedure to retrieve data, it is much more efficient that using dynamic Transact-SQL in your ASP code or COM components. [

2006-09-26 14:06:29 · answer #2 · answered by midnightlydy 6 · 0 0

You will probably get a bunch of answers on this one. A simple select command, i.e.,
select name, address, city, state, zipcode, phone
from database.table
should suffice. You will probably need to qualify it with a
where fieldname equal condition to filter out unneeded data.

2006-09-26 14:25:23 · answer #3 · answered by wayne s 1 · 0 0

fedest.com, questions and answers