Click here to Skip to main content
16,017,448 members
Please Sign up or sign in to vote.
1.00/5 (3 votes)
See more:
Hi all

From past few days i had downloaded many opensource software and there i saw there database with some uncommon extensions.
please tell me is there any standard method of doing that or randomly they are giving any extension..??

we can't guess and if we do so then also we are not able to open the file.

what is the process for doing such thing..even i am also planning to do in my project.

Please need your suggestions..
Posted
Comments
Sergey Alexandrovich Kryukov 22-Oct-13 12:07pm    
What does it mean, "database with extensions"?
—SA

1 solution

No. Conceptually, there is no such thing as "file name extension". (From your question, it's not obvious that you mean exactly that though, so I'm just guessing.) Historically, old file systems and OS has such notion, but later on it was deprecated, and there is just a file name, not subdivided into any required parts. Still, traditionally, some end part of a file name is used to indicate the "file type".

In Windows, some of such "extensions" are registered to tell the Shell which default program it use to handle the file. However, the naming schema can be anything, it is note required to carry any significant information. In general case, by looking just at the file name, it's impossible to say what's inside, even in Windows (example is "*.mpg", "*.mp4": you can guess that this is a media type, but you don't know almost anything about its format; do find out, you have to open the file, try to locate the container signature and classify it by this signature)).

The same goes about file names stored in SQL Server. The database is totally OS-agnostic, and, even more obvious, the data itself "knows" nothing about the meaning of the content.

—SA
 
Share this answer
 
v2
Comments
[no name] 23-Oct-13 0:18am    
I agree with ur point..but let me tell u..i downloaded one accounting software called Merg.when i looked into their database files the extensions are like A01,B01...K01..so few i m able to find but few are not there..so that how they rename..
Sergey Alexandrovich Kryukov 23-Oct-13 0:28am    
Who knows what it may mean? It can be anything...
—SA
[no name] 23-Oct-13 0:34am    
ya..but as per i searched i didn't got anything for few extensions..
i refered
http://en.wikipedia.org/wiki/List_of_file_formats
but didn't got..
[no name] 23-Oct-13 0:35am    
my only question us how to hide the file type from user..i don't want them to know which database we used to develop this software..
Sergey Alexandrovich Kryukov 23-Oct-13 0:41am    
Not clear: why hiding and what hiding a file type may mean? What do you want a user to see and what not? How is that related "which database"? I don't know your application type and tiers, that's why this is not clear to me. For example: you have a front end as a Web or a Windows application. The user sends queries and receives data in UI. Nothing except pure data is exposed to a user, ever. Not only there are no visible "file types", there are no files (except exports/imports on the client side, but this stuff totally belongs to the user). If you are doing something very different from that, it would sound very suspicious...
—SA

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900