SQL Server Naming Standards (or What Is Most Commonly Used)

Oct 29, 2007

Are there common naming standards for SQL tables and stored procedures? I'm creating a table for target audiences and was going to set it up like this:

Target_Audiences
Target_Audience_ID
Target_Audience


This table is really straight forward, but let me know if you would change anything. I want to use all of the most common naming standards throughout my database.

View 13 Replies


ADVERTISEMENT

SQL Server 2014 :: Database And Its Objects Naming Standards

Mar 6, 2014

I am trying to establish the standards for naming convention in my new project. What are the best standards which worked.

View 9 Replies View Related

Naming Standards For SQL Objects

Sep 2, 1998

I was wondering if there are generally accpeted naming standards for SQL Server ojbects (tables, store procedeures, triggers, views etc.) that might be available somewhere on the WEB. I was also wondering if most DBA`s prefix the object names like "sp_" or suffix the object like "Customer_T"? Any opinions?

View 1 Replies View Related

Most Commonly Billed CPT Codes

Nov 30, 2007

I hope you can help me out here. I don't know if I even have enough information to give you. I need to create a SQL that pulls the most commonly Billed CPT Codes. The Fields that I am going to use is the CPTCODES Field and the DOS FROM Field. How I was going to right my statement is below. Do I need to have a count or anything?


SELECT TOP 100 DOSFROM, DOSThru, CPTCODES
FROM VW_1000_Commonly_Billed_Charges
WHERE (DOSFROM >= @BottomDate) AND (DOSThru <= @TopDate)

View 3 Replies View Related

SQL Server 2012 :: Parsing XML That Does Not Quite Fit Normal XML Standards

Jan 21, 2015

I have an application that stores xml data in an unusal manor. Basically a SQL Key column and an XML string.The XML string is not really standard XML, but it is what it is, and I'm stuck with it. It is in the format;

<row key="Value.01" xml:space="preserve"><c1>FirstName</c1><c2>LastName</c2><c3>10 Street Address, City ST 012345-1234</c3><c4>5</c4><c5>50</c5><c6>500</c6></row>

I am able to pull values out via
SELECT
p.value('(./c1)[1]', 'VARCHAR(8000)') AS c1,
p.value('(./c2)[1]', 'VARCHAR(8000)') AS c2
FROM dbo.UserXMLTable
CROSS APPLY XMLRECORD.nodes('/row') t(p)
where p.value('(./c1)[1]', 'VARCHAR(8000)') like 'First%'

However I've been struggling with selecting row with a LIKE clause. Something like ;

SELECT *
FROM dbo.F_UserXMLTable
where XMLRECORD.value('(./c1)[1]', 'VARCHAR(8000)') like 'First%'

I have tried a number of permutations of XML syntax but so far have been stumpled.

Please note "<row key="Value.01" xml:space="preserve">" has a <SP> in the name 'row key' .

View 3 Replies View Related

SQL Server Best Practice Analyzer And T-SQL Coding Standards

Jul 23, 2005

Does anyone know much about this tool? Also, if anyone can point me toa TSQL coding standard, please let me know.-- Dave

View 2 Replies View Related

SQL 2012 :: What Are The Commonly Used System Tables For Mirroring

Jul 13, 2014

what are the commonly used system tables for mirroring

View 3 Replies View Related

What Encryption (eg AES128) Standards Are Supported For SQL Server Compact 3.5 On WM5 And WM6?

Apr 15, 2008

I was told that AES 128/SHA1 is supported for SQL Server Compact 3.5. The problem is that I couldn't find any product literature from Microsoft that specifies exactly that and my client wants us to provide proof on that.

I hope to get the endorsement from the forum here, and it would be great if someone could point me to some Microsoft resources that specifies the support clearly.

View 1 Replies View Related

Naming The Database Server(s)?

Apr 2, 2007

Hi.Could somebody kindly tell me what conventions and best practices areused when naming a database server (not the database itself) and/or acluster of database servers?thanks!

View 5 Replies View Related

SQL Server 2005 Express Instance Naming

Jul 25, 2005

I'm new to SQL Server and just installed VS 2005 and SQL Server 2005 Express. My question is, is there any naming rules for an instance? When I open Express Manager it is asking me to enter an Instance name. Thanks for any suggestions or help,

View 2 Replies View Related

SQL 2012 :: Linked Server Naming Convention?

Nov 6, 2015

How do you name sql linked-servers in your company ?

we have many legacy systems (random naming), but mostly newer systems follow this pattern

<ENVIRONMENT><APPLICATION><FUNCTION><VIRTUAL><NUMBER>

e.g.

PRD-FAX-DB-V01, TST-PAY-WEB-P02 etc.

We have link-servers all over the place. The ideal naming convention should satisfy following:

- developers should not have to modify code when deploying between environments DEV->TEST->PROD. This rules out using actual server name as linked-name.

- the name should easily identify actual server without much mental translation. This rules out relevant but generic names like FAXSERVER or PAYSERVER

- also, if the name could state that it is a linked-server e.g starting with LINK_, it works when reading the code.

So, I was thinking the link-name should simply remove the environment :

e.g LINK_FAX_DB_V01

that way, on DEV box, the underlying sql data source could point to the dev server, while on test, it could point to test server etc. without having to change code, and also knowing which server it's pointing to by just adding a TST or PRD in front-of it.

View 0 Replies View Related

SQL Standards

Nov 25, 2004

I am writing an client application that will be connected to data source. However, I do not know what the data source will be (could be mySQL, SQL Server Express, MS Access, ODBC, etc). I would like to write my data access queries using a standard that will be accepted by various data sources. What is such standard and where can I read more about it?

View 1 Replies View Related

What Is SQL Standards?

Aug 22, 2000

Hi Everybody,

I have heard from people saying "Set SQL Standards for Object names and usage". What is that?. Can anyone explain me please.

tks in advance,
Srinivasan

View 1 Replies View Related

Database Standards HELP!

Sep 23, 2005

I would like to create a new database and follow some standard.  I am hoping that there is some ANSI documentation or Microsoft documentation on a NAMING standard when creating objects in the database.i.e  Table name "tblEmployees"     Column name "txtLastName"     Is there any GOOD documentation on creating a database using a PROVEN, and ACCEPTED standard?

View 2 Replies View Related

SQL Commenting Standards

Nov 25, 2006

Are there any sql commenting standards, for example some programming languages have commenting standards like Javadoc in Java, etc. Just wondering if there is any standard for TSQL comments?
thanks

View 2 Replies View Related

SQL 2007 Query Designer Using 4 Part Naming Linked Server - Bug ????

Jul 6, 2007

I have a linked server in SQL 2007 form SQL to DB2.(IBM)

If I write a distributed query from SQL to DB2 I get mt data returned.
ie:
select *
from openquery(Movex_Extranet,'Select * From mvxadta.ooline')

If I write a Query from SQL to DB2 using the 4-part naming convention linkserver.catalog.schema.object
then I also get my data returned.


ie:
select *
from MOVEX_EXTRANET.RCHASE5C.MVXADTA.OOLINE

My problem is with the Query Designer in SQL2007.

When I right click the first lot of code and select "Design query in editor"
The Designer GUI opens up and displays my table in graphical form with all columns selected - Great.



But When I repeat this for the code that uses the 4 part naming
The Designer opens up and displays the table but with no columns viewable or available for me to select ??

Anyone know what might be causing this to happen.
Is it a bug in SQL 2007 ??

I have tried linking the server using 2 types of providers ( One from Microsoft & one from IBM) but each time I still cannot see or choose columns in the designer using the 4part naming convention.


The 2 providers I tried where.
Microsoft OLE DB for ODBC Drivers.
IBM DB2 UDB for Iseries IBMDA400 OLE DB Provider



Any help greatly appretiated as I would really love to use the designer using 4part naming convention.

Apparently if you read this the it should work ?
http://msdn2.microsoft.com/en-us/library/aa225987(SQL.80).aspx#dvmscworkingwithtablesfromdifferentdatasources


Ray

View 1 Replies View Related

Translate Sql Statement Into SQL-92 Standards

Jul 20, 2005

Can anyone help me translate this statement from using the legacyouter joins to the SQL-92 standards?Select CA.* From Customer C, Shipper S, Customer_Order CO,Cust_Address CA Where CA.Customer_ID =* CO.Customer_IDand CA.Addr_No =* isnull(S.Ship_To_Addr_No,CO.Ship_To_Addr_No)and C.ID = CO.Customer_IDand (S.Shipped_Date between '1/1/2003' and '12/31/2003')Try as I may, I simply can't find a working left, right, or full outerjoin statement that would give me the same results as the abovestatement gives. I thought this was suppose to work but don't knowwhy it doesn't. Anybody care to try or perhaps tell me why thestatement below doesn't work:Select CA.* From Customer C, ((Customer_Order CO left outer joinCust_Address CA on CA.Customer_ID = CO.Customer_ID) left outer joinShipper S on CA.Addr_No =isnull(S.Ship_To_Addr_No,CO.Ship_To_Addr_No)) Where C.ID =CO.Customer_IDand (S.Shipped_Date between '1/1/2003' and '12/31/2003')Thanks,Tony

View 4 Replies View Related

T-SQL (SS2K8) :: Database Coding Standards?

Jan 4, 2012

Is there a Microsoft published document for SQL database coding standards and guidelines/T-SQL coding standards available??

View 7 Replies View Related

XML Newbie: Sql 2005 Compliance To XML Standards

Nov 24, 2006

I was told that XML names must not start with the letters xml (or XML, or Xml, etc) But I was able to store such data in sql 2005. Any thoughts on this one?

TIA,



Barkingdog



View 1 Replies View Related

Output Data Bandwidth Standards?

Nov 1, 2006

All:

One of the new tests that we are running have to do with load testing an application with a constrained network pipe. I like this. One of my beefs has been related to stored procedures that return bloated result sets. This new set of tests potentially gives me some more amunition to use when I review stored procedures. A piece that I would like to produce as a result of this has to do with establishing an output bandwidth standard for our database servers. I have a few biased ideas but I would like to know if any of you have any similar pre-existing standards along this line. Any help?



Dave

View 1 Replies View Related

Standards For Custom Component Development

Jan 24, 2006

Hi,

Maybe I didn't search hard enough on BOL, but does Microsoft have a documented set of standards regarding custom component development for SSIS. Things like:

- extend this base class, implement this interface

- override these methods

- follow these naming conventions

- best practices

Thanks,

- Joel

View 3 Replies View Related

SSIS Package Development Standards/Workarounds

Apr 25, 2008

Having a difficult time setting up a development environment and a set of standards for SSIS package development.

First of all, you can't run the dataflow object "SQL Server Destination" in BIDS because BULKCOPY can only be run from the actual server. So how do you test/debug a package with this object in it?

Second of all, if you create an SSIS package on a developer computer in BIDS, and then import it into the SSIS package store on your development SQL server, you can't run the package from Management Studio on the developer PC. You get the error "DTS_E_PRODUCTLEVELTOLOW" when it tries to run any of the SSIS. Do I have to have SSIS installed on the developer client machine? How do I do that without installing a full server instance on each client machine (not to mention the licsense issues)?

Lastly, what protection level would you suggest using for production? We are having issues with ODBC connection passwords being decrypted and thus package steps failing in using "EncryptSensitiveWithUserKey". What exactly does this protection level do? Our network is physically very locked down, so we arent worried about SSIS package security too much, just looking for a way for them to work reliably without having to setup complicated security scenarios.

thanks for your time.

View 4 Replies View Related

IntelliSense And Standards Compliance Tools For SQL Coding

May 13, 2008

Visual Studio provides IntelliSense and targeted standards compliance code checkers that are extremely useful when writing code. A good example is for web pages targeted to XHTML 1.0 transitional versus strict versus XHTML 1.1.

Is there anything comparable for SQL coding in any of the Microsoft products whether Visual Studio or SQL Server Management Studio or any other development environment?

I'm looking for IntelliSense that can be targeted to one of three alternative configurations: (1) ANSI SQL-92 only, or (2) ANSI SQL-99 only, or alternatively, (3) T-SQL with proprietary Microsoft features/functions (ie, not ANSI compliant in the sense that it is no longer portable per ANSI criteria - it will break when ported due to presence of Microsoft proprietary features/functions).

If standards targeted IntelliSense is not available in any of the Microsoft products for SQL development, is there any third-party product that provides this capability?

View 2 Replies View Related

Integration Services :: SSIS Standards And Documentation Template

Oct 21, 2015

I am sure this questions have been asked  but i was not able to find a useful information. 

1. I am looking for a SSIS Standards document or source. A document developer can use for developing ssis package. This should include how to name each container, task , and how to organize things. Basics of SSIS. Is there some kind of source where i can find this information . We are starting out to migrate from informatica to SSIS but before we do that we would like to put standards in place so all SSIS development is consistent.

2. SSIS project documentation template that we can use to document each project.  Is there anything out there that we can follow to document each of our project. 

View 2 Replies View Related

MS Server And SQL Server Naming

Dec 8, 2007


I am currently in process of learning SQL Server. At the moment we have 2000 and 2005 versions. The 2000 versions are "vendor supported" and one of our systems techs was told by a vendor contact that the SQL Instance name and the Windows Server names should not have dashes or underscores in their names. The vendor contact noted that although SQL Server would install and run, there was "some feature" would not work. The vendor contact was unable to elaborate or name the "some feature" item to the system tech.

Currently, I am in process of setting up a Windows 2003 SQL Server cluster (2 nodes) where the server names have dashes in them. I am concerned that there might be an issue, but I have not found any reference to this item in the 2005 Installation and Setup Guides. The only reference I have come across was via a Google serch that referenced v7.0 of SQL Server running on Windows NT and that stated that dashes are allowed but no further mention of anything.

What I have in my "test", single server, environment that is running fine at the moment with no noted problems is the following:
Win2k3 server name: W2K3-TEST01 (dash in the name)
SQL Server Instance: CBS_TEST (underscore in the Instance name)

Are there any "hidden issues" that I should be aware of with these naming conventions for both SQL Server Instance and the Windows Server?

Thanks in advance.

View 5 Replies View Related

FK Naming

Sep 28, 2007

Hello, I have 2 tables: Articles and Users. These 2 tables are related by AuthorId (FK) in Articles and UserId (PK) in Users. My question is: should the use the same name for the 2 keys, i.e., UserId? Or it is normal to use AuthorId in Articles table and UserId in Users table. This makes more sense. Just a naming question. Thanks, Miguel  

View 5 Replies View Related

DB Column Naming

Jun 18, 2006

What does everyone think of this method?I have a ton of tables like User, Project etc. I use the SAME column names for each table. For an example, ID, Name, Status etc instead of UserID etc.Only for relationship naming will I use UserID.The reason I do this is from a OOP perspective.My dad often said that a table was a entitiy of an object and each record in the table was a instance of that object.

View 2 Replies View Related

Naming Problem

May 3, 2005

I have a function which is named like this:

CREATE FUNCTION [GEEKASPNET.Split]

How can I use it in my stored procedure:

UPDATE Tasks SET Status = 0
WHERE TaskID IN (SELECT CONVERT(int, Value) FROM [GEEKASPNET].Split(@Tasks,","))

This does not work and gives me that "unreconized function GeekASPNET.Split

View 5 Replies View Related

DTS: Re-Naming Package

Jan 2, 2001

I am using SQL Server 7 w/ SP2. This may seem silly, but I'm trying to re-name a DTS local package -- so far without success. Surely there's a way to do this. Also, where is DTS info stored? That is, how does SQL Server store package names and other details? Thanks!

View 1 Replies View Related

Re-naming A DTS Package

Oct 12, 2000

Does anyone know if there is someway to rename a DTS package? Or can I go into the msdb database
and delete the old name?

Thanks for your help.

Dianne

View 3 Replies View Related

Naming Conventions

Jan 31, 2005

Most of the programming I do is in Access. I like to use naming conventions for all my tables, queries, etc. I am now moving several databases to SQL Server. Does anyone know of a good resource for naming convetions in SQL Server. Website, book?

View 2 Replies View Related

Naming Convention

Aug 21, 2006

Hi all,
I wanted to ask for the naming conventions in SQL SERVER.as in case of pl/sql server we have ..name_of_package.name_of_procedure thats how we call the procedures i.e. owner of schema then name of package n then procedure name.....i want to ask you all how is it done in SQL SERVER..please try to reply as soon as possible,
i will b waiting for the replies,
regards

View 3 Replies View Related

Naming Conventions

Mar 8, 2006

In our database tables are generated like
EMP_MASTER
DEPT_MASTER

like that. when we generate classes from database the class names are looking like

EmpMaster
DeptMaster

but for my classes that Master suffix is not required.
please solve my problem.

Thanks and Regards,
guru

View 4 Replies View Related







Copyrights 2005-15 www.BigResource.com, All rights reserved