473,473 Members | 2,025 Online
Bytes | Software Development & Data Engineering Community
Create Post

Home Posts Topics Members FAQ

Table name starting with prefix tbl

Hi,
I would like to know details about the table name starts with prefix
in sql server 2000.
Actually i'm working on existing code.
The existing code insert a record into a table, but the table name in
the code and table name in database are different
Table name in database : tbl_mmm_ox
In coding they are using table name as mmm only, the records are
properly inserted into mmm table
is it possible?
The sample code is like that(using ado object)
oCmd.CommandText = "INSERT INTO mmm (no,name) values (1,"mm")"
The above code is perfectly working and inserting record into
tbl_mmm_ox.
Could anybody explain how is it possible?
whether we can leave the prefix(tbl) and suffix(ox) and sql server
take care of this?
Thanks & Regards,
Mani

Mar 21 '07 #1
7 5908
Mani,

Someone probably created a view called mmm that points to the tbl_mmm_ox
physical table.

-- Bill

<pl**********@gmail.comwrote in message
news:11*********************@d57g2000hsg.googlegro ups.com...
Hi,
I would like to know details about the table name starts with prefix
in sql server 2000.
Actually i'm working on existing code.
The existing code insert a record into a table, but the table name in
the code and table name in database are different
Table name in database : tbl_mmm_ox
In coding they are using table name as mmm only, the records are
properly inserted into mmm table
is it possible?
The sample code is like that(using ado object)
oCmd.CommandText = "INSERT INTO mmm (no,name) values (1,"mm")"
The above code is perfectly working and inserting record into
tbl_mmm_ox.
Could anybody explain how is it possible?
whether we can leave the prefix(tbl) and suffix(ox) and sql server
take care of this?
Thanks & Regards,
Mani

Mar 21 '07 #2
Sounds like a View

--

Jack Vamvas
___________________________________
Advertise your IT vacancies for free at - http://www.ITjobfeed.com

<pl**********@gmail.comwrote in message
news:11*********************@d57g2000hsg.googlegro ups.com...
Hi,
I would like to know details about the table name starts with prefix
in sql server 2000.
Actually i'm working on existing code.
The existing code insert a record into a table, but the table name in
the code and table name in database are different
Table name in database : tbl_mmm_ox
In coding they are using table name as mmm only, the records are
properly inserted into mmm table
is it possible?
The sample code is like that(using ado object)
oCmd.CommandText = "INSERT INTO mmm (no,name) values (1,"mm")"
The above code is perfectly working and inserting record into
tbl_mmm_ox.
Could anybody explain how is it possible?
whether we can leave the prefix(tbl) and suffix(ox) and sql server
take care of this?
Thanks & Regards,
Mani

Mar 21 '07 #3
On Mar 21, 7:45 pm, "Jack Vamvas" <DEL_TO_RE...@del.comwrote:
Sounds like a View

--

Jack Vamvas
___________________________________
Advertise your IT vacancies for free at -http://www.ITjobfeed.com

<plmanikan...@gmail.comwrote in message

news:11*********************@d57g2000hsg.googlegro ups.com...
Hi,
I would like to know details about the table name starts with prefix
in sql server 2000.
Actually i'm working on existing code.
The existing code insert a record into a table, but the table name in
the code and table name in database are different
Table name in database : tbl_mmm_ox
In coding they are using table name as mmm only, the records are
properly inserted into mmm table
is it possible?
The sample code is like that(using ado object)
oCmd.CommandText = "INSERT INTO mmm (no,name) values (1,"mm")"
The above code is perfectly working and inserting record into
tbl_mmm_ox.
Could anybody explain how is it possible?
whether we can leave the prefix(tbl) and suffix(ox) and sql server
take care of this?
Thanks & Regards,
Mani
Thanks friends.It's view only.find that view after posting this
message.
Is it wise to use a view to insert the record.
Is there any performance issue may come due to this view.
I would like to know the opinion on this?

Thanks & Regards,
Mani

Mar 21 '07 #4
what would be the goal of inserting via the VIEW rather than inserting into
the underlying tables?
it depends on the complexity and who your users are?

--

Jack Vamvas
___________________________________
Advertise your IT vacancies for free at - http://www.ITjobfeed.com

<pl**********@gmail.comwrote in message
news:11**********************@e65g2000hsc.googlegr oups.com...
On Mar 21, 7:45 pm, "Jack Vamvas" <DEL_TO_RE...@del.comwrote:
>Sounds like a View

--

Jack Vamvas
___________________________________
Advertise your IT vacancies for free at -http://www.ITjobfeed.com

<plmanikan...@gmail.comwrote in message

news:11*********************@d57g2000hsg.googlegr oups.com...
Hi,
I would like to know details about the table name starts with prefix
in sql server 2000.
Actually i'm working on existing code.
The existing code insert a record into a table, but the table name in
the code and table name in database are different
Table name in database : tbl_mmm_ox
In coding they are using table name as mmm only, the records are
properly inserted into mmm table
is it possible?
The sample code is like that(using ado object)
oCmd.CommandText = "INSERT INTO mmm (no,name) values (1,"mm")"
The above code is perfectly working and inserting record into
tbl_mmm_ox.
Could anybody explain how is it possible?
whether we can leave the prefix(tbl) and suffix(ox) and sql server
take care of this?
Thanks & Regards,
Mani

Thanks friends.It's view only.find that view after posting this
message.
Is it wise to use a view to insert the record.
Is there any performance issue may come due to this view.
I would like to know the opinion on this?

Thanks & Regards,
Mani

Mar 21 '07 #5
On Wed, 21 Mar 2007 20:52:37 -0000, "Jack Vamvas"
<DE**********@del.comwrote:
>what would be the goal of inserting via the VIEW rather than inserting into
the underlying tables?
it depends on the complexity and who your users are?
I rather suspect the reason for the views in this particular case was
to be able to avoid the silly tbl prefix and _ox suffix without
breaking something else.

Roy Harvey
Beacon Falls, CT
Mar 21 '07 #6
On 21 Mar 2007 13:26:33 -0700, pl**********@gmail.com wrote:

(snip)
>Is it wise to use a view to insert the record.
Hi Mani,

A common reason to do this is if the table holds more columns than the
view. For instance audit columns, that are filled with a DEFAULT
constraint and that should not be overwritten by the INSERT statement.
>Is there any performance issue may come due to this view.
Probably not, but it depends on how the view is defined, if it's updated
through a trigger and if so, how the trigger is written.

--
Hugo Kornelis, SQL Server MVP
My SQL Server blog: http://sqlblog.com/blogs/hugo_kornelis
Mar 21 '07 #7
Hi
Is it wise to use a view to insert the record.
Is there any performance issue may come due to this view.
I would like to know the opinion on this?
Well you can set up partitioned Views when the view is the Union of many
tables. The tables can then be stored on multiple physical drives. and the
partioning takes care of putting the data in the right table based on the
partioning column.

-Dick Christoph
<pl**********@gmail.comwrote in message
news:11**********************@e65g2000hsc.googlegr oups.com...
On Mar 21, 7:45 pm, "Jack Vamvas" <DEL_TO_RE...@del.comwrote:
>Sounds like a View

--

Jack Vamvas
___________________________________
Advertise your IT vacancies for free at -http://www.ITjobfeed.com

<plmanikan...@gmail.comwrote in message

news:11*********************@d57g2000hsg.googlegr oups.com...
Hi,
I would like to know details about the table name starts with prefix
in sql server 2000.
Actually i'm working on existing code.
The existing code insert a record into a table, but the table name in
the code and table name in database are different
Table name in database : tbl_mmm_ox
In coding they are using table name as mmm only, the records are
properly inserted into mmm table
is it possible?
The sample code is like that(using ado object)
oCmd.CommandText = "INSERT INTO mmm (no,name) values (1,"mm")"
The above code is perfectly working and inserting record into
tbl_mmm_ox.
Could anybody explain how is it possible?
whether we can leave the prefix(tbl) and suffix(ox) and sql server
take care of this?
Thanks & Regards,
Mani

Thanks friends.It's view only.find that view after posting this
message.
Is it wise to use a view to insert the record.
Is there any performance issue may come due to this view.
I would like to know the opinion on this?

Thanks & Regards,
Mani

Mar 26 '07 #8

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

6
by: John R | last post by:
Hi all, I'm trying to get my VB6 app to look up prefixes for a phone number out of an MDB file along with an associated price etc. For example the phone number could be 9802xxxx, and the MDB...
8
by: Perre Van Wilrijk | last post by:
Hello, I have 2 ways of updating data I'm using often 1) via a cursor on TABLE1 update fields in TABLE2 2) via an some of variables ... SELECT @var1=FLD1, @var2=FLD2 FROM TABLE1 WHERE...
2
by: tdmailbox | last post by:
I have a database with three tables tbl_listings - listings of houses on for sale tbl_intersted - table which tracks if a user is interested in the listing, it has two columns mls(the key for...
3
by: Freelobly Li | last post by:
Hi all, I have encountered two problems when using linked tables; the linked table is connected to SQL server 2000. 1) How can I add the N prefix of a string constant in a query in order to...
3
by: Jim | last post by:
I have a stored procedure that queries a sql server database and returns the multiple data tables ( 7 to be precise) these tables are the results of many joins. When I use the...
5
by: Uwe C. Schroeder | last post by:
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 Hi, maybe my mind is stuck, but here's something strange. This is the classic "counter" thing, where you can't / won't use sequences....
2
by: John Wells | last post by:
Guys, I have a general question about designing databases for large data sets. I was speaking with a colleague about an application we're preparing to build. One of the application's tables...
4
osward
by: osward | last post by:
I had made a table colum sortable and paging the table, following are the code // Display Event List echo "<center>"._EVENTLIST."</center><br>"; $now = Date(Y-m-d); // sort table...
2
klarae99
by: klarae99 | last post by:
Hello, I am working in Access 2003 to create a database to record information about an annual fundraiser. I was hoping someone could review my table structure and make sure that it is normalized...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
1
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...
0
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and...
0
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
0
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated ...
1
muto222
php
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.